Hello,
i am trying to do a trigger that when u type "-hp" then u get the currently selected unit's Life. It should show up with a text message.
I tried this:
It should be like in vampirism beast.
i am trying to do a trigger that when u type "-hp" then u get the currently selected unit's Life. It should show up with a text message.
I tried this:
Code:
Hit Points
Ereignisse
Spieler - Spieler 1 (Rot) types a chat message containing -hp as Exakte Ãœbereinstimmung
Bedingungen
Aktionen
Set SelectedUnits = (Units currently selected by (Triggering player))
Spiel - Display to Spielergruppe - Spieler 1 (Rot) the text: (|cffFF0000Hit points:|r + ((String((Leben of (Triggering unit)))) + ( / + (String((Max. Leben of (Triggering unit)))))))
Custom script: call DestroyGroup (udg_SelectedUnits)
It should be like in vampirism beast.