What Happened?

soulmaka

New Member
Reaction score
2
i have this trigger , it seems okay.. but the problem is the integer A will only work 1-2 times.. hmmm. :banghead::banghead:

help would be really appreciated :thup::thup:

Trigger:
  • Lightning Strike
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Lightning Strike
    • Actions
      • Set LS_C = (Triggering unit)
      • Set LS_CP = (Position of LS_C)
      • Set LS_T = (Target unit of ability being cast)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • For each (Integer B) from 1 to 12, do (Actions)
            • Loop - Actions
              • Set LS_PWO = (LS_CP offset by 100.00 towards (30.00 x (Real((Integer B)))) degrees)
              • Unit - Create 1 Dummy Lightning for (Owner of LS_C) at LS_PWO facing Default building facing degrees
              • Unit - Add Chain Lightning Stonger than ever forever to (Last created unit)
              • Unit - Set level of Chain Lightning Stonger than ever forever for (Last created unit) to (Level of Lightning Strike for (Triggering unit))
              • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Target unit of ability being cast)
              • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
              • Custom script: call RemoveLocation (udg_LS_PWO)
          • Wait 0.10 seconds
      • Custom script: call RemoveLocation (udg_LS_CP)
 

jig7c

Stop reading me...-statement
Reaction score
123
waits in loop actions don't always work the way you want to... try approaching the problem a different way, perpahs a timers in another trigger??
 

soulmaka

New Member
Reaction score
2
waits in loop actions don't always work the way you want to... try approaching the problem a different way, perpahs a timers in another trigger??


but the last time i did a trigger like this it worked,

and one more problem .. where should i position a dummy unit so that the caster really did the spell? i did it in polar with point offset.. -10 but still lookd a invisible unit did it.. :banghead:
 

_Phoenix_

New Member
Reaction score
4
Try this:
Lightning Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Lightning Strike
Actions
Set LS_C = (Triggering unit)
Set LS_CP = (Position of LS_C)
Set LS_T = (Target unit of ability being cast)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
For each (Integer B) from 1 to 12, do (Actions)
Loop - Actions
Set LS_PWO = (LS_CP offset by 100.00 towards (30.00 x (Real((Integer B)))) degrees)
Unit - Create 1 Dummy Lightning for (Owner of LS_C) at LS_PWO facing Default building facing degrees
Unit - Add Chain Lightning Stonger than ever forever to (Last created unit)
Unit - Set level of Chain Lightning Stonger than ever forever for (Last created unit) to (Level of Lightning Strike for (Triggering unit))
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning LS_T
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_LS_PWO)
Wait 0.10 seconds
Custom script: call RemoveLocation (udg_LS_CP)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top