• 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

Bootstrapping using Race + abilActive

TobyFox2002

Well-known member
I've been trying to get template that applies to several races at once, but give slightly different specials to each race.


So I've tried twenty different ways from sunday to get it to work and nothing seems to be functioning, I get all kinds of timing errors.

hero#IsRace.rMLPPegas & (fieldval:abilActive <> 0)
and
hero#Race.rMLPPegas & (fieldval:abilActive <> 0)
and
IsRace.rMLPPegas & (fieldval:abilActive <> 0)
and
many different variations.

All of them fail, I've even tried using if...else to modify the abValue of the special and bootstrap based on the abValue. Problem is the abValue isnt being assigned using any combination of conditionals until sometime much later than the First/500 which is required for bootstrapping.

Arrg this is rather frustrating, I could really use some expertise.
 
You've left out any information about where these expressions are being placed. Are they in an eval script? Are these on a bootstrap, and if so, where is that booitstrap added?

Your discussion says abValue, but none of your examples include that field.
 
hero#IsRace.rMLPPegas & (fieldval:abilActive <> 0) for an ability called blurstrike. This is being bootstrapped to a racial special called Crystal Form. Then added to a template called crystal pony.

I tried bootstrapping it straight to the template as well, that failed with similar results.

I also tried using an eval script:

First/500
~ Earth Pony
if (#hasrace[rEPony] <> 0) then
field[abValue].value = 1
~ Pegasus
elseif (#hasrace[rMLPPegas] <> 0) then
field[abValue].value = 2
~ Unicorn
elseif (#hasrace[rMLPUnicor] <> 0) then
field[abValue].value = 3
elseif (#hasrace[rMLPAlico] <> 0) then
field[abValue].value = 4
endif

to catch what race it is and create a bootstrap conditional based on the abValue of the racial ability "Crystal Form." That doesnt work either.
 
First, what's the timing of the containerreq that goes along with that Eval script at First/500 - it's AFTER First/500, like First/501, not at the same time?

Second, try debugging

debug #hasrace[rEPony]

So that you can make sure that those race tags have been added to the hero that early.
 
No First/489 with a bootstrap of First/500
Not sure what containerreq is but..
The debug, I've never used that command, gives me some wierd answers.

***** Start Evaluation Cycle ****
[Earth (Crystal Pony) 11.1] 0

No idea on earth what that is supposed to mean, I assume that 0 means that the expression was evaluated as untrue.

I know that running this at a later time Level/1000 will produce the results I need but, I cant use that for bootstraps.

Is there a way to bypass the #hasrace[] command and do it out long hand?
Or is there a way to check the race of the hero straight from the bootstrap of an ability the same way you can check for classes and Divine/Arcane casting?
 
I thought, had done a search through all of the posts that were related to my question. Apparently I missed one:

http://forums.wolflair.com/showthread.php?t=22037&highlight=israce

Long story short, the timing for what I'm trying to do.. is obnoxiously tight. But, I ultimate got it to work using the code from the above linked post.

I still need to read up on what the whole isfocus thing is, I've never used that bit of code, so I'm just copy and pasting it. But thanks Mathias, Frumple and everyone else.

This issue is officially resolved.
 
Back
Top