• 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.

Trigger works wrong!

Status
Not open for further replies.
Level 5
Joined
May 27, 2007
Messages
144
i made a spell schokwave like. it has 3 lines and 3 raws. the problem is that the spell cast only first line with 3 raws and then it stops. Pls help me
  • Events
    • unit - A unit Starts the effect of an abillity
  • Conditions
    • (Ability being cast) equal to The Flow of Time
  • Actions
    • Set Triggeringunit[1] = (Triggerin unit)
    • Wait 0.10 game-time seconds
    • Set Wave_Points[((PLayer number of (Owner of Triggering[1]))] = (Position of TriggeringUnit [1]
    • Set Wave_Angls[((Plyer number of (Owner of TriggeringUnit[1]))] = (Facing of TriggeringUnit[1])
    • For each (Integer A) from 1 to 7, do (Actions)
      • Loop - Actions
        • Special Effect - Destroy Effect1[((Player number of (Owner of TriggeringUnit[1]))
        • Special Effect - Destroy Effect2[((Player number of (Owner of TriggeringUnit[1])
        • Special Effect - Destroy Effect3[((Player number of (Owner of TriggeringUnit[1]))
        • Set Wave_Points[(Player number of (Owner of TriggeringUnit[1]))] = (Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] offset by 150.00 towards Wave_Angls[((Player number of(Owner of TriggeringUnit[1]))] degrees)
        • Special Effect - Create a special effect at Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] using Abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
        • Set Effect1[((PLayer number of TrggeringUnit[1]))] = (Last created special effect)
        • Special Effect - Create a special effect at (Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] offset by 100.00 towards (Wave_Angls[((Player number of (Owner of TriggeringUnit[1]))] + 90.00) degress) using Abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
        • Set Effect2[((Player number of (Owner of TriggeringUnit[1]))] = (Last created special effecft)
        • Special Effect - CReate a special effect at (Wave_Points[((PLayer nuzmber of (Owner of TRiggeringUnit[1]))] offset by 100.00 towards (Wave_Angls[((Player number of (Owner of TriggeringUnit[1]))] + 270.00) degrees) using abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
        • Set Effect3[((Plyer number of (Owner of riggeringUnit[1]))] = (Last crerated special effect)
        • Custom script: set bj_wantDestroyGroup = true
        • Unit Group - Pick every unit in (Units within 250.00 of Wave_Points[((Player number of (Owner of TriggeringUnit[1] matching (((Matching unit) belongsm to an enemy of (Owner of TriggeringUnit[1] equal to True)) and do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If- Conditions
                • ((Picked unit) has buff Time Flow ) Equal to True
              • Then - Actions
                • Do nothing
              • Else - Actions
                • If (((Picked unit) is dead) equal to True) then do (Skip remaining actions) else do (Do nothing)
              • If (((Picked unit) is Mechanical) equal to True) then do (Skip remaining actions) else do (Do nothing)
            • Unit - Create 1 Wave Caster for (Owner of (TriggeringUnit[1]) at Wave_Points[((Player number of (Owner of TriggeringUnit[1])))] facing Default building facing (270.0) degrees
            • Set LastCreatedUnit[1] = (Last created unit)
            • Unit - Add a 2.00 seconds Generic expiration timer to LastCreatedUnit[1]
            • Unit - Add Time Flow Effect to LastCreatedUnit[1]
            • Unit - Order LastCreatedUnit[1] to Orc Shadow Hunter - Hex (Picked unit)
            • Unit - Create 1 Wave Caster for (Owner of TriggeringUnit[1]) at Wave_Points[((Player number of (Owner of TriggeringUnit[1])))] facing Default buzilding facin (270.0) degrees
            • Set LastCreatedUnit[1] 0 (Last created unit)
            • Unit - Add a 2.00 second Generic expiration timer to LastCreatedUnit[1]
            • If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 1) then do (Unit - Add Flow of Time Damage (Level 1) to LastCreatedsUnit[1]) else do (Do nothing)
            • If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 2) then do (Unit - Add Flow of Time Damage (Level 2) to LastCreatedsUnit[1]) else do (Do nothing)
            • If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 3) then do (Unit - Add Flow of Time Damage (Level 3) to LastCreatedsUnit[1]) else do (Do nothing)
            • If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 4) then do (Unit - Add Flow of Time Damage (Level 4) to LastCreatedsUnit[1]) else do (Do nothing)
            • Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
        • Wait 0.40 game-time seconds
    • Custom script: call RemoveLocation(udg_Wave_Points[GetConvertedPlayerId(GetOwningPlyer(Get TriggerUnit()))])
    • Wait 0.40 game-time seconds
    • Special Effect - Destroy Effect1[((Player number of (Owner of TriggeringUnit[1]))]
    • Special Effect - Destroy Effect2[((Player number of (Owner of TriggeringUnit[1]))]
    • Special Effect - Destroy Effect3[((Player number of (Owner of TriggeringUnit[1]))]
Atlast finished :grin:
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
There are some things I don't understand, how can you destroy an effect when you didn't event create it? Heh you destroyed the group, but watch out for those location leaks in the beginning. I don't know what do you mean by "it has 3 lines and 3 rows", Where's that? What rows?
 
Level 3
Joined
May 28, 2007
Messages
57
I also don't know what rows and lines you are talking about and like Silvenon said you destroying the effects than creating them and at the end detroying them you don't need the first detroy effects action, and like Silvenon said it leaks null your location when you finished with it because it will start to lag.
 
Level 5
Joined
May 27, 2007
Messages
144
i show u what i mean with 3 lines and 3 rows (using smilies)

:grin: :)grin:) :)grin:) = line1
:grin: :)grin:) :)grin:) = line2
:grin: :)grin:) :)grin:) = line3

row1 row2 row3

well the trigger makes only row1 using all 3 lines. he dont row 2 and row 3 (smilies in brackets)
i hope now u can understand what i mean and help me.
 
Last edited:
Status
Not open for further replies.
Top