• 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

Conditions on a bootstrap

Enforcer84

Well-known member
Hey I'm trying to word this right, it's the bootstrap equivalent of the "if disabled get out of here."

so I have a natural weapon for a quasi shape-shifter that only works when in their 'combat' form.

is there a version of the "if (field[abilActive].value <> 0)" argument I can put in the bootstrap condition?
 
You can create a new tag to apply to the hero to check for and then write some scripts similar to what is in the Rage ability of the barbarian. When the ability button is checked, your scripts set Hero.ClawOK, so on your claw bootstrap you can check for Hero.ClawOK (as an example). You generally can create new tags in the .1st files (look at the community .1st files - they are just text).

Another thought is to set the livename and sbName on the Claw attack to be "Claw (Combat Mode Only)", like all the lycanthropes do. This leaves the claw stat on the sheet but at least in parentheses it shows not to use it.
 
Like this:
Code:
fieldval:abilActive <> 0

I always forget that way.

I have a followup ShadowChemosh if you could indulge. For this example, wClaw is probably being bootstrapped by the racial ability that you need to check the field for so the fieldvalue is local. What if you had wClaw external to that ability? Normally in a script you would check for the activation like:

Code:
hero.childfound[rAbility].field[abActive].value <> 0

would you have to composite the tag for a tag condition like:

Code:
thingid.rAbility & (fieldval:abilActive <> 0)

or is there a way to shorten it? I'm trying to figure out the details in the hlkitwiki site, but sometimes my brain doesn't interpret it correctly.

A secondary to this (to the code gods, not you ShadowChemosh) is why does fieldval only return the first integer digits encountered? It makes writing a decent script looking for CR values below 0.5 really hard since it always returns 0 for anything that has a decimal place and a leading 0.... :)
 
Last edited:
Code:
hero.childfound[rAbility].field[abActive].value <> 0
Simple answer is you can't. Pretty much you would need to then set a Local Variable like this:
Code:
field[abValue5].value = hero.childfound[rAbility].field[abActive].value

Then on the current Pick use the following in the boostrap condition:
Code:
fieldval:abValue5 <> 0

You can also do what you said above is set a tag on the hero container. The community can not create any tags that start with Hero.? as that is only for LW. What I did in the Pathfinder Community Pack is make up PackHero.? and PackHelper.? tag group that I could control. But a Custom.? tag on the hero container works as well for bootstrap conditions:

Code:
If (hero.childfound[rAbility].field[abActive].value <> 0) Then
   perform hero.assign[Custom.ThingOn]
Endif

Bootstrap condition:
Code:
Custom.ThingOn

Hope that helps.
 
Back
Top