View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old April 30th, 2018, 09:11 AM
Quote:
Originally Posted by Benevalent View Post
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.

Last edited by Sendric; April 30th, 2018 at 09:21 AM.
Sendric is online now   #8 Reply With Quote