View Single Post
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 468

Old June 20th, 2023, 10:09 AM
Quote:
Originally Posted by Angela2013 View Post
Yes by attribute modifier I meant the following for example.
(...)
Looking for a script to add to the modifier not the attribute.
Considering how the system is (probably) structured, it's easier and more flexible to modify the base score, but then it's your call.

I'm not sure about this, but I'm going to assume that aBonus and aModBonus cannot be modified before they are calculated, as that calculation is likely to wipe the prior modifiers made. I may be wrong about that; if I am, you would be able to apply modifiers in earlier phases.

Of the top of my head, this could look like (for STR)
Code:
Phase Post-Attributes Priority 1

hero.child[aSTR].field[aModBonus].value += (insert bonus)
The bonus is applied as early as possible in the Post-Attribute phase, to make sure it is taken into account for each and every process requiring the final attribute modifier value, and considering the devs do not recommend fiddling around in the Attributes phase.

All in all, considering what you have stated that you want to do, this should do.
Lord Magus is offline   #5 Reply With Quote