So ive made this trigger which activates on the use of a spell. The trigger will make the transparency of the trigering unit to a certain%, But it will also give the unit every 2.50 seconds apermanent invisibility for 0.90 seconds. Tho this messes up the transparency cause when the invisibility is removed the transparency is gone as well. So i try'd to fix it with this trigger:
Shadow invis
Events
Time - Every 2.50 seconds of game time
Conditions
(Paladin 0001 <gen> has buff Shadow Invisibility ) Equal to True
Actions
Unit - Add Shadow Invisibility (Effect2) to Paladin 0001 <gen>
Wait 0.90 seconds
Unit - Remove Shadow Invisibility (Effect2) from Paladin 0001 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(In-game time of day) Greater than or equal to 0.00
(In-game time of day) Less than 6.00
Then - Actions
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with TransParencyNight% transparency
Else - Actions
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with TransParency% transparency
Shadow invisibility (effect 2) = Same spell as Permanent invisibility
TransparencyNight & Transparency are real variables that indicate the number of the transparency.
So i thought i'd just give the hero the transparency again if the permanent invisibility is removed but sadly this doesnt work.
Anyone has an idea how to make it work or is it just impossible?
Shadow invis
Events
Time - Every 2.50 seconds of game time
Conditions
(Paladin 0001 <gen> has buff Shadow Invisibility ) Equal to True
Actions
Unit - Add Shadow Invisibility (Effect2) to Paladin 0001 <gen>
Wait 0.90 seconds
Unit - Remove Shadow Invisibility (Effect2) from Paladin 0001 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(In-game time of day) Greater than or equal to 0.00
(In-game time of day) Less than 6.00
Then - Actions
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with TransParencyNight% transparency
Else - Actions
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with TransParency% transparency
Shadow invisibility (effect 2) = Same spell as Permanent invisibility
TransparencyNight & Transparency are real variables that indicate the number of the transparency.
So i thought i'd just give the hero the transparency again if the permanent invisibility is removed but sadly this doesnt work.
Anyone has an idea how to make it work or is it just impossible?