Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
NewZmudder
Newbie


Joined: 28 Jun 2003
Posts: 7
Location: United Kingdom

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net