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
Stromboli
Newbie


Joined: 02 May 2015
Posts: 2

PostPosted: Sat May 02, 2015 8:02 am   

Using An Alias To Create A Trigger
 
Is there a way in Zmud to use an alias to create a trigger?

In tintin / wintin you can do something like:
#alias {hate} {#action {%1 is here} {kill %1}}

so typing: "hate Bob" creates an action {Bob is here} {kill Bob}

I know there are ways to do this by predefining classes for each victim to turn on/off, but I need something more dynamic that can create the triggers on the fly. Any help is highly appreciated, because I seriously need to kill some mofos.

-stromboli-
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Sat May 02, 2015 9:20 am   
 
its entirely possible, but i would suggest the use of a variable list

#TR {({@mofos}) is here} {kill %1}

#ALIAS hate {#ADDITEM mofos %1}
_________________
Discord: Shalimarwildcat
Reply with quote
Stromboli
Newbie


Joined: 02 May 2015
Posts: 2

PostPosted: Sat May 02, 2015 11:10 am   ooooh thank you
 
i didn't even know it could do that. That's even better. I might end up liking Zmud yet :) THANK YOU!!
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