<triggers>
<trigger
custom_colour="16"
enabled="y"
group="ZZZ TEST General Moving"
match="^((.+?) leaves (.+)\.|(.+?) arrives (.+)\.|(.+?) gallops (.+)\.|(.+?) slithers (.+)\.|(.+?) rides (.+)\.)$"
regexp="y"
send_to="12"
sequence="100"
>
<send>print(" parameters:==> 0:","%0","1:","%1","2:","%2","3:","%3","4:","%4","5:","%5","6:","%6","7:","%7","8:","%8","9:","%9")</send>
</trigger>
</triggers>
This example seems to put those player (or mob) names who _leaves_, to %2 and their direction to %3.
And those who _arrive_, names to %4 and direction to %5. And so forth...
What i need is to capture player (or mob) names to some variable what i can use later, say, targetting or telling.
How do i do that? Do I have to use GetWildcards, SetVariable, GetVariable or some other funcion? And is there a better ie. shorter way to write that <send>print(".....") part?
(Video was great, i learned few tricks to be used later, thank you for that!) |