• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Legion invasion

Status
Not open for further replies.
Level 18
Joined
Jan 12, 2011
Messages
1,513
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,240

  • 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 18
Joined
Jan 12, 2011
Messages
1,513

  • 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