Closed Jaydax1729 closed 4 years ago
Is that the exact code, copy and pasted directly, that's causing the error?
Closing due to lack of activity. Comment and I'll reopen if necessary. The code as you've posted it appears to work for me, so I can't reproduce your issue without additional information.
I need to count the number of items in an inventory and expected to do something like: <<set $valuables to $Safevaluables.count()>> <<print "You have " + $valuables + " valuables.">> <<set $score += $valuables >> This fails at the first line giving the error <>: bad evaluation. unexpected identifier
Typing <<=$Safevaluables.count()>> will produce the required number but I've been unable to add that number to a different variable as in the third line. Any ideas?