tooltiperror
Super Moderator
- Reaction score
- 231
Swapping Spell Spack
[ Swap ]
Special Credit to Glenphir, for helping me with the spells, as well as checking for bugs and being my friend.
I did not want to create big fancy spells as much as I wanted to just add in some interesting spells to gameplay. These could be good for any AoS if you tweak the numbers to fit your map, or they can be great for an RPG. I plan on doing an update soon, with fixes, possible MUI, and a third spell. Please post constructive criticism.
[ Swap ]
Swap places with an enemy unit, then deal 125 damage.
Targets Land and Air units.
Targets Land and Air units.
Trigger:
- Swap
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Swap
- Actions
- Set Point_Caster = (Position of (Casting unit))
- Set Point_Target = (Position of (Target unit of ability being cast))
- Set Unit_Casting = (Casting unit)
- Set Unit_Targeted = (Target unit of ability being cast)
- -------- === --------
- Unit - Pause Unit_Casting
- -------- === --------
- Unit - Move Unit_Casting instantly to Point_Target, facing Point_Caster
- Unit - Move Unit_Targeted instantly to Point_Caster, facing Point_Target
- -------- === --------
- Unit - Unpause Unit_Casting
- Unit - Make Unit_Casting face Point_Target over 0.00 seconds
- Unit - Make Unit_Targeted face Point_Caster over 0.00 seconds
- Unit - Cause Unit_Casting to damage Unit_Targeted, dealing 125.00 damage of attack type Spells and damage type Magic
- Special Effect - Create a special effect at Point_Caster using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Point_Target using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation (udg_Point_Target)
- Custom script: call RemoveLocation (udg_Point_Caster)
- Events
-- = --
[ Eye for an Eye ]
Swap mana and life with a target unit, but burn 50 Mana of your recieved mana in the process. The target unit must have at least 200 Health to swap.
Targets Land and Air units.
Targets Land and Air units.
Trigger:
- Eye for an Eye
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Eye for an Eye
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Integer((Life of (Target unit of ability being cast)))) Greater than or equal to 200
- Then - Actions
- Set Unit_Casting = (Casting unit)
- Set Unit_Targeted = (Target unit of ability being cast)
- Set Point_Caster = (Position of (Casting unit))
- Set Point_Target = (Position of (Target unit of ability being cast))
- -------- === --------
- Set Real_Life_Caster = (Life of (Casting unit))
- Set Real_Life_Target = (Life of (Target unit of ability being cast))
- Set Real_Mana_Caster = (Mana of (Casting unit))
- Set Real_Mana_Target = (Mana of (Target unit of ability being cast))
- -------- === --------
- Unit - Set life of Unit_Casting to Real_Life_Target
- Unit - Set mana of Unit_Casting to (Real_Mana_Target - 50.00)
- Unit - Set life of Unit_Targeted to Real_Life_Caster
- Unit - Set mana of Unit_Targeted to Real_Mana_Caster
- Lightning - Create a Drain Life lightning effect from source Point_Caster to target Point_Target
- Set Lightning_EYE_FOR_EYE[(Player number of (Owner of Unit_Casting))] = (Last created lightning effect)
- Custom script: call RemoveLocation (udg_Point_Target)
- Custom script: call RemoveLocation (udg_Point_Caster)
- Wait 0.27 seconds
- Lightning - Destroy Lightning_EYE_FOR_EYE[(Player number of (Owner of Unit_Casting))]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Code:
v3: Paused and unpause casting unit to fix a cooldown bug, make both spells [b]officially MUI[/b] by adding in an array.
v2: Fixed a bug, I [b]think[/b] MUI, Leakless as GUI can be, and technical errors. Also made the abilities based off of Channel.
Special Credit to Glenphir, for helping me with the spells, as well as checking for bugs and being my friend.