- Joined
- Apr 5, 2018
- Messages
- 116
Unit - Set Armor of (Triggering unit) to ((Armor of (Triggering unit)) I can only write this in trigger, how write Unit - Set Armor of (Triggering unit) to ((Armor of (Triggering unit) x 1,25)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It is don't workUse the arithmetic function when choosing a real value.
Untitled Trigger 008
Events
Map initialization
Conditions
(Ability being cast) Equal to Gwiezdne Szaty
Actions
Unit - Set Armor of (Triggering unit) to (1.00 x 1.10)
Unit - Set Armor of (Triggering unit) to (1.00 x 1.10)
Unit - Set Armor of (Triggering unit) to (Armor of (Triggering unit) x 1.10)
Untitled Trigger 008

Events


Map initialization

Conditions


(Ability being cast) Equal to Gwiezdne Szaty

Actions


Unit - Set Armor of (Triggering unit) to ((Armor of (Triggering unit)) x 1.10)
This is don't work on hero in my map:Use the edit function to edit your post instead of posting a lot of consecutive replies.
Also why do you do;
?
Unit - Set Armor of (Triggering unit) to (1.00 x 1.10)
It sets the armor of the triggering unit to 1, then adds 10%. Is that intentional, or were you gonna give 10% of current armor? If so do this;
Also there is no triggering unit in the event "Map Initialization" so how you made your trigger work beats me.
Unit - Set Armor of (Triggering unit) to (Armor of (Triggering unit) x 1.10)
Unit - Set Armor of (Triggering unit) to (Armor of (Triggering unit) x 1.10)
Untitled Trigger 008

Events


Map initialization

Conditions


(Ability being cast) Equal to Gwiezdne Szaty

Actions


Unit - Set Armor of (Triggering unit) to ((Armor of (Triggering unit)) x 1.10)
This is don't work on hero!The event fires the trigger on map initialiozation, and there's no "(Triggering unit)". You probably want "A unit starts the effect of an ability" event.
Untitled Trigger 008

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Gwiezdne Szaty

Actions


Unit - Set Armor of (Triggering unit) to ((Armor of (Triggering unit)) x 1.10)
I am doing its good, but this is no effect, I try start effect trigger and this is don't work.Your trigger isn't even executing because you are using map initialization as your event, then you have a condition to check for a unit casting an ability.
There are no unit casting any abilities at map initialization therefore the triggering unit doesn't exist. You can't set the armor of a unit that doesn't exist.
Use the event "A unit starts the effect of an ability", that should fix it.
If you want it to happen at map initialization then remove the ability condition, and pick the unit instead of using triggering unit.
Events:
A unit learns a skill
Conditions:
Learned hero skill equal to Your Skill
Actions:
Set Armor of triggering unit to Armor of triggering unit * 1.10
