Target Condition
Posted: Tue Nov 24, 2015 10:09 pm
Hello,
i have created a miniconsole named "target",
now i want to send the condition of my current target to this miniconsole.
For that
i triggered the current Target and set a variable
regex trigger: You are now targetting (.*).
target = matches[2]
i highlited it successfully:
if id then killTrigger(id) end
if dea then killTrigger(dea) end
id = tempTrigger(id, [[selectString("]] .. target .. [[", 1) fg("gold") resetFormat()]])
dea = target:title()
dea = tempTrigger(dea, [[selectString("]] .. target .. [[ is DEAD, R.I.P." , 1) fg("gold") resetFormat()]])
Now i like to trigger the Condition of the Target,
for example i targetting Hobbit
and in the game there is
Hobbit is in very bad shape (70%).
Mera is in good shape (90%).
Dog is nearly dead (5%).
How can i trigger only the condition of my current target?
(.*)( is )(.*)( \([0-9][0-9]%\)\.)
would match all enemies but i would need
(target)( is )(.*)( \([0-9][0-9]%\)\.)
How i can trigger this AND send this to the Miniconsole?
And how can i enabled this Trigger after my Target is dead?
Would be very gratefully about hints/solutions!
i have created a miniconsole named "target",
now i want to send the condition of my current target to this miniconsole.
For that
i triggered the current Target and set a variable
regex trigger: You are now targetting (.*).
target = matches[2]
i highlited it successfully:
if id then killTrigger(id) end
if dea then killTrigger(dea) end
id = tempTrigger(id, [[selectString("]] .. target .. [[", 1) fg("gold") resetFormat()]])
dea = target:title()
dea = tempTrigger(dea, [[selectString("]] .. target .. [[ is DEAD, R.I.P." , 1) fg("gold") resetFormat()]])
Now i like to trigger the Condition of the Target,
for example i targetting Hobbit
and in the game there is
Hobbit is in very bad shape (70%).
Mera is in good shape (90%).
Dog is nearly dead (5%).
How can i trigger only the condition of my current target?
(.*)( is )(.*)( \([0-9][0-9]%\)\.)
would match all enemies but i would need
(target)( is )(.*)( \([0-9][0-9]%\)\.)
How i can trigger this AND send this to the Miniconsole?
And how can i enabled this Trigger after my Target is dead?
Would be very gratefully about hints/solutions!