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

Awfull lag problem..

Status
Not open for further replies.
Level 28
Joined
Sep 24, 2006
Messages
4,981
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?
 
Level 11
Joined
Jun 13, 2007
Messages
570
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"
 
Level 7
Joined
Feb 19, 2005
Messages
136
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.
Top