Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Question on Bootstrap Conditions (http://forums.wolflair.com/showthread.php?t=9326)

Lawful_g October 12th, 2009 06:09 PM

Question on Bootstrap Conditions
 
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?

Mathias October 13th, 2009 11:30 AM

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).

Lawful_g October 13th, 2009 12:23 PM

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)

Mathias October 13th, 2009 01:29 PM

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.

Mathias October 13th, 2009 01:32 PM

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.


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

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