Basically, I want to make a trigger than activates when my health is below a certain threshold.
This is what the prompt looks like, it is sent after each line of output.
1672h, 1128m, 1197e, 0p, 6380en, 4310w ex-
Health is the first variable.
What I did is, I made a trigger with this as the tagline
^*h, *m, *e, *p, *en, *w ex-$
And I set this as the code (lua, and I am sending to script)
health=%1
mana=%2
if health<400 then
send("Health is low! Escape)
end
But it did nothing... Can someone explain to me what I'm doing wrong?
This is what the prompt looks like, it is sent after each line of output.
1672h, 1128m, 1197e, 0p, 6380en, 4310w ex-
Health is the first variable.
What I did is, I made a trigger with this as the tagline
^*h, *m, *e, *p, *en, *w ex-$
And I set this as the code (lua, and I am sending to script)
health=%1
mana=%2
if health<400 then
send("Health is low! Escape)
end
But it did nothing... Can someone explain to me what I'm doing wrong?