Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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). |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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) |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#5 |
|
|