Is this possible? I am really new to Jass and went through many tutorials, but I am still a beginner, so it's kind of complex to me.
I wanted to make a local variable work in multiple functions because I want to create a spell, that creates a shield that absorbs 300 damage.
I made a local variable "damagelimit"
I made the unit being shielded "target"
but I was able to set the damagelimit and loop it so the damage won't be done to the unit until the damagelimit is turned to 0 or lower. However, I don't seem to be able to work this right. Can someone help me?
EDIT: Is it also possible to take EVENT_UNIT_DAMAGED as TriggerRegisterAnyUnitEventBJ unit?
I wanted to make a local variable work in multiple functions because I want to create a spell, that creates a shield that absorbs 300 damage.
I made a local variable "damagelimit"
I made the unit being shielded "target"
but I was able to set the damagelimit and loop it so the damage won't be done to the unit until the damagelimit is turned to 0 or lower. However, I don't seem to be able to work this right. Can someone help me?
EDIT: Is it also possible to take EVENT_UNIT_DAMAGED as TriggerRegisterAnyUnitEventBJ unit?