Quote:
Originally Posted by Benevalent
It seems to be having an issue compiling the first field in this code claiming syntax error. File attached. I made the special xBreath so i can keep xBreathwea for future use.
HTML Code:
if (field[fChosen].chosen.field[Value].value2 = 1) then
hero.childfound[xBreathWea].field[livename].text &= ", 30' line"
elseif (field[fChosen].chosen.field[Value].value2 = 2) then
hero.childfound[xBreathWea].field[livename].text &= ", 15' cone"
endif
|
Sorry. In my haste I put the 2 in the wrong spot. It should be:
Code:
if (field[fChosen].chosen.field[Value2].value = 1) then
hero.childfound[xBreathWea].field[livename].text &= ", 30' line"
elseif (field[fChosen].chosen.field[Value2].value = 2) then
hero.childfound[xBreathWea].field[livename].text &= ", 15' cone"
endif
Also, this script is useless on a special. It needs to be on the feat you're using. I assume you want to use your Draconic Aspect feat. You should remove the bootstraps from this feat. You don't need them. You will also need to update the Custom Expression to use the thingid's of the specials you are using for color selection. You don't need the xBreath special at all.