Very much appreciated, worked like a charm. I've tried to expand on it a bit and failed, but can't quite find my answers. I want to be able to have more than one debuff on the status bar and them not to alternate between which one it shows.
Here's how I changed the initial trigger.
<triggers>
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
match="You deftly slam the pommel of your weapon into *'s hand, impairing his ability to parry."
send_to="12"
sequence="100"
>
<send>
SetVariable ("HiltDur", "33")
SetVariable ("HiltTar", "%1")
require "wait"
require "wait"
wait.make (function ()
for i = 33, 2, -1 do
SetVariable ("HiltDur", "%i")
wait.time (1)
end -- for
end)
</send>
</trigger>
</triggers>
The first issue is that it is literally saving '%i' as the variable rather than what i's value is in this loop. Don't understand the actual use of %i I guess, is it only in a string output?
Next, I figured I could make a timer to update the status every second ... to where it shows like this ...
Hilt: 27 Rough: 30 Garotte: 33 ECT.
I tried something like this inside the send section of a timer with no luck.
SetStatus ("Hilt: ", GetVariable("HiltDur"), "Rough: ", GetVariable("RoughDur"))
|