Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 6th, 2012, 07:12 AM
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).
Mathias is online now   #11 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:11 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.