WoTMUD Archives
http://www.wotmudarchives.org/forum/

tracking script
http://www.wotmudarchives.org/forum/viewtopic.php?f=8&t=2306
Page 1 of 1

Author:  zain [ Thu Jun 07, 2012 6:01 pm ]
Post subject:  tracking script

#CLASS {ColorCode|Track}
#ALIAS GetDir {#IF {%1="north"} {#VAR dirchar @northchar};#IF {%1="east"} {#VAR dirchar @eastchar};#IF {%1="south"} {#VAR dirchar @southchar};#IF {%1="west"} {#VAR dirchar @westchar};#IF {%1="up"} {#VAR dirchar @upchar};#IF {%1="down"} {#VAR dirchar @downchar}}
#VAR dirchar {^^}
#VAR westchar {<<}
#VAR eastchar {>>}
#VAR northchar {^^}
#VAR southchar {vv}
#VAR upchar {++}
#VAR downchar {--}
#TRIGGER {({bloody traces|tracks}) of a ({seanchan|human|trolloc}) leaving (%w).} {#CO white;GetDir %3;#SUB {%1 of %ansi( red, bold)a %2 %ansi( white)leaving %ansi( yellow)@dirchar%ansi( red, bold)%3%ansi( yellow)@dirchar}}
#TRIGGER {({tracks|bloody traces}) of ~*(%w)~* leaving (%w).} {#CO white;GetDir %3;#SUB {%1 of *%ansi( red, bold)%2* %ansi( white)leaving %ansi( yellow)@dirchar%ansi( red, bold)%3%ansi( yellow)@dirchar}}
#TRIGGER {{bloody traces} of (*) leaving (%w).} {#CO white;GetDir %2;#SUB {bloody traces of %ansi( red, bold)%1 %ansi( white)leaving %ansi( yellow)@dirchar%ansi( red, bold)%2%ansi( yellow)@dirchar}}
#TRIGGER {{tracks} of (*) leaving (%w).} {#CO white;GetDir %2;#SUB {tracks of %ansi( green, bold)%1 %ansi( white)leaving %ansi( yellow, bold)@dirchar%ansi( green, bold)%2%ansi( yellow, bold)@dirchar}}
#CLASS 0

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/