Mercurial > hg > batmud > maputils
changeset 1218:fb8f16a6432a
Clean up mapwalk.tf, make the replaced movement mode "peer" instead of "walk".
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Aug 2011 15:32:38 +0300 |
parents | f5f04be91b0e |
children | 09fc28d6e26f |
files | tf/mapwalk.tf |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/tf/mapwalk.tf Sun Aug 14 12:15:08 2011 +0300 +++ b/tf/mapwalk.tf Mon Aug 15 15:32:38 2011 +0300 @@ -10,14 +10,14 @@ ;;----------------------------------------------------------------------------- ;; Update coordinates /def -i prmyupdate =\ - /if ({1}=~"nw"|{1}=~"northwest") /test plr_y-={2}%;/test plr_x-={2}%;\ - /elseif ({1}=~"n"|{1}=~"north") /test plr_y-={2}%;\ - /elseif ({1}=~"ne"|{1}=~"northeast") /test plr_y-={2}%;/test plr_x+={2}%;\ - /elseif ({1}=~"w"|{1}=~"west") /test plr_x-={2}%;\ - /elseif ({1}=~"e"|{1}=~"east") /test plr_x+={2}%;\ - /elseif ({1}=~"sw"|{1}=~"southwest") /test plr_y+={2}%;/test plr_x-={2}%;\ - /elseif ({1}=~"s"|{1}=~"south") /test plr_y+={2}%;\ - /elseif ({1}=~"se"|{1}=~"southeast") /test plr_y+={2}%;/test plr_x+={2}%;\ + /if ({1}=~"nw"|{1}=~"northwest") /test plr_y-={2}%;/test plr_x-={2}%;\ + /elseif ({1}=~"n"|{1}=~"north") /test plr_y-={2}%;\ + /elseif ({1}=~"ne"|{1}=~"northeast") /test plr_y-={2}%;/test plr_x+={2}%;\ + /elseif ({1}=~"w"|{1}=~"west") /test plr_x-={2}%;\ + /elseif ({1}=~"e"|{1}=~"east") /test plr_x+={2}%;\ + /elseif ({1}=~"sw"|{1}=~"southwest") /test plr_y+={2}%;/test plr_x-={2}%;\ + /elseif ({1}=~"s"|{1}=~"south") /test plr_y+={2}%;\ + /elseif ({1}=~"se"|{1}=~"southeast") /test plr_y+={2}%;/test plr_x+={2}%;\ /endif ;; Update coordinates, move, report location+map @@ -30,7 +30,7 @@ /test plr_x:=old_x%;/test plr_y:=old_y ;; This is for GgrTF's numpad movement -/def -i prmove_walk =\ +/def -i prmove_peer =\ /set prmove_last=%{1}%;/gstatus_update%;/test prmymove({1},1) ;; Catch movement commands (hopefully) @@ -58,4 +58,4 @@ ;; Initialize ;/preset -/move walk +/move peer