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
staggered6
Newbie


Joined: 30 Jul 2008
Posts: 4

PostPosted: Wed Jul 30, 2008 11:08 pm   

Status bar script request :)
 
Im not very good with the advanced stuff in zmud. I can make triggers and aliases and whatnot but status bars... Im not to sure about

On my mud we have different things we can power up..

things called "spheres" and an attack called "tornado"

What I wanted to do was setup a status bar for each of these things... but.. I cant use numbers.. I have to use a string to tell zmud that the ability is powered up.

such as something like :

if your spheres power up then +1 to variable
if your spheres loose power then -1 to varible


The tornado charging is a bit different, since each level of charge returns a different conformation line.

If someone can help me, that would be awesome. I have looked at the help files but I'm just too stupid to understand what to do.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Jul 31, 2008 12:41 am   
 
#status Spheres: @sphere Tornadoes: @tornado

The above copy and pasted into the command line will create your status bar for you.

Use your triggers that you have matching the spheres and tornadoes powering up and down to set the sphere and tornado variable, usually something along the lines of #add sphere 1 or #add sphere -1.
_________________
Taz :)
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Thu Jul 31, 2008 2:24 am   
 
Though for safety sake I would prefer something along the lines of...

#VAR Sphere %eval(@Sphere + 1)

Or -1 when appropriate.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
staggered6
Newbie


Joined: 30 Jul 2008
Posts: 4

PostPosted: Fri Aug 01, 2008 6:53 pm   
 
Awesome, I'll try that out.

Thanks!
Reply with quote
staggered6
Newbie


Joined: 30 Jul 2008
Posts: 4

PostPosted: Fri Aug 01, 2008 7:29 pm   
 
Humm, I cant get it to update the tornado variable past 1.

Pattern : ~

#VAR tor %eval( @tornado + 1)

Pattern : ~~~~~

#VAR tor %eval( @tornado + 1)

Is there something wrong here?
Reply with quote
staggered6
Newbie


Joined: 30 Jul 2008
Posts: 4

PostPosted: Fri Aug 01, 2008 7:34 pm   
 
Oh I figured it out. :) TY
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Sun Aug 03, 2008 11:54 pm   
 
You could increment gauges for that too

This one I made to show the effort I am putting into my spells. I don't really need it but it is purple.

Code:
#BUTTON 19 {casting} {} {} {} {200} {} {} {Size} {535} {11} {Pos} {1} {98} {95} {} {Gauge||4|400|10|0} {} "" {Explore|Inset} {} {c_gauge} {2}



Then when ever I change my effort level I execute 1 of 5 corresponding commands. The numbers, 0, 100, 200, 300, 400 represent portions of 400

So if there were 4 power ups these would go in the triggers:

Code:
#gauge c_gauge casting 100 400 10 "" purple red black
#gauge c_gauge casting 200 400 10 "" purple red black
#gauge c_gauge casting 300 400 10 "" purple red black
#gauge c_gauge casting 400 400 10 "" purple red black




and this would be sent after casting making the gauge black

Code:
#gauge c_gauge casting 0 400 10 "" purple red black


If there were 3 power up stages you can change the 400s to 300. You do need to change the name c_gauge to use it twice. Like notepad it out to some other name.

I suppose you could also do one gauge at 100 100 and change the purple color at each stage. say green yellow red for 3 stages

The 10 and red are not being used in the above examples but are there because it is part of gauges.

The word casting would be changed to tornado for that
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