Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

What's wrong with this script?

10 years ago

So I'm co-authoring a story, and I added the option to skip the prolouge, and doing so will still add the items found in the prolouge to your inventory. Anyway, I added a simple script to add items to your inventory, but everytime I try, I get this error:

Did not expect '='. Col=13 

What's up with that? Also, here's the script I used:

$ITEMSTATE1 = 1
$ITEMSTATE3 = 1
$ITEMSTATE7 = 1
$ITEMSTATE4 = 1
$ITEMSTATE6 = 1

What's wrong with this script?

10 years ago

You forgot the colon before the equal sign.  :=

$ITEMSTATE1 := 1
$ITEMSTATE3 := 1
$ITEMSTATE7 := 1
$ITEMSTATE4 := 1
$ITEMSTATE6 := 1

What's wrong with this script?

10 years ago

Ah, thanks IAP.

What's wrong with this script?

10 years ago

yes

What's wrong with this script?

10 years ago
= checks for equality (3 = 3)
:= sets the value of a variable