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


Joined: 08 Jun 2002
Posts: 2
Location: Australia

PostPosted: Thu Aug 01, 2002 11:17 am   

variable duplication issue
 
I have a class folder with triggers in it which - when executed - create a set of temporary triggers to capture the next line. When the next line is triggered it deletes all the temporary triggers.

I have a set of variables in a separate class which are manipulated by the triggers.

What happens though is zmud will create a complete new set of these variables in the first folder whenever the triggers are run.

The way i want to set it up excludes having duplicate variables around, as all classes must be enabled, and the variables must be outside the second folder.

Anyone help me?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Aug 01, 2002 11:46 am   
 
Use the complete #VAR syntax when creating/modifying variables:
#VAR varName {value} {defValue} "className"

You can put _nodef in defValue if you do not want the variable to have a default value.

Also, be sure to change the current working class to that in which you have the variables stored. You can do this with:
#CLAS className

After you are finished with the class, you can make the root class folder the current one by doing:
#CLASS 0

Kjata
Reply with quote
llore
Newbie


Joined: 08 Jun 2002
Posts: 2
Location: Australia

PostPosted: Thu Aug 01, 2002 6:04 pm   
 
Thanks! I'll give that a try
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