Awfull lag problem..

Status
Not open for further replies.
Level 28
Joined
Sep 24, 2006
Messages
4,986
Okay, i want a wave of zombies to come but they must all spawn on different regions and i dont know how the trigger paste blabla works i try to explain it.. (omg -.-)

Okay i have kind of 2 triggers and they both run every 0.00 seconds of game time .. Appereantly its not possible to make it wait 'Variable' seconds of gametime because i tried it and i couldnt click it .. so .. i tried to make it run every 0.00 seconds of gametime and then just make it wait 'Variabletime' seconds of game time with an action .. but obviously it still lags like hell when you do that.. and i dont get that.. wtf do i do?
 
An easy way to do what you want is to make a trigger that spawns your zombies have no event. Use a seperate trigger to Trigger Execute - "Your Trigger" (most likely in your map initilization trigger)

Have your spawn zombies trigger fire, then at the bottom do this:
Wait - 'Real Variable' or Wait (GetRandomReal(x,y)) then Trigger Execute - "your spawn zombie trigger"
 
Upon vexens reply, you could also do a count loop

  • SkeletonWave
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 100, do (Actions)
        • Loop - Actions
          • Trigger - Run SkeletonWaveSpawn <gen> (ignoring conditions)
          • Wait - 20.00 seconds
  • SkeletonWaveSpawn
    • Events
    • Conditions
    • Actions
      • Unit - Create 1 Zombie for Neutral Hostile at (Center of ZOMBIE 001 <gen>) facing (Random angle) degrees
      • Unit - Order (Last created unit) to Attack-Move To (Center of ZOMBIE MOVE <gen>)
such so like that. an example
 
Status
Not open for further replies.
Back
Top