Capturing Lusternian assess lines

Post Reply
tarkenton
Posts: 30
Joined: Thu Feb 07, 2013 7:33 am

Capturing Lusternian assess lines

Post by tarkenton »

Hey all, I'm messing with capturing the output from assess in Lusternia to display in a miniwindow. I actually have it working how I want it to (assess, capture the lines and their contents w/a gate, delete the lines, update the window when we close the gate). However, I am having an issue with capturing bleeding damage. To be more specific, the bleeding damage line is not displayed if the target isn't bleeding. Not a huge deal, except my window doesn't update the bleeding damage to zero or anything because there wasn't a value for it to ever capture. The input for the triggers and such looks like this
Code: [show] | [select all] lua
You glance over Foo and see that his health is at 9665/10056.
You assess the bodily wounds as follows:
* Head has no wounds.
* Chest has no wounds.
* Gut has no wounds.
* Left arm has no wounds.
* Right arm has no wounds.
* Left leg has no wounds.
* Right leg has no wounds.
Code: [show] | [select all] lua
You glance over Foo and see that his health is at 9439/10056.
He is bleeding for 10 health.
You assess the bodily wounds as follows:
* Head has no wounds.
* Chest has no wounds.
* Gut has no wounds.
* Left arm has no wounds.
* Right arm has no wounds.
* Left leg has no wounds.
* Right leg has no wounds.
Is there a tricky way to get the variable to update when the line is never displayed? I could just update it to zero if the values are identical (which is unlikely to happen between assesses) but that's inelegant at best imo.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Capturing Lusternian assess lines

Post by Vadi »

You could update it to zero at the start of the gate, and then set it to something if you see the line.

Post Reply