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

Legion invasion

Status
Not open for further replies.
Level 19
Joined
Jan 12, 2011
Messages
1,523
i need help to make a trigger for some kind of legion invasion, i mean i wanna do an event that every XX seconds a fel hound or a doom guard or a infernal spawns in the walkable land (fel hound being 4 more times probable to spawn than the other 2)


note that i'm using jngp, and i'm using rock tile as unwalkable.

------------
it needs to have a limit of units so it doesn't create lag, and it must spawn near player bases (or inside them).
in the map players can pick where they make their base so..
 
Level 37
Joined
Mar 6, 2006
Messages
9,243

  • Untitled Trigger 002
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set point = (Random point in (Playable map area))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at point) Not equal to Lordaeron Summer - Dirt
          • (Terrain pathing at point of type Walkability is off) Equal to False
        • Then - Actions
          • Trigger - Run Untitled Trigger 001 <gen> (ignoring conditions)
        • Else - Actions
          • Custom script: call RemoveLocation(udg_point)
          • Trigger - Run (This trigger) (ignoring conditions)
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 4) Equal to 4
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Create 1 Archmage for Player 1 (Red) at point facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 Paladin for Player 1 (Red) at point facing Default building facing degrees
        • Else - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_point)
 
Level 19
Joined
Jan 12, 2011
Messages
1,523

  • Untitled Trigger 002
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set point = (Random point in (Playable map area))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at point) Not equal to Lordaeron Summer - Dirt
          • (Terrain pathing at point of type Walkability is off) Equal to False
        • Then - Actions
          • Trigger - Run Untitled Trigger 001 <gen> (ignoring conditions)
        • Else - Actions
          • Custom script: call RemoveLocation(udg_point)
          • Trigger - Run (This trigger) (ignoring conditions)
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 4) Equal to 4
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Create 1 Archmage for Player 1 (Red) at point facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 Paladin for Player 1 (Red) at point facing Default building facing degrees
        • Else - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_point)

nice but there's 2 stuff missing they got to spawn near a player base and they have to be a limit because i don't want them to make lag :S that's the hardest part u_u
 
Status
Not open for further replies.
Top