• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I cannot run actions (map file inside)

Status
Not open for further replies.
Level 18
Joined
Jun 2, 2009
Messages
1,233
Hero creates spikes at targeted area. Units trying to get in or out stuns for x seconds.
When units contacts with spikes (check the attachment) i want to run actions for any unit who contacted.

How can i make it work properly? It is 1.26 version.

  • Dryad E Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thorns // Dryad
    • Actions
      • Set TempPointDryadE = (Target point of ability being cast)
      • Set Dryad_E_Caster = (Casting unit)
      • Set DryadE_Prison = 0.00
      • Set DENEME = ((Target point of ability being cast) offset by 115.00 towards 0.00 degrees)
      • Set DENEME2 = ((Target point of ability being cast) offset by 185.00 towards 0.00 degrees)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at (TempPointDryadE offset by 250.00 towards DryadE_Prison degrees) using Abilities\Spells\Orc\SpikeBarrier\SpikeBarrier.mdl
          • Unit - Create 1 DUMMY [JFA] for (Owner of Hero_Veigar) at (TempPointDryadE offset by 250.00 towards DryadE_Prison degrees) facing Default building facing degrees
          • Unit - Set level of Fireball // master for (Last created unit) to 21
          • Unit - Set level of Slow // master for (Last created unit) to 18
          • Set DryadEffect = (DryadEffect + 1)
          • Set Dryad_Dummy_E[DryadEffect] = (Last created unit)
          • Set DryadEffect2[DryadEffect] = (Last created special effect)
          • Set DryadE_Prison = (DryadE_Prison + 30.00)
      • Wait 1.00 seconds
      • Trigger - Turn on Dryad E Stun <gen>
      • Wait 4.00 seconds
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Special Effect - Destroy DryadEffect2[(Integer A)]
          • Unit - Kill Dryad_Dummy_E[(Integer A)]
          • Unit - Remove Dryad_Dummy_E[(Integer A)] from the game
      • Set DryadEffect = 0
      • Custom script: call RemoveLocation(udg_TempPointDryadE)
      • Trigger - Turn off Dryad E Stun <gen>
  • Dryad E Stun
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set DyradEIntegerA = (Integer A)
      • Set DyradEIntegerAValue = 1
      • For each (Integer DyradEIntegerAValue) from DyradEIntegerAValue to 1, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units of type DUMMY [JFA]) and do (Actions)
            • Loop - Actions
              • For each (Integer B) from 1 to 1, do (Actions)
                • Loop - Actions
                  • Unit Group - Pick every unit in (Units within 75.00 of ((Position of (Picked unit)) offset by 0.00 towards 0.00 degrees)) and do (Actions)
                    • Loop - Actions
                      • Game - Display to (All players) for 1.00 seconds the text: (Name of (Picked unit))
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) has buff Thorns dryad) Equal to False
                          • ((Picked unit) is A structure) Equal to False
                          • ((Picked unit) is Mechanical) Equal to False
                          • ((Picked unit) is alive) Equal to True
                          • ((Picked unit) belongs to an enemy of (Owner of Dryad_E_Caster)) Equal to True
                        • Then - Actions
                          • Unit - Order Dryad_Dummy_E[DryadEffect] to Human Sorceress - Slow (Picked unit)
                          • Unit - Order Dryad_Dummy_E[DryadEffect] to Neutral - Firebolt (Picked unit)
                        • Else - Actions
 

Attachments

  • ThornsAbility.w3x
    18.8 KB · Views: 2
I suspect the pick dummy action does not work since the dummy has locust, thus does not get enumerated by Pick Every Unit. Try create a group for the dummy and add the dummy unit to the group when they are created.

Also full explanation of the ability might provide better alternatives.
 
Level 18
Joined
Jun 2, 2009
Messages
1,233
I suspect the pick dummy action does not work since the dummy has locust, thus does not get enumerated by Pick Every Unit. Try create a group for the dummy and add the dummy unit to the group when they are created.

Also full explanation of the ability might provide better alternatives.
Actually i was explained and already shared map file too because i assume people prefer download and check it themselves.
Try to imagine 500 range circle and units try to enter or leave the area, gets stunned)
 
Level 18
Joined
Jun 2, 2009
Messages
1,233
@Daffa I am using this dummy for 75% of my spells (minimum 80 triggered spells) this is why i don't think it is dummy based. By the way spell works differently in empty map and in my map.
In my map it works randomly and not proper
In this map i have shared, not works.
 
Status
Not open for further replies.
Top