Page 1 of 1

Howto ??

Posted: 2004-04-14 22:13:59
by Paulo
Store variables ??

what i want to do is like..

Get my X and Y once, and store it (like %firstX and %firstY on Euo).
then i wait 1000ms
and get my X and Y again

i compare the results
2ndX - 1stX = result 1
2ndY - 1stY = result 2

if result 1 > 0 && result 2 > 0 then
if result 1 > result 2 then

print("You walked"+"STR(result 1)"+"tiles")

else

print("You walked"+"STR(result 2"+"tiles")
endif
if result 1 > 0 && result 2 < 0 thein
result 2 = result 2 * -1
.
.
.
.
.

its like a Tiles/sec checker. but I DUNNO HOW TO STORE VARIABLES :(

Posted: 2004-04-15 07:57:48
by Pummy
maybe:
VAR result1,result2
?

Posted: 2004-04-15 20:38:25
by Yoko
scripting.txt in injection folder