Hello, I'm making an AOS map and there's a hero called viking. He has a spell based on War Stomp, called Bloodlust. The trigger's supposed to create a stomp at the position of the hero's position every 5 seconds, and it's supposed to bloodlust the Viking. Bloodlust(Speed) is based on bloodlust, and Bloodlust(stomp) is based on war stomp. All abilities have 0 mana cost.Here are the triggers:
Code:
Viking Bloodlust Begin
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Bloodlust
Actions
Set Hero[1] = (Casting unit)
Set TempInt[1] = 0
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 5.00 seconds
Set TempPoint = (Position of Hero[1])
Unit - Create 1 Dummy for (Owner of Hero[1]) at TempPoint facing Default building facing degrees
Unit - Add Bloodlust (Speed) to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Hero[1]
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_TempPoint)
Code:
Viking Bloodlust Stomp
Events
Time - Timer[1] expires
Conditions
TempInt[1] Less than or equal to 6
Actions
Set TempInt[1] = (TempInt[1] + 1)
Set TempPoint = (Position of Hero[1])
Unit - Create 1 Dummy for (Owner of Hero[1]) at TempPoint facing Default building facing degrees
Unit - Add Bloodlust (Stomp) to (Triggering unit)
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)