KeresPup
Member
- Reaction score
- 5
Paracide Bomb
"Oh' look shorty' fireflies!" -Al
Description: With their expertise in technology and explosives, Al and Qaeda were able to attach microscopic explosives into small insects, locusts which were minions of Anub’arak. The insects would then set out to find a host body, preferably the enemies’ bodies, yet if no enemies are found, the insects might turn against its masters instead. Each time the enemies would attack, the insects would detonate each time their host attacks. If the host body dies before the insects inside them dies, the insects will find a new host and carry on its mission until it expires.
Details: When this skill is used, Al and Qaeda will release a number of “Insect Bomb” units, which are neither uncontrollable nor selectable. These insects will search for the closest enemy it can find and “stay” inside it. Each time the infected unit attacks, the insect will detonante for a few times before it will expire. The explosion will damage the infected unit greatly, and cause minor splash damage to nearby enemies and allies. If the “host” will die before the insect reaches its’ maximum detonation points, the insect will search for another unit to infect and continue doing so until it reaches its’ maximum detonation.
Note: The Insects will be using the Locusts model. They are unselectable and uncontrollable.
Warning: If the insects do not find a nearby enemy host, they will infect Al and Qaeda instead.
Ability Type: "Summon"/Multi-Target/Debuff
Casting Time: 2 seconds
Mana Cost:100/125/150/175
Cooldown: 45 seconds
Duration of Debuff/Insect Life Span: 60 Seconds
Splash Damage AoE: 200
- Level 1: 2 Insects will be released
- Infected unit receives 40 explosive damage each time it attacks.
- Units near the infected unit will receive 20 damage.
- Insects detonate up to 3 Times.
- Level 2: 3 Insects will be released
- Infected unit receives 45 explosive damage each time it attacks.
- Units near the infected unit will receive 25 damage.
- Insects detonate up to 4 Times.
- Level 3: 4 Insects will be released
- Infected unit receives 50 explosive damage each time it attacks.
- Units near the infected unit will receive 30 damage.
- Insects detonate up to 5 Times.
- Level 4: 5 Insects will be released
- Infected unit receives 55 explosive damage each time it attacks.
- Units near the infected unit will receive 35 damage.
- Insects detonate up to 6 Times.
================================
I've made it to go the way I want it so far, but it keeps on lagging, please tell me what's wrong with my codes here: (Leaky I think you'll say)
Code:
Paracide Bomb Initialize
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to Paracide Bomb
Actions
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Summoning unit))) 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 (Owner of (Summoning unit))) Equal to True
Then - Actions
Unit - Order (Summoned unit) to Night Elf Warden - Shadow Strike (Random unit from (Units within 1000.00 of (Position of (Summoning unit)) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Summoning unit))) Equal to True))))
Else - Actions
Unit - Order (Summoned unit) to Night Elf Warden - Shadow Strike (Summoning unit)
Code:
Paracide Bomb Infect
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Infect
Actions
Set ParasitesAtEffect[(Player number of (Owner of (Casting unit)))] = (ParasitesAtEffect[(Player number of (Owner of (Casting unit)))] + 1)
Set InfectingParasite[(ParasitesAtEffect[(Player number of (Owner of (Casting unit)))] + (((Player number of (Owner of (Casting unit))) - 1) x 5))] = (Casting unit)
Unit - Set the custom value of (Target unit of ability being cast) to (ParasitesAtEffect[(Player number of (Owner of (Casting unit)))] + (((Player number of (Owner of (Casting unit))) - 1) x 5))
Unit Group - Add (Target unit of ability being cast) to InfectedUnits[(Player number of (Owner of (Casting unit)))]
Unit - Hide (Casting unit)
Code:
Paracide Bomb Effect
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) has buff Paracide Bomb ) Equal to True
Actions
For each (Integer A) from 1 to 16, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in InfectedUnits[(Integer A)]) Equal to True
Then - Actions
Unit Group - Pick every unit in (Units owned by (Player((Integer A))) matching ((Unit-type of (Matching unit)) Equal to Bomb Squad)) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 200.00 of (Position of (Attacking unit))) and do (Actions)
Loop - Actions
Unit - Cause (Random unit from (Units owned by (Player((Integer A))) of type Bomb Squad)) to damage (Picked unit), dealing 20.00 damage of attack type Spells and damage type Fire
Unit - Cause (Picked unit) to damage (Attacking unit), dealing 40.00 damage of attack type Spells and damage type Fire
Special Effect - Create a special effect attached to the origin of (Attacking unit) using Abilities\Spells\Other\Doom\DoomDeath.mdl
Else - Actions
Code:
Paracide Bomb Effect
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) has buff Paracide Bomb ) Equal to True
Actions
For each (Integer A) from 1 to 16, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in InfectedUnits[(Integer A)]) Equal to True
Then - Actions
Unit Group - Pick every unit in (Units owned by (Player((Integer A))) matching ((Unit-type of (Matching unit)) Equal to Bomb Squad)) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 200.00 of (Position of (Attacking unit))) and do (Actions)
Loop - Actions
Unit - Cause (Random unit from (Units owned by (Player((Integer A))) of type Bomb Squad)) to damage (Picked unit), dealing 20.00 damage of attack type Spells and damage type Fire
Unit - Cause (Picked unit) to damage (Attacking unit), dealing 40.00 damage of attack type Spells and damage type Fire
Special Effect - Create a special effect attached to the origin of (Attacking unit) using Abilities\Spells\Other\Doom\DoomDeath.mdl
Else - Actions
Please help! Please help! :banghead: