Aye, I'm trying to make 2 spells that both are failing to show results:
The first one is a spell that will increase all allies' armor by 9999, making them immune to physical damage (sort of). I'm using Inner Fire to add the buff though, because my map is already full of roar based buffs. The point is that only one (sometimes two) random unit within 750 range is receiving the effect (+9999 armor), and can't figure out why.
The next I tried to turn a single target spell into a multiple target within an area (entangling roots), but I wanted to make a projectile that would move towards that area and only then begin the spell effect itself. The caster would throw a projectile into the target, and only after the entangle would occur.
Thanks in advance.
The first one is a spell that will increase all allies' armor by 9999, making them immune to physical damage (sort of). I'm using Inner Fire to add the buff though, because my map is already full of roar based buffs. The point is that only one (sometimes two) random unit within 750 range is receiving the effect (+9999 armor), and can't figure out why.
-
Custom
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Solar Flame
-
-
Actions
-
Set Custom_Caster = (Triggering unit)
-
Set Custom_Owner = (Owner of (Triggering unit))
-
Set Custom_Point = (Position of Custom_Caster)
-
Unit - Create 1 Dummy for Custom_Owner at Custom_Point facing Default building facing degrees
-
Set Custom_Dummy = (Last created unit)
-
Unit - Add Solar Flame Dummy to Custom_Dummy
-
Unit - Set level of Solar Flame Dummy for Custom_Dummy to (Level of Solar Flame for Custom_Caster)
-
Unit - Add a 2.00 second Generic expiration timer to Custom_Dummy
-
Set Custom_Group = (Units within 750.00 of Custom_Point)
-
Unit Group - Pick every unit in Custom_Group and do (Actions)
-
Loop - Actions
-
Set CustomTarget = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(CustomTarget belongs to an enemy of Custom_Owner) Equal to False
-
(CustomTarget is alive) Equal to True
-
-
Then - Actions
-
Unit - Order Custom_Dummy to Human Priest - Inner Fire CustomTarget
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_Custom_Point)
-
Custom script: call DestroyGroup(udg_Custom_Group)
-
-
The next I tried to turn a single target spell into a multiple target within an area (entangling roots), but I wanted to make a projectile that would move towards that area and only then begin the spell effect itself. The caster would throw a projectile into the target, and only after the entangle would occur.
-
Woe of War
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Woe of War
-
-
Actions
-
Set Spell_Variation_Level[1] = (Level of Woe of War for (Casting unit))
-
Unit - Create 1 Woe of War dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Target unit of ability being cast))
-
Set Spell_Variation_Dummy[1] = (Last created unit)
-
Set Spell_Variation_Dummy[2] = (Target unit of ability being cast)
-
Trigger - Turn on Woe of War Loop <gen>
-
-
-
Woe of War Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Move Spell_Variation_Dummy[1] instantly to ((Position of Spell_Variation_Dummy[1]) offset by 45.00 towards (Angle from (Position of Spell_Variation_Dummy[1]) to (Position of Spell_Variation_Dummy[2])) degrees), facing (Position of Spell_Variation_Dummy[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between (Position of Spell_Variation_Dummy[1]) and (Position of Spell_Variation_Dummy[2])) Less than or equal to 100.00
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 305.00 of (Position of Spell_Variation_Dummy[2])) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for (Owner of Spell_Variation_Caster[1]) at (Position of Spell_Variation_Dummy[2]) facing Default building facing degrees
-
Unit - Add Woe of War dummy to (Last created unit)
-
Unit - Set level of Woe of War dummy for (Last created unit) to Spell_Variation_Level[1]
-
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
-
Unit - Kill Spell_Variation_Dummy[1]
-
Set Spell_Variation_Dummy[1] = No unit
-
Set Spell_Variation_Dummy[2] = No unit
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Thanks in advance.
Last edited: