Read the title. Here’s what I’ve got so far:
set (health) of (last attacked unit) as (health of (last attacked unit)) - (random number between 1 - 8), and putting this onto the “run script” part of the edit item section. Will this work?
1 Like
I think the Run Script effect doesn’t work so don’t use it; just add the when unit gets attacked
trigger to your script. Also add an if / else / then
action that checks if the attacked unit is hostile to the attacker. The final script should look something like this:
triggers: when unit gets attacked
if (item type of (last attacking item)) == (<your weapon that does 1~8 damage>)
then do:
if ( (owner of (last attacked unit)) is hostile to (owner of (last attacking unit)) ) == true
then do:
set (health) of (last attacked unit) as (health of (last attacked unit)) - (random number between 1 - 8)
else do:
else do:
1 Like
Okay, because you joined the forums, all my questions are being answered. Thanks.
1 Like