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


Joined: 03 Oct 2003
Posts: 1
Location: USA

PostPosted: Fri Oct 03, 2003 6:40 am   

Targetting problems
 
This is my first time using Zmud, and im having trouble setting up a targetting variable. I'll probablly need step by step instructions sence I'm new at this, but any help you can give I would appreciate.
Reply with quote
morgair
Beginner


Joined: 10 Nov 2000
Posts: 24
Location: USA

PostPosted: Fri Oct 03, 2003 8:31 am   
 
pattern is the syntax from the mud
command is what you want to execute
simple as that
when you see people typing stuff like
#TR {(%w) is starving to death} {give food %1}
its just making a trigger through your zmud command line is all you can open the triggers menu and do it manually thats the easiest way to get started
variables are easy %d for numeric %w for alpha and %* for alphanumeric thats how you match patterns that change like names and what not only use () around the variables if you intend to use them in the command line otherwise people can exploit your triggers
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 03, 2003 3:25 pm   
 
Don't get in the habit of using %* and don't recommend it to others. It's a dangerous wildcard because it matches anything and everything, including special characters such as ; and #, and is easily abused to make your character do things you didn't intend. In almost all cases, * will work equally well and be much safer than %*. And actually, %x is the alphanumeric wildcard.

Setting up a targetting variable is quite easy. Just use the variable command.
#VAriable [variable] [value] [defaultval] [classname]
You only need the first two parameters, variable and value,
#VA {target} {orc}
You may type this directly into the command line, or it can be included as part of an alias (#ALIAS), trigger (#TRIGGER), or other command, which is where the wildcards come in. The variable is then referred to by using @ before its name. In this example, it would be @target.
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