5568h, 3396m, 3654e, 10p, 22760en, 15020w esSilrx-
where:
h = current health
m = current mana
e = current ego
p = current power
en = current endurance
w = current willpower
and all of those letters stand for various other balances and such.
SO... I want to define values for each pulling them from a trigger. Looking at Vadi's Sipper script, I get the idea that I should use a the perl regex to:
Code: Select all
^(\d+)h, (\d+)m,
SO... carrying that logic through, would I
Code: Select all
^(\d+)h, (\d+)m, (\d)e, (\d)p, (\d)en, (\d)w,
but then I am not sure how to finish out the line. To complicate matters even more, whenever I attack something, I gain a value called momentum. It would look something like this:
5568h, 3396m, 3654e, 10p, 22760en, 15020w, 1mo esSilrx-
Where momentum can go as high as 5mo.
Can anyone help me how to finish this line, accounting for both 15020w, esSilrx- (which is 0 momentum) and 15020w, 1mo esSilrx- (which starts 1 momentum).
Also... how would I convert both 0 and 1-5 momentum into a "currentmomentum = "