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
Y3KPanic
Novice


Joined: 21 Apr 2004
Posts: 34

PostPosted: 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.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: 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
Reply with quote
Y3KPanic
Novice


Joined: 21 Apr 2004
Posts: 34

PostPosted: 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
Reply with quote
Y3KPanic
Novice


Joined: 21 Apr 2004
Posts: 34

PostPosted: Sat Apr 24, 2004 2:20 am   
 
Never mind, hehe, I figured out that I needed to use the #IF command.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Apr 24, 2004 2:21 am   
 
#CASE infight=1 {kick @target}

Change the #CASE to #IF
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