• 🏆 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!

Dungeon System

Status
Not open for further replies.
Level 10
Joined
Apr 13, 2005
Messages
630
Well I'm making an orpg. Its a basic dungeon nothing really special. Only problem is I'm a noob at this system and cant figure out how to work this. its my own triggering so it maybe messy. My problem bug is that the unit will enter and die in dungeon but spawning creeps is the problem. Its more of trigger one i believe.

  • Wolf dungeon spawn
    • Events
      • Unit - A unit enters Dungeon Enterence 1 <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Entering unit) is A Hero) Equal to True
          • (Number of units in (Units in Creepdungeonremoval <gen>)) Equal to 0
    • Actions
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Boss <gen>) facing 90.00 degrees
      • Set Dungeon1creep[1] = (Last created unit)
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Boss <gen>) facing 90.00 degrees
      • Set Dungeon1creep[2] = (Last created unit)
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Boss <gen>) facing 90.00 degrees
      • Set Dungeon1creep[3] = (Last created unit)
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Boss <gen>) facing 90.00 degrees
      • Set Dungeon1creep[4] = (Last created unit)
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Boss <gen>) facing 90.00 degrees
      • Set Dungeon1creep[5] = (Last created unit)
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 063 <gen>) facing 90.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 063 <gen>) facing 90.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 064 <gen>) facing 90.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 064 <gen>) facing 90.00 degrees
      • Unit - Create 1 Pack Leader for Neutral Passive at (Center of Region 065 <gen>) facing 90.00 degrees
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Center of Region 066 <gen>) facing 270.00 degrees
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Center of Region 067 <gen>) facing 270.00 degrees
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Center of Region 068 <gen>) facing 270.00 degrees
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Baby wolf for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Pack Leader for Neutral Passive at (Random point in Region 069 <gen>) facing 120.00 degrees
      • Unit - Create 1 Pack Leader for Neutral Passive at (Random point in Region 070 <gen>) facing 90.00 degrees
      • Unit - Create 1 Pack Leader for Neutral Passive at (Random point in Region 070 <gen>) facing 90.00 degrees
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Random point in Region 071 <gen>) facing 270.00 degrees
      • Set Dungeon1creep[6] = (Last created unit)
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Random point in Region 071 <gen>) facing 270.00 degrees
      • Set Dungeon1creep[7] = (Last created unit)
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Random point in Region 071 <gen>) facing 270.00 degrees
      • Set Dungeon1creep[8] = (Last created unit)
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Ghost Wolf for Neutral Passive at (Random point in Region 071 <gen>) facing 270.00 degrees
      • Set Dungeon1creep[9] = (Last created unit)
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Unit - Create 1 Alpha Leader for Neutral Passive at (Center of Region 073 <gen>) facing 270.00 degrees
      • Set Dungeon1creep[10] = (Last created unit)
      • Trigger - Turn off (This trigger)
  • Unit who enter
    • Events
      • Unit - A unit enters Dungeon Enterence 1 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (Player group((Owner of (Entering unit)))) the text: You have entered "T...
      • Unit - Move (Entering unit) instantly to (Random point in Dungeon one <gen>), facing 270.00 degrees
      • Unit Group - Add (Entering unit) to Dungeongroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in Creepdungeonremoval <gen>)) Equal to 0
        • Then - Actions
          • Trigger - Turn on Wolf dungeon spawn <gen>
        • Else - Actions
          • Do nothing
  • Unit Dies
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Dungeon1creep[1] is dead) Equal to True
              • (Dungeon1creep[2] is dead) Equal to True
              • (Dungeon1creep[3] is dead) Equal to True
              • (Dungeon1creep[4] is dead) Equal to True
              • (Dungeon1creep[5] is dead) Equal to True
        • Then - Actions
          • Destructible - Pick every destructible in Kill Trees1 <gen> and do (Destructible - Kill (Picked destructible))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Dungeon1creep[6] is dead) Equal to True
              • (Dungeon1creep[7] is dead) Equal to True
              • (Dungeon1creep[8] is dead) Equal to True
              • (Dungeon1creep[9] is dead) Equal to True
        • Then - Actions
          • Destructible - Pick every destructible in Kill Trees2 <gen> and do (Destructible - Kill (Picked destructible))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Unit Group - Remove (Dying unit) from Dungeongroup
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in Dungeongroup) Equal to 0
            • Then - Actions
              • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Neutral Hostile) and do (Actions)
                • Loop - Actions
                  • Unit - Remove (Picked unit) from the game
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Dungeon1creep[10]
        • Then - Actions
          • Game - Display to (All players) the text: Good job you have d...
          • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Player 1 (Red)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of hero revive <gen>)
          • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Player 2 (Blue)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of hero revive <gen>)
          • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Player 3 (Teal)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of hero revive <gen>)
          • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Player 4 (Purple)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of hero revive <gen>)
          • Unit Group - Pick every unit in (Units in Creepdungeonremoval <gen> owned by Player 5 (Yellow)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of hero revive <gen>)
        • Else - Actions
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
You should say Run SpawnCreepThing, cause the unit ALREADY entered, so it isnt gonna happen anymore,,(in HeroEnterDungeon)

And why first pick every unit CreepDungeonRemoval owned by P1
Then P2, P3, P4 and P5
and then AGAIN ALL? xD
That is quite useless,,

Also, you Leak Locations in the creepspawn trigger,,
And it could be done much easier,,
  • For each Integer A from 1 to 5
    • Set TempLoc = Random point in (Boss <gen>)
    • Create 1 wolf for neutral HOSTILE at TempLoc
    • Set Creep1[Integer A] = Last created unit
  • Custom script: call RemoveLocation(udg_TempLoc)
You need neutral Hostile, not Passive (if you want to fight them at least)
 
Level 10
Joined
Apr 13, 2005
Messages
630
You should say Run SpawnCreepThing, cause the unit ALREADY entered, so it isnt gonna happen anymore,,(in HeroEnterDungeon)

And why first pick every unit CreepDungeonRemoval owned by P1
Then P2, P3, P4 and P5
and then AGAIN ALL? xD
That is quite useless,,

Also, you Leak Locations in the creepspawn trigger,,
And it could be done much easier,,
  • For each Integer A from 1 to 5
    • Set TempLoc = Random point in (Boss <gen>)
    • Create 1 wolf for neutral HOSTILE at TempLoc
    • Set Creep1[Integer A] = Last created unit
  • Custom script: call RemoveLocation(udg_TempLoc)
You need neutral Hostile, not Passive (if you want to fight them at least)



about the leaks i was gettin to the later no worrys. i fix it already thanks anyway. I did take your run suggestion and it works. i use the pick every unit in there its for the loot when boss is died. ill make it simpler in the future it was just to get it done in like mins so i could work on more important stuff before this turned into a hassal.
 
Last edited:
Status
Not open for further replies.
Top