- Joined
- Jul 24, 2008
- Messages
- 180
Alright so i started using hashtables 3 days ago and i've had minor success. This trigger worked originally with variables, but it could only be done once at a time. I attempted to make it MUI with hashtables today and it doesn't work any more.
This trigger is supposed to identify the variables and start the following triggers.
This trigger is supposed to identify the variables and start the following triggers.
-
Pyre
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Pyre
-
-
Actions
-
Unit Group - Add (Target unit of ability being cast) to PyreUnits
-
Unit Group - Pick every unit in PyreUnits and do (Actions)
-
Loop - Actions
-
Hashtable - Save Handle Of(Target unit of ability being cast) as (Key unit) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save Handle OfNo unit as (Key target) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0 as (Key orb angle) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0 as (Key timer) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0.00 as (Key angle) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0.00 as (Key distance) of (Key (Picked unit)) in Pyretable
-
-
-
Trigger - Turn on Pyre Revolve <gen>
-
-
Pyre Revolve
-
Events
-
Time - Every 0.10 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in PyreUnits and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key timer) of (Key (Picked unit)) from Pyretable) Equal to ((Level of Pyre for WizardActive) x 6)
-
-
Then - Actions
-
Hashtable - Save Handle Of(Target unit of ability being cast) as (Key unit) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0 as (Key orb angle) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0 as (Key timer) of (Key (Picked unit)) in Pyretable
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Hashtable - Save ((Load (Key timer) of (Key (Picked unit)) from Pyretable) + (1 / 10)) as (Key timer) of (Key (Picked unit)) in Pyretable
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key orb angle) of (Key (Picked unit)) from Pyretable) Equal to 324
-
-
Then - Actions
-
Hashtable - Save 0 as (Key orb angle) of (Key (Picked unit)) in Pyretable
-
-
Else - Actions
-
Hashtable - Save ((Load (Key orb angle) of (Key (Picked unit)) from Pyretable) + 36) as (Key orb angle) of (Key (Picked unit)) in Pyretable
-
-
-
-
-
-
-
Special Effect - Create a special effect at ((Position of (Load (Key unit) of (Key (Picked unit)) in Pyretable)) offset by 50.00 towards (Real((Load (Key orb angle) of (Key (Picked unit)) from Pyretable))) degrees) using Abilities\Weapons\LordofFlameMissile\LordofFlameMissile.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
Pyre Move
-
Actions
-
Unit - A unit Is attacked
-
-
Conditions
-
Events
-
Unit Group - Pick every unit in PyreUnits and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Attacked unit) Equal to (Load (Key unit) of (Key (Picked unit)) in Pyretable)
-
-
Then - Actions
-
Unit - Remove Pyre buff from (Load (Key unit) of (Key (Picked unit)) in Pyretable)
-
Hashtable - Save 0 as (Key orb angle) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save Handle Of(Attacking unit) as (Key target) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save Handle Of(Position of (Load (Key unit) of (Key (Picked unit)) in Pyretable)) as (Key fire location) of (Key (Picked unit)) in Pyretable
-
Trigger - Turn off (This trigger)
-
Trigger - Turn off Pyre Revolve <gen>
-
Trigger - Turn on Pyre Move Attack <gen>
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
Pyre Move Attack
-
Actions
-
Time - Every 0.10 seconds of game time
-
-
Conditions
-
Events
-
Unit Group - Pick every unit in PyreUnits and do (Actions)
-
Loop - Actions
-
Hashtable - Save (Distance between (Load (Key fire location) of (Key (Picked unit)) in Pyretable) and (Position of (Load (Key target) of (Key (Picked unit)) in Pyretable))) as (Key distance) of (Key (Picked unit)) in (Last created hashtable)
-
Hashtable - Save (Angle from (Load (Key fire location) of (Key (Picked unit)) in Pyretable) to (Position of (Load (Key target) of (Key (Picked unit)) in Pyretable))) as (Key angle) of (Key (Picked unit)) in (Last created hashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key distance) of (Key (Picked unit)) from Pyretable) Less than or equal to 10.00
-
-
Then - Actions
-
Hashtable - Save Handle OfNo unit as (Key target) of (Key (Picked unit)) in Pyretable
-
Hashtable - Save 0.00 as (Key angle) of (Key (Picked unit)) in (Last created hashtable)
-
Hashtable - Save 0.00 as (Key distance) of (Key (Picked unit)) in (Last created hashtable)
-
Special Effect - Create a special effect at (Load (Key fire location) of (Key (Picked unit)) in Pyretable) using war3mapImported\ExplosionBIG.mdx
-
Unit - Cause WizardActive to damage circular area after 0.00 seconds of radius 200.00 at (Load (Key fire location) of (Key (Picked unit)) in Pyretable), dealing (Real(((Level of Pyre for WizardActive) x 125))) damage of attack type Siege and damage type Fire
-
Special Effect - Destroy (Last created special effect)
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in Pyretable
-
Trigger - Turn on Pyre Move <gen>
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Hashtable - Save Handle Of((Load (Key fire location) of (Key (Picked unit)) in Pyretable) offset by 10.00 towards (Load (Key angle) of (Key (Picked unit)) from Pyretable) degrees) as (Key fire location) of (Key (Picked unit)) in Pyretable
-
Special Effect - Create a special effect at (Load (Key fire location) of (Key (Picked unit)) in Pyretable) using war3mapImported\flames&smoke.MDX
-
Unit - Cause WizardActive to damage circular area after 0.00 seconds of radius 50.00 at (Load (Key fire location) of (Key (Picked unit)) in Pyretable), dealing (Real(((Level of Pyre for WizardActive) x 25))) damage of attack type Spells and damage type Fire
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
-