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


Joined: 16 Jan 2003
Posts: 3
Location: USA

PostPosted: Thu Jan 16, 2003 4:03 am   

quick simple question
 
okie, this is a pretty basic question. On the older Zmud when creating a targeting trigger it was something along the lines of an alias named 't' command @t = %1 but that hasn't worked for me in the new version. I'm not a scripting genius like most of you guys :P Thanks,
Dan
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jan 16, 2003 4:08 am   
 
quote:

okie, this is a pretty basic question. On the older Zmud when creating a targeting trigger it was something along the lines of an alias named 't' command @t = %1 but that hasn't worked for me in the new version. I'm not a scripting genius like most of you guys :P Thanks,
Dan



#variable target {}

Now you can do "target=something" from the command line or within code. Probably rather awkward to use, though. Try this:

#alias target {target=%1}

li'l shmoe of Dragon's Gate MUD
Reply with quote
Gadarn
Newbie


Joined: 16 Jan 2003
Posts: 3
Location: USA

PostPosted: Thu Jan 16, 2003 4:11 am   
 
ok, i'm a simpleton i'm sorry, but could you give me the complete command for the targeting action, like would the #alias target {target=%1} go in the alias command line? and if so, what would my command be to make the action against the target? >whatever< @t? or @%?
Thanks again,
Dan
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jan 16, 2003 7:18 am   
 
At the command line, type:
#alias target {target=%1}

Once you've done that, set your targets by typing target, then the name of the target (one word only). This should also be typed at the command line.
target ogre

LightBulb
Senior Member
Reply with quote
Gadarn
Newbie


Joined: 16 Jan 2003
Posts: 3
Location: USA

PostPosted: Thu Jan 16, 2003 3:39 pm   
 
can it be simplified? as in can i set 't' instead of 'target' in the alias and the use 't ogre' ? or do i need to use the whole word target? And thank you for helping me.
Dan
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Thu Jan 16, 2003 4:38 pm   
 
Sure:

#alias t {target=%1}

It's as simple as that.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Jan 17, 2003 3:04 am   
 
quote:

Sure:

#alias t {target=%1}

It's as simple as that.



I absolutely hate short alias names like "t". Not only are they meaningless, but I invariably end up typoing them all the time. Thus, I use one-word names that tell me in an instant what it does. Either that, or I find a #TRIGGER/mouse-based way to accomplish the same thing.

li'l shmoe of Dragon's Gate MUD
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