Kyzarius Posted October 26, 2018 Report Share Posted October 26, 2018 (edited) Everything I do is in Wintin 95 The original client, Enjoy. Alias are called by Action variable based on HP loss or Gain #alias {hpgain} {#showme <<<-YOU GAINED $changehp HITPOINTS->>>} #alias {hploss} {#showme <<<-YOU LOST $changehp HITPOINTS->>>} Action Constantly watches your prompt, initial {} configurable to your own prompt. #action {<%1/%2hp } {#var oldhp $curhp; #var curhp %1; #math {changehp}{$oldhp - $curhp};#if {$changehp > 0} {hploss};#if {$changehp < 0} {hpgain}} {5} Variables defined, you dont have to make these, except for the {oldhp $curhp} one, i believe. The action will create the others. #variable {hpgained} //hp gained from last sample #variable {oldhp} //your previous sample hp #variable {oldhp $curhp} //loads your cur hp into your previous hp. #variable {curhp} //your current hp as of this prompt refresh #variable {changehp} //the variance between the two, is checked to determine which alias is called. Tip: Type "#message VAR" at login to turn off client variable echo if it is on. I have a small astetic bug, it shows a gain as a - number. Just need to add an ABS Value to the result for hp gain but I am lazy. Echoes are unique enough to highlight if you so desire. Edited October 26, 2018 by Kyzarius Link to comment Share on other sites More sharing options...
Recommended Posts