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
Dielantha
Beginner


Joined: 29 Nov 2002
Posts: 12
Location: USA

PostPosted: Sat Nov 30, 2002 12:29 am   

zMud Buttons
 
Hey everyone,

I've been exploring the features of zmud more in depth recently and I came across making buttons. Now I have a question but I'm not sure it is possible. Right now I have all my defensive spells setup as buttons on the bottom panel. When a spell drops I just click the button (obviously). My question is this. Is it possible to link a trigger to a button? What I wanna do is when a spell like sanctuary drops the mud displays "The white aura around your body fades." Can I capture that text in a trigger and make my Sanctuary button flash until I click it? If not thats fine. Just an idea I had since I have 15 buttons and more spells to come as i rank.

Thanks for any help you can give me.

Dielantha
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Nov 30, 2002 1:42 am   
 
No, you can't make them blink (at least I can't). You can change their colors though. If most of your buttons are black on gray, a button that's white on red will probably stand out even without blinking.

Use the %btncol function.

LightBulb
Senior Member
Reply with quote
dskorren
Novice


Joined: 07 Feb 2002
Posts: 48
Location: Philippines

PostPosted: Sat Nov 30, 2002 1:53 am   
 
You can try and make your buttons into type toggle. Then for every spellups that you have, trigger it so set off a variable.

#TR {^You are surrounded by a white aura.} {#var sanctuary 1}
#TR {^The white aura around your body fades.} {#var sanctuary 0}

In your advanced tab for the button, put the @sanctuary in the value field. Your button will then be either up or down, depending on the state of your variable sanctuary. You can also add cast sanctuary on the down state of your toggle button so it will try to auto cast the spell when it wears off.

here is a screen shot of my mud window output
http://nante2.tripod.com/zmud.jpg

*for some reason, the hyperlink does not display correctly, copy n paste it in a separate window
Reply with quote
Dielantha
Beginner


Joined: 29 Nov 2002
Posts: 12
Location: USA

PostPosted: Sat Nov 30, 2002 2:11 am   
 
Thank you lightbulb your suggestion works just as good.

Dielantha
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