DrEvil
FCRI Associate!
- Reaction score
- 111
Ok so this is my fist ever spell submitted here ,
Ive looked at many MUI spells , took info in and studied.
This spell was inspired by " Anti-Krazy" Who didnt make a good job of it .
This spell keeps out melee attackers , while the shield is activated .
7 x Level of Bubble Shield - Mana each second.
MUI - Yes
MPI - Yes
vJass - No
Jass - No
GUI - Yes
I realy hope you all like it
My Code's :
Sorry for the terrain , my teraining skills are not good yet.
Il edit and add a few screenshot's in a minute .
And for now i must submit the map
All comments , good or bad .
Screenies :
Ive looked at many MUI spells , took info in and studied.
This spell was inspired by " Anti-Krazy" Who didnt make a good job of it .
This spell keeps out melee attackers , while the shield is activated .
7 x Level of Bubble Shield - Mana each second.
MUI - Yes
MPI - Yes
vJass - No
Jass - No
GUI - Yes
I realy hope you all like it
My Code's :
Code:
CV of all units
Events
Map initialization
Unit - A unit enters (Playable map area)
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Equal to 0
Then - Actions
Custom script: set udg_i = udg_i + 1
Unit - Set the custom value of (Picked unit) to i
Else - Actions
Code:
Bubble Shield Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Bubble Shield
Actions
Set UnitCV = (Custom value of (Triggering unit))
Set caster[UnitCV] = (Triggering unit)
Custom script: set udg_x =GetUnitX(udg_caster[udg_UnitCV])
Custom script: set udg_y =GetUnitY(udg_caster[udg_UnitCV])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Casting unit) is in BubbleShieldGroup) Equal to True
Then - Actions
Unit Group - Remove (Casting unit) from BubbleShieldGroup
Special Effect - Create a special effect at (Point(x, y)) using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCaster.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Unit Group - Add (Casting unit) to BubbleShieldGroup
Special Effect - Create a special effect at (Point(x, y)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
Code:
Bubble Shield Bubble
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in BubbleShieldGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Mana of (Picked unit)))) Greater than 0
Then - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - (0.18 x (Real((Level of Bubble Shield for (Picked unit))))))
Set UnitCV = (Custom value of (Picked unit))
Set BubblePosition[UnitCV] = (BubblePosition[UnitCV] + 5)
Set P = (Position of (Picked unit))
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
Set PP = (P offset by 150.00 towards (Real(((90 x (Integer A)) + BubblePosition[UnitCV]))) degrees)
Special Effect - Create a special effect at PP using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation ( udg_PP )
Custom script: call RemoveLocation ( udg_P )
Else - Actions
Unit Group - Remove (Picked unit) from BubbleShieldGroup
Code:
Bubble Shield KnockBack
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in BubbleShieldGroup and do (Actions)
Loop - Actions
Set BubbleUnit = (Picked unit)
Set BubbleShieldKB = (Units within 165.00 of (Position of (Picked unit)) matching (((Matching unit) belongs to an ally of (Owner of (Picked unit))) Equal to False))
Unit Group - Pick every unit in BubbleShieldKB and do (Actions)
Loop - Actions
Set FacingOfUnit = (Angle from (Position of BubbleUnit) to (Position of (Picked unit)))
Set P = (Position of (Picked unit))
Set PP = (P offset by 10.00 towards FacingOfUnit degrees)
Unit - Move (Picked unit) instantly to PP, facing (FacingOfUnit + 180.00) degrees
Unit - Cause BubbleUnit to damage (Picked unit), dealing ((Random real number between 1.50 and 3.50) x (Real((Level of Bubble Shield for BubbleUnit)))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation ( udg_P )
Custom script: call RemoveLocation ( udg_PP )
Custom script: call DestroyGroup ( udg_BubbleShieldKB )
Sorry for the terrain , my teraining skills are not good yet.
Il edit and add a few screenshot's in a minute .
And for now i must submit the map
All comments , good or bad .
Screenies :