• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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