')' Expected at line...

stanley

New member
OK, I've been reading through a bunch of stuff here and at the wiki, but I can't seen to get around this error. I have a pretty simple script that caches my_familiar() into 'bob', checks that I have meat for restores, if not, puts on my leprechaun to hit the treasury for a bit, then restores the familiar to 'bob' to go adventuring. For whatever reason, this line:

Code:
if ( my_familiar() = $familiar[leprechaun] ) equip_familiar(bob);

causes the validation error in the subject. The rest of the code validates just fine. Even if I put the equip_familiar(bob) into braces, it still fails to validate the if clause. I'd really like to get this worked out before heading out for the holidays, so thanks in advance for whatever insight you can provide.

The rest of the code is attached for contextual reference.
 

Attachments

  • do_crimbo.ash
    979 bytes · Views: 66

stanley

New member
I could have sworn I tried that syntax change (== instead of =) and got the same error, but tried it again, and it worked. I guess Hola just scared my feeble code into behaving properly. Thank you!
 
Top