|
Y3KPanic Novice
Joined: 21 Apr 2004 Posts: 34
|
Posted: Fri Apr 23, 2004 5:00 am
Getting ZMud to Print Output |
What's the command to get ZMud to print an output line? For example, I want to make an alias to set a variable string as my target, and for ZMud to print out to me that string.
Responses would be appreciated. |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Fri Apr 23, 2004 7:58 am |
I think your looking for #SHOW
There's also #ECHO and #SAY with slight differences between them that you may want to take a look at in the help file
#ALIAS settarget {target = %-1;#SHOW {Your target is now @target}}
Jesse |
|
|
|
Y3KPanic Novice
Joined: 21 Apr 2004 Posts: 34
|
Posted: Sat Apr 24, 2004 1:54 am |
Thanks, that's what I was looking for.
Also, can someone point out any mistakes I may have made in this class? I want it to attack a mob as soon as I regain balance based on the value of a variable, and stop attacking as soon as it sees that the mob is dead. Unfortunately, it seems to be unable to stop attacking. It does everything else just fine, but even when the variable's value is 0 it still attempts to kick the target every time I regain balance.
#CLASS {Combat} {enable}
#ALIAS t {
target = %1
#show Targetting @target.
}
#VAR infight {0} {0}
#TRIGGER {^You have recovered balance on all limbs.$} {#CASE infight=1 {kick @target}}
#TRIGGER {You have slain} {infight = 0}
#KEY F1 {
kick @target
infight = 1
}
#CLASS 0 |
|
|
|
Y3KPanic Novice
Joined: 21 Apr 2004 Posts: 34
|
Posted: Sat Apr 24, 2004 2:20 am |
Never mind, hehe, I figured out that I needed to use the #IF command.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Apr 24, 2004 2:21 am |
#CASE infight=1 {kick @target}
Change the #CASE to #IF |
|
|
|
|
|