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
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Mon Jun 27, 2005 8:21 pm   

#classes
 
Ok. i just wanna make shure i understand this right #class command is used to store complex scripts under a single name to call on easilly by just using a single name right?
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: Mon Jun 27, 2005 8:36 pm   
 
i dont think so.. i use it for turning on and off a set of triggers that are related to each other. calling all of em at the same time would be disasterous.
_________________
Player on Realms of Despair. realms.game.org port 4000. Join us today!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 27, 2005 9:46 pm   
 
Think of a "class" like a folder on your desktop. It can contain a group of triggers, aliases, macros, etc, and you can enable and disable an entire class at once. So it lets you turn your triggers on and off in a group.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jun 27, 2005 11:20 pm   
 
What you're thinking of, Zema, is #ALIAS (sort of). Aliases allow you to use a specific set of any combination of mud commands and zscript commands/functions/etc by simply referring to the alias name. In this way, and with certain commands (ie, #temp, #T+ and #T-, among lots of others), you can control not only input to the mud but also all the other settings like triggers and buttons.

If you have a lot of settings you want to turn on/off, though, class folders are better to work with.
_________________
EDIT: I didn't like my old signature
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Tue Jun 28, 2005 4:37 am   
 
ahhh, ok then if i was woking on scripting, but i really dont wanna trigger off of my prompt do i have other alternatives?
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jun 29, 2005 1:20 am   
 
Quote:

ahhh, ok then if i was woking on scripting, but i really dont wanna trigger off of my prompt do i have other alternatives?


I have no idea what you just said, so just to make a stab in the dark here you only need to trigger off the prompt in two situations:

1)if you want to capture info from your game prompt, change the way it looks, or execute commands/aliases/etc whenever your prompt appears

2)you are using the #TAG command to override the automapper. If you don't tag your prompt in this instance, tagging anything else is rather useless and unpredictable (ZMud uses the prompt to figure out the room information.)
_________________
EDIT: I didn't like my old signature
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