 |
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: 4734 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 |
|
|
 |
chris123zugg Adept
Joined: 23 Aug 2013 Posts: 207
|
Posted: Tue Feb 18, 2025 11:11 pm |
Does one need to set a prompt in settings for this to work when using "prompt" in a trigger?
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4734 Location: Pensacola, FL, USA
|
Posted: Sat Feb 22, 2025 12:49 pm |
No, it can distinguish from a prompt and a standard line by the lack of crlf (carriage return, line feed)
Well, i presume thats how it knows, could be another way |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
|
|