nabbig2
New Member
- Reaction score
- 43
Is there any way to detect if a unit does an ability based off of Pulverize?
Melee Initialization
Events
Unit - A unit Is attacked
Conditions
(Level of Pulverize for (Attacking unit)) Greater than 0
(Random integer number between 1 and 100) Less than or equal to (10 x (Level of Pulverize for (Attacking unit)))
Actions
Special Effect - Create a special effect attached to the origin of (Attacking unit) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Attacking unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))) and do (Actions)
Loop - Actions
Unit - Cause (Attacking unit) to damage (Triggering unit), dealing 500.00 damage of attack type Spells and damage type Normal
E - unit learns skill
C - learned hero skill = custom slow poision
A - set Pulverizer = triggering unit
E - Every 0.01 sec
C
A -
Set group 1 = units in map w buff [custom slow poison buff]
pick all in group 1 and
remove specific buff [custom slow poison buff] from picked unit
ifthenelse
if random integer between 1 and 5 equal to 1
then
set point = position of picked unit
create SFX at point
destroy SFX
set group 2 = units within 300 of picked unit matching is an enemy of Pulverizer and whatever other conditions
pick all in group 2 and
cause Pulverizer to damage picked unit dealing w/e damage
- destroy all variables -
else
destroy group 1
Pulverize
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Slow Poison 2
Actions
Set Pulverizing_Unit = (Triggering unit)
Pulverize Part 2
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Pulverize_Group and do (Unit - Remove Slow Poison (PULVERIZE) (Non-stacking) buff from (Picked unit))
Set Pulverize_Group = (Units in (Playable map area) matching (((Triggering unit) has buff Slow Poison (PULVERIZE) (Non-stacking)) Equal to True))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 77
Then - Actions
Set Pulverize_Point = (Position of (Picked unit))
Set Pulverize_Group_2 = (Units within 333.00 of (Position of (Picked unit)))
Unit Group - Pick every unit in Pulverize_Group_2 and do (Unit - Cause Pulverizing_Unit to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal)
Custom script: call DestroyGroup (udg_Pulverize_Group)
Custom script: call RemoveLocation (udg_Pulverize_Point)
Else - Actions
Custom script: call DestroyGroup (udg_Pulverize_Group_2)
Set Pulverize_Group = (Units in (Playable map area) matching (([B](Triggering unit)[/B] has buff Slow Poison (PULVERIZE) (Non-stacking)) Equal to True))
Set Pulverize_Point = (Position of (Picked unit))
Set Pulverize_Group_2 = (Units within 333.00 of (Position of (Picked unit)))
Attack
Events
Unit - A unit Is attacked
Conditions
(Level of Pulverize for (Attacking unit)) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is in UnitGroup_Store) Equal to False
Then - Actions
Unit Group - Add (Triggering unit) to UnitGroup_Store
Trigger - Add to Take Damage <gen> the event (Unit - (Triggering unit) Takes damage)
Else - Actions
Take Damage
Events
Conditions
((Triggering unit) has buff Acid Bomb) Equal to True
Actions
Trigger - Turn off (This trigger)
Unit - Remove Acid Bomb buff from (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to (10 x (Level of Pulverize for (Damage source)))
Then - Actions
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Damage source))) Equal to True) and (((Matching unit) is alive) Equal to True)))) and do (Actions)
Loop - Actions
Unit - Cause (Damage source) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the origin of (Damage source) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Trigger - Turn on (This trigger)
Careless mistake .Causes damage to Picked Unit...
Not Triggering Unit...
why make a trigger for a pulverize skill...?
just make it in editor and add special effects to the targets..
Pulverize detect
Events
Unit - A unit Learns a skill
Time - Every 0.01 seconds of game time
Conditions
(Learned Hero Skill) Equal to Slow Poison 2
Actions
Set Pulverizing_Unit = (Triggering unit)
Set Pulverize_Group = (Units in (Playable map area) matching (((Attacked unit) has buff Slow Poison (PULVERIZE) (Non-stacking)) Equal to True))
Unit Group - Pick every unit in Pulverize_Group and do (Unit - Remove Slow Poison (PULVERIZE) (Non-stacking) buff from (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 77
Then - Actions
Set Pulverize_Point = (Position of Pulverizing_Unit)
Set Pulverize_Group_2 = (Units within 333.00 of (Position of (Attacking unit)))
Unit Group - Pick every unit in Pulverize_Group_2 and do (Unit - Cause Pulverizing_Unit to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal)
Custom script: call DestroyGroup (udg_Pulverize_Group)
Custom script: call RemoveLocation (udg_Pulverize_Point)
Else - Actions
Custom script: call DestroyGroup (udg_Pulverize_Group_2)
Okay it's been 24 hours so, bump...can anyone help and tell me why this isn't working?
Code:Pulverize detect Events Unit - A unit Learns a skill Time - Every 0.01 seconds of game time Conditions (Learned Hero Skill) Equal to Slow Poison 2 Actions Set Pulverizing_Unit = (Triggering unit) Set Pulverize_Group = (Units in (Playable map area) matching (((Attacked unit) has buff Slow Poison (PULVERIZE) (Non-stacking)) Equal to True)) Unit Group - Pick every unit in Pulverize_Group and do (Unit - Remove Slow Poison (PULVERIZE) (Non-stacking) buff from (Picked unit)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Random integer number between 1 and 100) Less than or equal to 77 Then - Actions Set Pulverize_Point = (Position of Pulverizing_Unit) Set Pulverize_Group_2 = (Units within 333.00 of (Position of (Attacking unit))) Unit Group - Pick every unit in Pulverize_Group_2 and do (Unit - Cause Pulverizing_Unit to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal) Custom script: call DestroyGroup (udg_Pulverize_Group) Custom script: call RemoveLocation (udg_Pulverize_Point) Else - Actions Custom script: call DestroyGroup (udg_Pulverize_Group_2)
E) unit learns a skill
C) learned skill equal to blablabla
A) trigger - turn on Pulverize detect