• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Question on Bootstrap Conditions

Lawful_g

Well-known member
Since which dragon natural weapons are available depends on the dragon's size, I am trying to make it so that when adjusting size up the correct weapons are added.

Currently the only thing I have are the ability to count tags as a condition for a bootstrap. I would like to set a bootstrap condition based on a field's value (specifically the value of the size field). How could I do this?
 
fieldval:tSize >= X

The race's size is turned into the hero's size at First/10000, so you'll have to put your test after that.

Note that the tSize field is turned into Size.? tags at First/99999999 - Size.Medium, Size.Small, etc., if you wanted to stick to tags (although checking for Size.Medium Size.Large... would be tedius to write).
 
I get a compilation error:

Thing 'rDraFirWyr' - Condition phase/priority (UserPreLv/10000) for bootstrap thing 'wTentacle' occurs after earliest rule/script (First/600)
Thing 'rDraFirWyr' - Condition phase/priority (UserPreLv/10000) for bootstrap thing 'wSlam' occurs after earliest rule/script (First/600)
 
I think you may have to write the different size categories as different races, then. Because some script in the weapon runs at First/600, and you don't know the character's size until First/10000, so you can't make a successful test until after the scripts on the weapon have to begin running.

P.S. for conditions, you should always put them as soon as possible after whtever they depend on. First/10500 for example, in this case. Unfortunately, not even that's enough.
 
A workaround may be to not assign the wMain.? tags in the weapon bootstrap - assign them using a script at First/10500. I think that without a damage tag, the damage will be displayed as a dash. So, the attacks will still appear in the list, but they won't have a damage until the dragon is big enough.
 
Back
Top