|
Cronos Novice
Joined: 06 Sep 2004 Posts: 30
|
Posted: Wed Jul 05, 2023 6:44 pm
Gauges |
Could someone assist with an HP gauge when the command prompt looks something like this?
<1000h(1272H) 434v(434V)> <-1000A 0h><=------------------*>
Would like to feed in 1000 as the @hp and 1272 as @maxhp for the trigger variables |
|
Last edited by Cronos on Fri Jul 07, 2023 9:14 pm; edited 1 time in total |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Wed Jul 05, 2023 8:22 pm |
Same as any other trigger really, capture the bits you need, don't worry about the rest:
#TR {<(%d)h~((%d)H~) (%d)v~((%d)V~)>} {hp=%1;maxHp=%2} {} {prompt}
That last bit is important so it checks the prompt instead of newlines.
Would still fire on newline, mind you, but your information will always be lagging behind the current values. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|