This is for Aardwolf, but can simply be altered to work on virtually any type of mud.
this is my prompt style as defined in the game:
it is shown as:
<1767/1767hp 1682/1682mn 1408/1408mv 803tnl Gold: 999>
with a CR at the end
this basically omits the original promptline, then does a DoAfterSpecial 0.1, AnsiNote ""WHATEVER HERE"", 12
the if statements set up the color change based upon the percentage of current life divided by total life you have, which is set to, 50% and less, AND 33% and less to check the colors.
included an if statement for mn (mana) as well but you can do one for ANYTHING you can match and compare.
You can even hardcode in a value for gold you want to be warned about, such as you need so much gold to be resurected with all your items, well then set the needed gold (max) value to double what you need (for starters, you can slowly work value down after you do the math to attain 50% and 33% still being more than what you need) so that it warns when you are getting low on gold to be resurected with, BUT you still do have enough to be resurected.
Code for it is to follow ... enjoy :)
Laterzzz,
Onoitsu2
this is my prompt style as defined in the game:
<%h/%Hhp %m/%Mmn %v/%Vmv %Xtnl Gold: %g>%cit is shown as:
<1767/1767hp 1682/1682mn 1408/1408mv 803tnl Gold: 999>
with a CR at the end
this basically omits the original promptline, then does a DoAfterSpecial 0.1, AnsiNote ""WHATEVER HERE"", 12
the if statements set up the color change based upon the percentage of current life divided by total life you have, which is set to, 50% and less, AND 33% and less to check the colors.
included an if statement for mn (mana) as well but you can do one for ANYTHING you can match and compare.
You can even hardcode in a value for gold you want to be warned about, such as you need so much gold to be resurected with all your items, well then set the needed gold (max) value to double what you need (for starters, you can slowly work value down after you do the math to attain 50% and 33% still being more than what you need) so that it warns when you are getting low on gold to be resurected with, BUT you still do have enough to be resurected.
Code for it is to follow ... enjoy :)
Laterzzz,
Onoitsu2