Howto ??

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Paulo
Posts: 16
Joined: 2004-04-14 22:08:20

Howto ??

Post 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 :(
Pummy
Posts: 18
Joined: 2004-04-04 07:39:27

Post by Pummy »

maybe:
VAR result1,result2
?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

scripting.txt in injection folder
Post Reply