|
graywolf Apprentice
Joined: 21 Jul 2001 Posts: 116 Location: USA
|
Posted: 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 :) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|