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

Triggers start at random times?

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
From what I understood:
1. Random time-interval
2. Random boss-spawn

Is it ?

  • Random Spawn
    • Events
      • Time - Every (Real((Random integer number between 5 and 10))) seconds of game time
    • Conditions
    • Actions
      • Set RandomSpawnPoint = (Random point in (Playable map area))
      • Unit - Create 1 Boss for Neutral Hostile at RandomSpawnPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_RandomSpawnPoint)
Trigger above will spawn Boss once every random 5 to 10 seconds (5, 6, 7,...10) at random points in the map.
 
Level 6
Joined
Sep 27, 2008
Messages
258
yea but then you know that it will be between 5 and 10 seconds so that isn't that random

so if there is a way to do it you could make it were has a %chance for it to spawn with in this

  • Random Spawn
    • Events
      • Time - Every (Real((Random integer number between 5 and 10))) seconds of game time
    • Conditions
    • Actions
      • Set RandomSpawnPoint = (Random point in (Playable map area))
      • Unit - Create 1 Boss for Neutral Hostile at RandomSpawnPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_RandomSpawnPoint)
like a 10% chance to trigger a boss to spawn
  • Events
    • Time - Every (Real((Random integer number between 5 and 10))) seconds of game time
 
Level 6
Joined
Sep 27, 2008
Messages
258
then all it should look like this

  • Random Spawn
    • Events
      • Time - Every (Real((Random integer number between 5 and 10))) seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Boss for Neutral Hostile at Boss Area facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_RandomSpawnPoint)
unless it still needs the variable which then it would look like this

  • Random Spawn
    • Events
      • Time - Every (Real((Random integer number between 5 and 10))) seconds of game time
    • Conditions
    • Actions
      • Set BossSpawnPoint = (Center of (BossAreaOne))
      • Unit - Create 1 Boss for Neutral Hostile at BossSpawnPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_BossSpawnPoint)
 
Status
Not open for further replies.
Top