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
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Aug 31, 2003 1:30 am   

Conusing script...
 
I got this zMUD "script" off a website... it doesnt look like any script ive ever seen... there must be some way to make it into a script though... EVERYTHING FROM HERE DOWN IS THE SCRIPT. THE TEXT WAS ON THE SITE TO EXPLAIN IT.

------------------------------------------------------------------

This will add a Health and Mana Gauge at the top right corner of your Zmud interface. Replace the YELLOW with your health and mana.

Variable name: maxhp

Value: 1000

Variable name: maxmana

Value: 1000

Trigger Pattern: (%d)h, (%d)m

Value: #var hp %1;#var mana %2

Button States: Gauge (Make a new Button use the pull down menu in the KIND value and select Gauge)

Advanced:

Value: @hp

Gauge:

Value: @hp

Gauge Max: @maxhp

Gauge Low: @maxhp/4

Gauge Color: GREEN (You can choose whatever color you want just point and click)

Low Color: RED

Button States: Gauge

Advanced:

Value: @mana

Gauge:

Value: @mana

Gauge Max: @maxmana

Gauge Low: @maxmana/4

Gauge Color: BLUE

Low Color: RED
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Aug 31, 2003 1:51 am   
 
This is definitely a zmud script, it's just in a format similar to how you'd see it if you had the Settings Editor open.

#variable maxhp 1000
Variable name: maxhp

Value: 1000

#variable maxmana 1000
Variable name: maxmana

Value: 1000

#trigger {(%d)h, (%d)m} {#var hp %1;#var mana %2}
Trigger Pattern: (%d)h, (%d)m

Value: #var hp %1;#var mana %2

I'm not familiar with the #BUTTON command syntax
Button States: Gauge (Make a new Button use the pull down menu in the KIND value and select Gauge)

Advanced:

Value: @hp

Gauge:

Value: @hp

Gauge Max: @maxhp

Gauge Low: @maxhp/4

Gauge Color: GREEN (You can choose whatever color you want just point and click)

Low Color: RED

Button States: Gauge

Advanced:

Value: @mana

Gauge:

Value: @mana

Gauge Max: @maxmana

Gauge Low: @maxmana/4

Gauge Color: BLUE

Low Color: RED
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Aug 31, 2003 4:14 am   
 
I got it! thankies! It looks like this:

#CLASS {HealthGauge}
#VAR maxhp {700}
#VAR maxmana {700}
#TRIGGER {(%d)h, (%d)m} {#var hp %1;#var mana %2}
#BUTTON 2 {} {} {} {} {@hp} {} {} {} {} {} {} {} {} {32800} {} {Gauge||12|@maxhp|@maxhp/4|7} {} "" {Explore|Inset} {} {}
#BUTTON 3 {} {} {} {} {@mana} {} {} {} {} {} {} {} {} {32784} {} {Gauge||12|@maxmana|@maxmana/4|7} {} "" {Explore|Inset} {} {}
#CLASS 0

And its awesme! :)
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Aug 31, 2003 4:40 am   
 
As far as I can tell, the gauge only has two colors (high and low) does anyone know how to add a third?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 01, 2003 3:05 am   
 
Since it appears this is not stored in the #BUTTON command, you'll have to play around with #NOOP %btncol(button number or name, color name or RGB value). %btncol() actually has two (maybe three, I forget) color arguments--foreground and background--but I am not at all sure which maps to which setting for guages. The #NOOP is there to prevent anything from %btncol() getting sent to the mud (which will no doubt cause the mud to send back an invalid command error message).
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