Difference between revisions of "CMud Prompt & Mob Cond"
m (Updating for CMud v3.32) |
|||
Line 33: | Line 33: | ||
#var currtnl %6 | #var currtnl %6 | ||
#var currlag %7 | #var currlag %7 | ||
− | #if (@currtnl < 200) {#var message %ansi(high,yellow,blink)"Put on Level Gear Now"}</value> | + | #if (@currtnl < 200) {#var message %ansi(high,yellow,blink)"Put on Level Gear Now" %ansi(default)}</value> |
</trigger> | </trigger> | ||
<stat name="StatBar" priority="2190"/> | <stat name="StatBar" priority="2190"/> | ||
− | <button name="hp" type="Gauge" autosize="false" width="120" height="23" inset="true" toolstyle="true | + | <button name="hp" type="Gauge" autosize="false" width="120" height="23" inset="true" toolstyle="true" color="#0080FF" gaugelowcol="red" gaugebackcol="silver" priority="19"> |
<caption>Hit Points</caption> | <caption>Hit Points</caption> | ||
<value>@currhp</value> | <value>@currhp</value> | ||
Line 43: | Line 43: | ||
<gaugelow>@maxhp/4</gaugelow> | <gaugelow>@maxhp/4</gaugelow> | ||
</button> | </button> | ||
− | <button name="mp" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="121" inset="true" toolstyle="true | + | <button name="mp" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="121" inset="true" toolstyle="true" color="lime" gaugelowcol="red" gaugebackcol="silver" priority="25"> |
<caption>Mana Points</caption> | <caption>Mana Points</caption> | ||
<value>@currmana</value> | <value>@currmana</value> | ||
Line 50: | Line 50: | ||
<gaugelow>@maxmana/4</gaugelow> | <gaugelow>@maxmana/4</gaugelow> | ||
</button> | </button> | ||
− | <var name="currtnl"> | + | <var name="currtnl">560</var> |
− | <var name="currhp"> | + | <var name="currhp">650</var> |
− | <var name="maxhp"> | + | <var name="maxhp">650</var> |
− | <var name="currmana"> | + | <var name="currmana">2137</var> |
− | <var name="maxmana"> | + | <var name="maxmana">2137</var> |
− | <var name="currmoves"> | + | <var name="currmoves">791</var> |
<var name="currlag">0</var> | <var name="currlag">0</var> | ||
<alias name="setprompt"> | <alias name="setprompt"> | ||
Line 64: | Line 64: | ||
#verbatim</value> | #verbatim</value> | ||
</alias> | </alias> | ||
− | <button name="mobcondition" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="241" inset="true" toolstyle="true | + | <button name="mobcondition" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="241" inset="true" toolstyle="true" color="#FF8000" gaugelowcol="red" gaugebackcol="silver" priority="29"> |
<caption>@mobname</caption> | <caption>@mobname</caption> | ||
<value>@mobcond</value> | <value>@mobcond</value> | ||
Line 72: | Line 72: | ||
</button> | </button> | ||
</class> | </class> | ||
+ | |||
<class name="MobCondition"> | <class name="MobCondition"> | ||
<trigger priority="4830"> | <trigger priority="4830"> | ||
Line 112: | Line 113: | ||
<var name="mobmax">100</var> | <var name="mobmax">100</var> | ||
</class> | </class> | ||
+ | |||
</cmud> | </cmud> | ||
Revision as of 12:11, 4 December 2010
This script will utilize a prompt formatted in the following manner:
<1216/1216hp 2576/2576ma 1229v 41> 0 lag - - surge off
Where the two '-' symbols are monitor target's hp and hp as a % of max, respectively. Use the following Prompt script in-game:
prompt <|w|%h|n|/%Hhp |w|%m|n|/%Mma %vv |y|%T|n|> %s lag
prompt2 %w %P surge %S %n
This script also creates three gauges at the top of your screen (or wherever you choose to place them) showing your current hit points, mana points, and the condition of the mob you are fighting. (This condition is an estimate based upon damage statements.)
The Script
Save the following code as an .xml file, and import it into Cmud:
<?xml version="1.0" encoding="ISO-8859-1" ?> <cmud> <class name="Prompt"> <trigger priority="2180"> <pattern>~<(%d)/(%d)hp (%d)/(%d)ma (%d)v (%d)> (%d) lag * * surge *</pattern> <value>#var currhp %1 #var maxhp %2 #var currmana %3 #var maxmana %4 #var currmoves %5 #var currtnl %6 #var currlag %7 #if (@currtnl < 200) {#var message %ansi(high,yellow,blink)"Put on Level Gear Now" %ansi(default)}</value> </trigger> <stat name="StatBar" priority="2190"/> <button name="hp" type="Gauge" autosize="false" width="120" height="23" inset="true" toolstyle="true" color="#0080FF" gaugelowcol="red" gaugebackcol="silver" priority="19"> <caption>Hit Points</caption> <value>@currhp</value> <expr>@currhp</expr> <gaugemax>@maxhp</gaugemax> <gaugelow>@maxhp/4</gaugelow> </button> <button name="mp" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="121" inset="true" toolstyle="true" color="lime" gaugelowcol="red" gaugebackcol="silver" priority="25"> <caption>Mana Points</caption> <value>@currmana</value> <expr>@currmana</expr> <gaugemax>@maxmana</gaugemax> <gaugelow>@maxmana/4</gaugelow> </button> <var name="currtnl">560</var> <var name="currhp">650</var> <var name="maxhp">650</var> <var name="currmana">2137</var> <var name="maxmana">2137</var> <var name="currmoves">791</var> <var name="currlag">0</var> <alias name="setprompt"> <value>#verbatim prompt <|w|%h|n|/%Hhp |w|%m|n|/%Mma %vv |y|%T|n|> %s lag prompt2 %w %P surge %S %n prompt2 #verbatim</value> </alias> <button name="mobcondition" type="Gauge" autosize="false" width="120" height="23" autopos="false" left="241" inset="true" toolstyle="true" color="#FF8000" gaugelowcol="red" gaugebackcol="silver" priority="29"> <caption>@mobname</caption> <value>@mobcond</value> <expr>@mobcond</expr> <gaugemax>@mobmax</gaugemax> <gaugelow>@mobmax/3</gaugelow> </button> </class> <class name="MobCondition"> <trigger priority="4830"> <pattern>(*) is in excellent condition.</pattern> <value>#var mobname %1 #var mobcond 100</value> </trigger> <trigger priority="4840"> <pattern>(*) has a few scratches.</pattern> <value>#var mobname %1 #var mobcond 90</value> </trigger> <trigger priority="4850"> <pattern>(*) has some small wounds and bruises.</pattern> <value>#var mobname %1 #var mobcond 80</value> </trigger> <trigger priority="4860"> <pattern>(*) has quite a few wounds.</pattern> <value>#var mobname %1 #var mobcond 70</value> </trigger> <trigger priority="4870"> <pattern>(*) has some big nasty wounds and scratches.</pattern> <value>#var mobname %1 #var mobcond 50</value> </trigger> <trigger priority="4880"> <pattern>(*) looks pretty hurt.</pattern> <value>#var mobname %1 #var mobcond 30</value> </trigger> <trigger priority="4890"> <pattern>(*) is in awful condition.</pattern> <value>#var mobname %1 #var mobcond 20</value> </trigger> <var name="mobname" type="Literal">No mob</var> <var name="mobcond">100</var> <var name="mobmax">100</var> </class> </cmud>
Notes
Used in conjunction with the zAffects script, this will populate all of this information into a Status Window. I place mine in the bottom right hand corner of my CMud window, where it is convenient, but non-intrusive.
Designer comments
Feel free to note me here or on board 2 to Shalineth with any feedback or suggestions.