• 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] spawn leeks i think

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
the units come and they come and atk but when i get to spawn 3 some spawned units come and atk.. the others just stand there (about 2-4) just stand there


look at the triggers down the bottem!!!!!!!!!!!!

heres my triggers
Code:
spawn1
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Unit - Create 3 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        Unit - Create 2 mini demon Voidwalker for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit Group - Order (Units owned by Player 12 (Brown)) to Attack-Move To (Player 7 (Green) start location)



Code:
spawn2
    Events
        Time - Elapsed game time is 40.00 seconds
    Conditions
    Actions
        Unit - Create 5 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        Unit - Create 4 mini demon Voidwalker for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit Group - Order (Units in (Playable map area) owned by Player 12 (Brown)) to Attack-Move To (Player 7 (Green) start location))



this is where it starts leaking vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Code:
spawn3
    Events
        Time - Elapsed game time is 90.00 seconds
    Conditions
    Actions
        Unit - Create 8 mini demon Voidwalker for Player 11 (Dark Green) at (Center of Region 000 <gen>) facing Default building facing degrees
        Unit - Create 8 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
               Wait 3.00 seconds
               Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Unit Group - Order (Units in (Playable map area) owned by Player 12 (Brown)) to Attack-Move To (Player 7 (Green) start location))
 
Last edited:
Level 14
Joined
Jan 15, 2007
Messages
349
well you got many leaks try this:
  • spawn1
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 3 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Unit - Create 2 mini demon Voidwalker for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 2.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Order (Units owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)

  • spawn2
    • Events
      • Time - Elapsed game time is 40.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 5 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Unit - Create 4 mini demon Voidwalker for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 2.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
  • spawn3
    • Events
      • Time - Elapsed game time is 90.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 8 mini demon Voidwalker for Player 11 (Dark Green) at Temp_Point facing Default building facing degrees
      • Unit - Create 8 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 3.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
Now the triggers are leakless. But I guess with leak you mean the lag when the unit begin to spawn. This problem is easy to solve. Just create at the start of the map all types of units you use and remove them instantly then there will be later no lag.
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
when i did this i nw got erra and first spawndoesent work at all any more
Code:
spawn1
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Set temp_point = (Center of Region 000 <gen>)
        Unit - Create 3 demon Fel Beast for Player 12 (Brown) at temp_point facing Default building facing degrees
        Unit - Create 2 mini demon Voidwalker for Player 12 (Brown) at temp_point facing Default building facing degrees
        Custom script:   call removelocation(udg_temp_point
        Wait 2.00 seconds
        Set temp_point = (Player 7 (Green) start location)
        Custom script:   set bj_wantdestroygroup=true
        Unit Group - Order (Units owned by Player 12 (Brown)) to Attack-Move To temp_point
        Custom script:   call removelocation(udg_temp_point)
 
Level 14
Joined
Jan 15, 2007
Messages
349
Well you did two things wrong...

it's:
  • Custom script: set bj_wantDestroyGroup=true
and not...
  • Custom script: set bj_wantdestroygroup=true
and...

it's:
  • Custom script: call RemoveLocation(udg_temp_point)
and not...
  • Custom script: call removelocation(udg_temp_point
Hope this helped!
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
still dont work with this ..... p.s how do u make the pic

  • spawn1
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 3 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Unit - Create 2 mini demon Voidwalker for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocaton(udg_Temp_Point)
      • Wait 2.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_WantDestroyGroup=true
      • Unit Group - Order (Units owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
 
Last edited by a moderator:
Level 15
Joined
Jul 9, 2008
Messages
1,552
my triggers a r now this
  • spawn1
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Unit - Create 5 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Unit - Create 5 mini demon Voidwalker for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Set TempGroup = (Units owned by Player 12 (Brown))
      • Wait 2.00 seconds
      • Unit Group - Order TempGroup to Attack-Move To (Player 7 (Green) start location)
      • Custom script: call DestroyGroup(udg_TempGroup)

  • spawn2
    • Events
      • Time - Elapsed game time is 40.00 seconds
    • Conditions
    • Actions
      • Unit - Create 6 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Unit - Create 6 mini demon Voidwalker for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Set TempGroup = (Units owned by Player 12 (Brown))
      • Wait 2.00 seconds
      • Unit Group - Order TempGroup to Attack-Move To (Player 7 (Green) start location)
      • Custom script: call DestroyGroup(udg_TempGroup)
  • spawn3
    • Events
      • Time - Elapsed game time is 90.00 seconds
    • Conditions
    • Actions
      • Unit - Create 8 mini demon Voidwalker for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Unit - Create 8 demon Fel Beast for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Set TempGroup = (Units owned by Player 12 (Brown))
      • Wait 2.00 seconds
      • Unit Group - Order TempGroup to Attack-Move To (Player 7 (Green) start location)
      • Custom script: call DestroyGroup(udg_TempGroup)

and it still isent workng the spawns on lvl 2 leavs 6 standing ther and and lvl 3 all stay there
 
Last edited:
Level 14
Joined
Jan 15, 2007
Messages
349
Just for remembering... when the trigger are like that it should work like before when all worked correctly...

  • spawn1
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 3 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Unit - Create 2 mini demon Voidwalker for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 2.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Order (Units owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)

  • spawn2
    • Events
      • Time - Elapsed game time is 40.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 5 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Unit - Create 4 mini demon Voidwalker for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 2.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit Group - Order (Units in (Playable map area) owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
  • spawn3
    • Events
      • Time - Elapsed game time is 90.00 seconds
    • Conditions
    • Actions
      • Set Temp_Point = (Center of Region 000 <gen>)
      • Unit - Create 8 mini demon Voidwalker for Player 11 (Dark Green) at Temp_Point facing Default building facing degrees
      • Unit - Create 8 demon Fel Beast for Player 12 (Brown) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Wait 3.00 seconds
      • Set Temp_Point = (Player 7 (Green) start location)
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit Group - Order (Units in (Playable map area) owned by Player 12 (Brown)) to Attack-Move To Temp_Point
      • Custom script: call RemoveLocation(udg_Temp_Point)
I never wrote that what you have posted.

Edit: Now the group commands and conditions are the same like in your first post just without leaks.
 
Status
Not open for further replies.
Top