Hello,
I've got the following error:
[string "Trigger: "]:5: '=' expected near 'direction'
and the code is:
world.send "say to imp perch"
world.send "ff"
world.send "ff"
world.send "ff"
dim direction
direction = world.GetVariable("dir")
if (dir = "east") then
world.send "east"
else
world.send "west"
end if
Any ideas why this is not working?
Thanks,
I've got the following error:
[string "Trigger: "]:5: '=' expected near 'direction'
and the code is:
world.send "say to imp perch"
world.send "ff"
world.send "ff"
world.send "ff"
dim direction
direction = world.GetVariable("dir")
if (dir = "east") then
world.send "east"
else
world.send "west"
end if
Any ideas why this is not working?
Thanks,