View Single Post
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old November 15th, 2017, 04:16 AM
Quote:
Originally Posted by ShadowChemosh View Post
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 by dungeonguru; November 15th, 2017 at 04:19 AM.
dungeonguru is offline   #7 Reply With Quote