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
graywolf
Apprentice


Joined: 21 Jul 2001
Posts: 116
Location: USA

PostPosted: Sat Aug 02, 2003 5:37 am   

Create Variable in a Class
 
I want to create a variable in a class. This is my Class so far, when my trigers fire they create the below variables in my default class which is currently called none i think.

#CLASS {Battle}
#TRIGGER {^> kill (%*)} {
@InBattle = Yes
@Hunting = %1
}
#TRIGGER {You receive (%d) experience points.} {
@InBattle = No
Hunting = Null
}
#CLASS 0

Thanks for any help :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Aug 02, 2003 1:28 pm   
 
#CLASS {Battle}
#TRIGGER {^> kill (*)} {
#VAR InBattle Yes {_nodef} {Battle}
#VAR Hunting {%1} {_nodef} {Battle}
}
#TRIGGER {You receive (%d) experience points.} {
#VAR InBattle No {_nodef} {Battle}
#VAR Hunting Null {_nodef} {Battle}
}
#CLASS 0
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