|
crisis Beginner
Joined: 15 Aug 2007 Posts: 10
|
Posted: 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 |
|
|
|
omniwing Beginner
Joined: 02 Jun 2006 Posts: 19
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
|
|