GraphicalVariable [SOLVED]

Started by .M.M., Sat 13/10/2007 17:16:56

Previous topic - Next topic

.M.M.

Where's problem in script

  if (keycode==377) && (SetGraphicalVariable ("Up",0)) cBall.Walk (258, 86, eNoBlock, eAnywhere);

Gilbert

#1
You need to enclose the conditions with ():
  if ((keycode==377) && (SetGraphicalVariable ("Up",0))) cBall.Walk (258, 86, eNoBlock, eAnywhere);

Or, simply:
if (keycode==377 && SetGraphicalVariable ("Up",0)) cBall.Walk (258, 86, eNoBlock, eAnywhere);

However, What're you going to archive by setting the Graphical Variable to 0 in the condition?

Or, you're trying to check if the variable is 0?

In that case:
if (keycode==377 && GetGraphicalVariable ("Up")==0) cBall.Walk (258, 86, eNoBlock, eAnywhere);

Dualnames

So is this problem solved? Please post something I'm getting bored checking this out.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

.M.M.

Yes, this is solved- thanks!

SMF spam blocked by CleanTalk