1
Scripting Chat / Movement Help?
« on: January 11, 2013, 07:37:17 AM »
ok so im making a stealth script..or atleast tryin but im having a semi basic issue i hope
im trying to make the character move north 5 tiles then south 5 tiles
event macro 5 1 mixed with event macro 5 5...well just doesnt cut it as im sure are there any tutorials on movement and how to use your xpos ypos to make movement more fluent and simplified for me
ive also tried move..not sure what the parameters mean there but it seems to just have a constant loop of walking northwest
any advice would help this is what i have so far...please dont crucify me :/
i know its messed up im just trying to get movement down before i input for skill checks and a cleaner nicer looking code
im trying to make the character move north 5 tiles then south 5 tiles
event macro 5 1 mixed with event macro 5 5...well just doesnt cut it as im sure are there any tutorials on movement and how to use your xpos ypos to make movement more fluent and simplified for me
ive also tried move..not sure what the parameters mean there but it seems to just have a constant loop of walking northwest
any advice would help this is what i have so far...please dont crucify me :/
Code: [Select]
go sub setupmove
;***************Hiding Sub***************
;----------------------------------------
sub hide
If H notIn #charStatus
{
event macro 13 21
go sub stealth
}
;----------------------------------------
;****************Movement****************
sub setupmove
set %x1 #charposx
set %x2 #charposy
wait 5s
event macro 5 1
event macro 5 1
event macro 5 1
event macro 5 1
event macro 5 1
event macro 5 1
wait 5s
set %x2 #charposx
set %y2 #charposy
event macro 5 5
event macro 5 5
event macro 5 5
event macro 5 5
event macro 5 5
event macro 5 5
go sub hide
}
;----------------------------------------
i know its messed up im just trying to get movement down before i input for skill checks and a cleaner nicer looking code