Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.
Moderators: marionline, SDHawk
-
Foxley
- Metal Slime
- Posts: 832
- Joined: Sat Nov 09, 2013 5:54 pm
Post
by Foxley »
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: Select all
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
Last edited by
Foxley on Sun May 22, 2016 7:32 pm, edited 1 time in total.
-
Foxley
- Metal Slime
- Posts: 832
- Joined: Sat Nov 09, 2013 5:54 pm
Post
by Foxley »
Ugh, nevermind, I got it. I have to do 'x -- 1' and not 'x - 1'.