- Joined
- Aug 2, 2015
- Messages
- 69
Hi,
Is it possible to make for example Bloodlust skill an AOE type skill?
Is it possible to make for example Bloodlust skill an AOE type skill?
Last edited:
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.
Flame Sear

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Flame Sear

Actions


Unit Group - Pick every unit in (Random 7 units from (Units within 700.00 of (Position of (Casting unit)) matching ((Owner of (Matching unit)) Not equal to Player 20 (Lavender)).)) and do (Actions)



Loop - Actions




Unit - Create 1 Flame Sear for Neutral Hostile at (Position of (Picked unit)) facing Default building facing degrees




Unit - Hide (Last created unit)




Unit - Set mana of (Last created unit) to 99.00%




Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn (Picked unit)




Wait 2.00 seconds




Unit - Remove (Last created unit) from the game
Cast Soul Burn AoE

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to AoE Soul Burn

Actions


Set VariableSet Point = (Position of (Triggering unit))


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


-------- Set this to the Area of Effect of your spell --------


Set VariableSet AoE = 800.00


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


-------- Create and setup the Dummy --------


Unit - Create 1 Dummy (Uncle) for (Triggering player) at Point facing Default building facing degrees


Unit - Add Soul Burn (Dummy) to (Last created unit)


Unit - Add a 0.50 second Generic expiration timer to (Last created unit)


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


Custom script: set bj_wantDestroyGroup = true


Unit Group - Pick every unit in (Units within AoE of Point.) and do (Actions)



Loop - Actions




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





If - Conditions






((Picked unit) belongs to an enemy of (Triggering player).) Equal to True






((Picked unit) is alive) Equal to True






((Picked unit) is A structure) Equal to False






((Picked unit) is hidden) Equal to False






((Picked unit) is invulnerable) Equal to False






((Picked unit) is Magic Immune) Equal to False





Then - Actions






Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn (Picked unit)





Else - Actions


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


-------- Clean up memory leaks --------


Custom script: call RemoveLocation (udg_Point)
Cast Soul Burn AoE max targets

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to AoE Soul Burn

Actions


Set VariableSet Point = (Position of (Triggering unit))


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


-------- Set this to the Area of Effect of your spell --------


Set VariableSet AoE = 800.00


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


-------- Set this to the maximum number of targets affected --------


Set VariableSet SB_Max_Targets = 15


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


-------- Create and setup the Dummy --------


Unit - Create 1 Dummy (Uncle) for (Triggering player) at Point facing Default building facing degrees


Unit - Add Soul Burn (Dummy) to (Last created unit)


Unit - Add a 0.50 second Generic expiration timer to (Last created unit)


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


Set VariableSet SB_Group = (Units within AoE of Point.)


Unit Group - Pick every unit in SB_Group and do (Actions)



Loop - Actions




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





If - Conditions






((Picked unit) belongs to an enemy of (Triggering player).) Equal to True






((Picked unit) is alive) Equal to True






((Picked unit) is A structure) Equal to False






((Picked unit) is hidden) Equal to False






((Picked unit) is invulnerable) Equal to False






((Picked unit) is Magic Immune) Equal to False





Then - Actions





Else - Actions






-------- This gets rid of units from SB_Group that shouldn't be in it (like allies) --------






Unit Group - Remove (Picked unit) from SB_Group.


For each (Integer A) from 1 to SB_Max_Targets, do (Actions)



Loop - Actions




-------- This picks (SB_Max_Targets) units at random from SB_Group and casts Soul Burn on them --------




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





If - Conditions






(Number of units in SB_Group) Greater than 0





Then - Actions






Set VariableSet SB_Target = (Random unit from SB_Group)






Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn SB_Target






Unit Group - Remove SB_Target from SB_Group.





Else - Actions


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


-------- Clean up memory leaks --------


Custom script: call DestroyGroup (udg_SB_Group)


Custom script: call RemoveLocation (udg_Point)
SB

Events


Unit - Grand Warlock 0459 <gen> Is attacked


Unit - Lady 0460 <gen> Is attacked

Conditions

Actions


Trigger - Turn off (This trigger)


Unit - Order (Attacked unit) to Special - Channel.


Wait 3.50 seconds


Trigger - Turn on (This trigger)
To clarify this. Wait does not work inside those functions. It will literally cause the thread to crash when TriggerSleepAction, the function that Wait is implemented with, is called.You should avoid using Waits inside the Pick Every Unit function as it will cause problems.
That makes no sense as players do not have buttons. Only clients do.is there a way to order computer press a certain button instead?
