- Joined
- Oct 15, 2010
- Messages
- 71
Can anyone show me the GUI trigger of borrowed time? (The Lord of Avernus Ultimate in DotA)
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.
Borrowed Time Setup

Events

Conditions

Actions


Trigger - Add to Borrowed Time Damage Reversal <gen> the event (Unit - (Last created unit) Takes damage)


Trigger - Add to Borrowed Time Proc <gen> the event (Unit - (Last created unit)'s life becomes Less than 400.00)
Borrowed Time Cast

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Borrowed Time

Actions


Countdown Timer - Start BorrowedTime_timer as a One-shot timer that will expire in (2.00 + (Real((Level of Borrowed Time for (Triggering unit))))) seconds


Trigger - Turn on Borrowed Time Damage Reversal <gen>
Borrowed Time Finish

Events


Time - BorrowedTime_timer expires

Conditions

Actions


Trigger - Turn off Borrowed Time Damage Reversal <gen>


Trigger - Turn off Borrowed Time Proc <gen>


-------- ------------------------------------------------------------------------------------------------ --------


-------- ------------change the following time to whatever the CD is on your ability (minus .1 for good measure)----------------- --------


-------- ------------------------------------------------------------------------------------------------ --------


Countdown Timer - Start BorrowedTime_reproctimer as a One-shot timer that will expire in 60.00 seconds
Borrowed Time Proc

Events

Conditions

Actions


-------- ------------------------------------------------------------------------------------------------ --------


-------- ------------change the following ID to whatever your base ability is----------------- --------


-------- ------------------------------------------------------------------------------------------------ --------


Unit - Order (Triggering unit) to Orc Troll Berserker - Berserk
Borrowed Time Proc Act

Events


Time - BorrowedTime_reproctimer expires

Conditions

Actions


Trigger - Turn on Borrowed Time Proc <gen>
Borrowed Time Damage Reversal

Events

Conditions

Actions


Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) x 2.00))
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) x 2.00))
Starting

Events


Unit - A unit Is attacked

Conditions


(Owner of (Triggering unit)) Equal to Player 1 (Red)

Actions


Trigger - Add to Calculation <gen> the event (Unit - (Triggering unit) Takes damage)


Trigger - Turn off (This trigger)
Calculation

Events

Conditions

Actions


Set DamageReceive = ((Integer((Damage taken))) + (Integer((Damage taken))))


Unit - Set life of BorrowedUnit to ((Life of BorrowedUnit) + (Real(DamageReceive)))
Custom script: call DestroyTimer(udg_variable)
You just used up our ideas to fit into your map, how ORIGINAL eh ?
Plus, you used Wait action, which is NOT wise to use it, as it can cause the trigger to be non-MUI spell
Replace Wait action with Timer (as suggested by Raven0) for better efficiency
But, his trigger leaks of Timer
Destroy it by using this:
Custom script: call DestroyTimer(udg_variable)

Well, no need for war over here...
Thanks for the test map though, I'm just asking for a CREDITS or at least a proper "thank you" to us all who had given the basic ideas of the trigger, nothing more, really.
Do not plagiarism.


I actually didn't copy your ideas or anything, i just "borrowed" them, because when i did the spell only we editor was the only program i was using and looking, and etc etc, that means that we just think - a like. I already explained why i did the spell and w/e, don't get so mad, that i used your ideas, i don't claim them as my own, as i already mentioned. I just put them in one place and added a bit of my work so it is good for the guy who wanted it.



I'm just saying, if the answer has already been given (you said it yourself, 4/7 triggers), JUST let the thread goes on, don't repeat other people's answer as it will show you're a copy-cat


Haha, that's enough for arguing, we'll just wait for the Thread Starter to come back here and sort things out
Peace ;D
Status: Out of evil-state ;D (667) !
As far as i know the ability in DotA bugs sometimes. The solution above will not work in some cases:
1.
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) x 2.00))
- is bigger than the units max life -> therefore the calculation is wrong
2. The unit has less max life than the damage -> the unit will still die
You have to remeber that the damage event runs before the unit actually takes the damage!
is the trigger GUI in the map? (cause i can't load vjass maps into my warcraft 3 even when saving it with JNGP) and it has to be MUI.
Then how come i can't load vjass maps onto my warcraft 3?
As far as i know the ability in DotA bugs sometimes. The solution above will not work in some cases:
1.- is bigger than the units max life -> therefore the calculation is wrong
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) x 2.00))
2. The unit has less max life than the damage -> the unit will still die
You have to remeber that the damage event runs before the unit actually takes the damage!
axe's ultimate can cut through abadons ulti because it does more dmg than his max life -> killing the unit

i believe i made it MUI in it

Borrowed Time Initialization

Events


Unit - A unit Learns a skill

Conditions


(Learned Hero Skill) Equal to Borrowed Time

Actions


Set Borrower = (Triggering unit)


Trigger - Add to Borrowed Time Checking <gen> the event (Unit - Borrower Takes damage)


Trigger - Add to Borrowed Time Damage <gen> the event (Unit - Borrower Takes damage)


Trigger - Turn off (This trigger)
Borrowed Time Checking

Events

Conditions


(Life of Borrower) Less than or equal to 400.00


Borrowed_Cooldown Equal to False

Actions


Unit - Remove Negative buffs from Borrower


Unit - Order Borrower to Special - Channel
Borrowed Time Activation

Events


Unit - A unit Starts the effect of an ability

Conditions


Borrowed_Cooldown Equal to False


(Ability being cast) Equal to Borrowed Time

Actions


Special Effect - Create a special effect attached to the origin of Borrower using Abilities\Spells\Undead\Unsummon\UnsummonTarget.mdl


Set Borrowed_Effect = (Last created special effect)


Trigger - Turn on Borrowed Time Damage <gen>


Set Borrowed_Cooldown = True


Unit - Remove Negative buffs from Borrower


Trigger - Run Borrowed Time Timer <gen> (ignoring conditions)


Trigger - Turn on Borrowed Time Seconds <gen>
Borrowed Time Timer

Events

Conditions

Actions


Wait 10.00 seconds


Set Borrowed_Cooldown = False


Trigger - Turn off (This trigger)
Borrowed Time Damage

Events

Conditions


(Damage source) Not equal to Borrower

Actions


Unit - Set life of Borrower to ((Life of Borrower) + ((Damage taken) x 2.00))
Borrowed Time Seconds

Events


Time - Every 0.04 seconds of game time

Conditions

Actions


Set Borrowed_Time = (Borrowed_Time + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




Borrowed_Time Greater than or equal to (50 + (25 x (Level of Borrowed Time for Borrower)))



Then - Actions




Set Borrowed_Time = 0




Special Effect - Destroy Borrowed_Effect




Trigger - Turn off Borrowed Time Damage <gen>




Trigger - Turn off (This trigger)



Else - Actions
