Conditions on a bootstrap
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. |
Yeah that second one probably works fine, but the first is intriguing :)
I'll look into that. |
Thank you for the response, by the way
|
Quote:
Code:
fieldval:abilActive <> 0 |
Thank you as well!
|
Quote:
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 Code:
thingid.rAbility & (fieldval:abilActive <> 0) 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.... :) |
Quote:
Code:
field[abValue5].value = hero.childfound[rAbility].field[abActive].value Code:
fieldval:abValue5 <> 0 Code:
If (hero.childfound[rAbility].field[abActive].value <> 0) Then Code:
Custom.ThingOn |
Thanks ShadowChemosh!
|
All times are GMT -8. The time now is 04:51 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.