Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
crisis
Beginner


Joined: 15 Aug 2007
Posts: 10

PostPosted: Fri Aug 24, 2007 6:07 am   

Temporal Rifts - Health Status Bar Script
 
Just copy and paste in to your command line. And to set the bar to your max hps just type score. It will automatically update to your max and current health after that. Hope you enjoy. You also might want to go to the button and change the position to bottom instead of top.

#CLASS {Health Folder}
#ALIAS myhps {#var currenthealth %1}
#ALIAS mymaxhps {#var maxhealth %1}
#VAR currenthealth {137562}
#VAR maxhealth {137562}
#TRIGGER {<%1hp} {myhps %1}
#TRIGGER {|HitP: */%1 S} {mymaxhps %1}
#BUTTON 1 {} {get heal kit;quaff heal} {} {} {@currenthealth} {} {HEART} {Size} {170} {19} {Pos} {2} {1} {70} {} {Gauge||12|@maxhealth|@maxhealth/4|8} {} "" {Explore} {} {health} {2}
#CLASS 0
Reply with quote
omniwing
Beginner


Joined: 02 Jun 2006
Posts: 19

PostPosted: Thu Apr 10, 2008 8:51 pm   awesome, but
 
This is very cool, but can you please break it down and explain exactly what its doing/reading in, so I can adapt this to my own MUD? I can't tell what is a symbol as code and what is a literal symbol in your hit point prompt that it is reading in.

Thanks!

Omniwing
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Apr 10, 2008 9:25 pm   
 
You have some invalid syntax in there. myhps %1 and mymaxhps %1 should either be prepended with "#var " or have an equals = instead of a space. Secondly, while your patterns will probably match, they don't use proper pattern matching wildcards and so might cause some unexpected behaviour.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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