Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Code:
if (hero.intersect[Profession,Profession] <> 0) then In definition.def, scroll to the bottom of the file. There, you'll find where the phases are set up. I'd recommend reading the description for each phase. Oh, and the other timing requirements that are imposed on that resource = (INT-1)*5: In traits.str, find "Calc trtFinal" - this needs to be after that. In miscellaneous.str, find "Calc resLeft" - this needs to be before that. I'd use Traits/20000 to set the herofield, then Traits/25000 to look it up - well after Calc trtFinal, and well before Calc resLeft - lots of time to change both. Or, just set the resMax field on the resource directly by looking up the intelligence and delete that herofield. Also, use @value += and/or field[resMax].value += in your scripts, rather than a simpe =. That way, you're adding the values to whatever's there, instead of overwriting them, meaning you don't need to be as careful about the phase & priority when race X adds +5 to that field - you don't care whether that script comes before or after your += (with an =, you'd have to make sure your race applied its effects AFTER the main calculation, or your main calculation would overwrite the change the race had made). |
#11 |
|
|