Post new topic    
Metal Slime
Send private message
Hspeak being fussy about if conditions 
 PostSun May 22, 2016 7:31 pm
Send private message Reply with quote
Hey, I'm trying to put in an if condition that checks for 'one thing && another thing' and Hspeak is rejecting it.

Here's the line:
Code:
if (hero x(me) == startX + 1 && hero y(me) == startY) then (


Is there a different way for me to write && conditions that it'll be happier with?

EDIT:
Whoops, should put in the error message:

Unrecognised name startx-1. It has not been defined as a script, constant, variable, or anything else
Metal Slime
Send private message
 
 PostSun May 22, 2016 7:57 pm
Send private message Reply with quote
Ugh, nevermind, I got it. I have to do 'x -- 1' and not 'x - 1'.
Display posts from previous: