|
NewZmudder Newbie
Joined: 28 Jun 2003 Posts: 7 Location: United Kingdom
|
Posted: Sat Mar 13, 2004 3:49 am
Help for a new mudder |
Im pretty new to this game, and im wondering if someone can help.
I want to create a trigger which captures a piece of text and
stores that in a variable.
I TYPE
>kill giant
Now its giant i want to capture and store.
Thanks |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 13, 2004 5:43 am |
It would be better to use an alias to capture text which you type in.
#AL kill {#VAR kill1 {%-1};~kill %-1} |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Sat Mar 13, 2004 5:59 am |
Using a trigger for that is more complicated.
Try an alias...
#alias k {#if %numparam {kill %0};#var target {%0}}
Now if you type (in line mode):
>k giant
'giant' will be stored in the variable @target.
Typing 'k' alone will empty the variable. |
|
|
|
|
|