nabbig2
New Member
- Reaction score
- 43
Sorry, I'm not so good with triggers. I know basic ones but yeah...I wish I knew more. I'm a slow learner in school too But anyway I'm trying to learn...so this is what I have but it won't work...
Code:
m 1
Events
Unit - A unit Is attacked
Conditions
(Level of Slow Poison 2 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 PulverizeArea_Store) Equal to True
Then - Actions
Unit Group - Add (Triggering unit) to PulverizeArea_Store
Trigger - Add to Take Damage Pulverize <gen> the event (Unit - (Triggering unit) Takes damage)
Else - Actions
Code:
Take Damage Pulverize
Events
Conditions
((Triggering unit) has buff Slow Poison (PULVERIZE) (Non-stacking)) Equal to True
Actions
Trigger - Turn off (This trigger)
Unit - Remove Slow Poison (PULVERIZE) (Non-stacking) 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 77
Then - Actions
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Not equal to True) and (((Triggering unit) belongs to an ally of (Owner of Pulverizing_Unit)) Equal to True))) and do (Actions)
Loop - Actions
Unit - Cause Pulverizing_Unit 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 Pulverizing_Unit using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Trigger - Turn off (This trigger)