U are a noob
Mega Super Ultra Cool Member
- Reaction score
- 152
MUI
Uses Uareanoob's GUI MUI System.
Grab all enemy the units in 500 range and swings it around the hero. When one of the swinging units hits another unit that unit will be launched back.150 damage will be dealt to hit unit and swinging unit. After spell is done the swinging units will be launched forward.
Uses Uareanoob's GUI MUI System.
Grab all enemy the units in 500 range and swings it around the hero. When one of the swinging units hits another unit that unit will be launched back.150 damage will be dealt to hit unit and swinging unit. After spell is done the swinging units will be launched forward.
Code:
Unit Sheild
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Unit Sheild
Actions
Set Caster = (Triggering unit)
Set CasterLoc = (Position of Caster)
Set CustomValue = (Custom value of Caster)
Set CasterArray[CustomValue] = Caster
Set AreaGroup[CustomValue] = (Units within 500.00 of CasterLoc matching ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True) and (((Matching unit) is A structure) Equal to False)))
Set LengthCount[CustomValue] = 0
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CustomValue Greater than HighestCustomValue
Then - Actions
Set HighestCustomValue = CustomValue
Else - Actions
Unit Group - Pick every unit in AreaGroup[CustomValue] and do (Actions)
Loop - Actions
Set PickedUnit = (Picked unit)
Unit - Make PickedUnit face 360.00 over 0.00 seconds
Unit - Pause PickedUnit
Unit - Turn collision for PickedUnit Off
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in AreaGroup[CustomValue]) Not equal to 0
Then - Actions
Trigger - Turn on Unit Sheild Periodic <gen>
Else - Actions
Custom script: call DestroyGroup (udg_AreaGroup[udg_CustomValue])
Custom script: call RemoveLocation(udg_CasterLoc)
Code:
Unit Sheild Periodic
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to HighestCustomValue, do (Actions)
Loop - Actions
Set IntegerA = (Integer A)
Set LengthCount[IntegerA] = (LengthCount[IntegerA] + 1)
Set CasterLoc = (Position of CasterArray[IntegerA])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FacingAngle[IntegerA] Less than or equal to 0.00
Then - Actions
Set FacingAngle[IntegerA] = (FacingAngle[IntegerA] - 6.00)
Else - Actions
Set FacingAngle[IntegerA] = 360.00
Unit Group - Pick every unit in AreaGroup[IntegerA] and do (Actions)
Loop - Actions
Set PickedUnit = (Picked unit)
Set PickedUnitLoc = (Position of PickedUnit)
Set DistanceDifference = (Distance between PickedUnitLoc and CasterLoc)
Set PickedUnitMoveTo = (CasterLoc offset by DistanceDifference towards FacingAngle[IntegerA] degrees)
Destructible - Pick every destructible within 100.00 of PickedUnitMoveTo and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Unit - Move PickedUnit instantly to PickedUnitMoveTo
Unit - Make PickedUnit face (FacingAngle[IntegerA] - 90.00) over 0.00 seconds
Custom script: set bj_wantDestroyGroup=true
Unit Group - Pick every unit in (Units within 100.00 of PickedUnitMoveTo matching ((((Matching unit) belongs to an enemy of (Owner of CasterArray[IntegerA])) Equal to True) and ((((Matching unit) is in AreaGroup[IntegerA]) Equal to False) and ((((Matching unit) is in PushGroup) Equal to Fal and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to PushGroup
Unit - Make (Picked unit) face (FacingAngle[IntegerA] - 90.00) over 0.01 seconds
Unit - Add DistanceTraveled to (Picked unit)
Special Effect - Create a special effect attached to the origin of PickedUnit using Abilities\Weapons\HydraliskImpact\HydraliskImpact.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause CasterArray[IntegerA] to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal
Unit - Cause CasterArray[IntegerA] to damage PickedUnit, dealing 150.00 damage of attack type Spells and damage type Normal
Unit - Set level of DistanceTraveled for (Picked unit) to 1
Unit - Turn collision for (Picked unit) Off
Custom script: call RemoveLocation(udg_PickedUnitLoc)
Custom script: call RemoveLocation(udg_PickedUnitMoveTo)
Custom script: call RemoveLocation(udg_CasterLoc)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LengthCount[IntegerA] Greater than or equal to 600
Then - Actions
Unit Group - Pick every unit in AreaGroup[IntegerA] and do (Actions)
Loop - Actions
Set PickedUnit = (Picked unit)
Unit - Turn collision for PickedUnit Off
Unit Group - Add PickedUnit to PushGroup
Unit - Add DistanceTraveled to PickedUnit
Unit - Set level of DistanceTraveled for PickedUnit to 1
Unit - Unpause PickedUnit
Set LengthCount[IntegerA] = 0
Custom script: call DestroyGroup (udg_AreaGroup[GetForLoopIndexA()])
Else - Actions
Unit Group - Pick every unit in PushGroup and do (Actions)
Loop - Actions
Set PickedUnit = (Picked unit)
Set PickedUnitLoc = (Position of PickedUnit)
Set PickedUnitMoveTo = (PickedUnitLoc offset by (15.00 - ((Real((Level of DistanceTraveled for PickedUnit))) x 0.15)) towards (Facing of PickedUnit) degrees)
Unit - Pause PickedUnit
Unit - Move PickedUnit instantly to PickedUnitMoveTo
Unit - Increase level of DistanceTraveled for PickedUnit
Destructible - Pick every destructible within 100.00 of PickedUnitMoveTo and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 3) Equal to 1
Then - Actions
Special Effect - Create a special effect attached to the origin of PickedUnit using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of DistanceTraveled for PickedUnit) Greater than or equal to 100
Then - Actions
Unit Group - Remove PickedUnit from PushGroup
Unit - Remove DistanceTraveled from (Triggering unit)
Unit - Unpause PickedUnit
Unit - Turn collision for PickedUnit On
Else - Actions
Custom script: call RemoveLocation(udg_PickedUnitLoc)
Custom script: call RemoveLocation(udg_PickedUnitMoveTo)
Code:
Preload
Events
Map initialization
Conditions
Actions
Unit - Remove Perload 0104 <gen> from the game
Visibility - Disable fog of war
Visibility - Disable black mask
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Entire map)