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

Old November 2nd, 2019, 06:41 AM
You actually have a second problem even if you fix the syntax error on line 64.

In your code you'll never hit line 64 (if you got it working) because if usrIndex is 0, coding always takes the first true statement it hits; that's your first if statement on line 46.

A suggestion would be to bootstrap all these spells and put a conditional on them that restricts them to your usrIndex and puts some tags on them that would make them free/memorized/sorcerer.

For example - the cloud giant spells (fog cloud, minor illusion, invisibility) correspond to usrIndex = 0 so on each of these spells you would click on the condition button and you can type in
fieldval:usrIndex = 0

for the fire giants
fieldval:usrIndex = 1

etc.

On the Tags button for each of these spells you would add the following tags:
(Group ID) (Field ID)
SpellType cHelpSor
Helper Memorized
Helper Free
BonusSplAt #

Where # is either 1 or 3 in your case, the 3rd level spell obviously would get the 3.
dungeonguru is offline   #2 Reply With Quote