Re-Populate Dungeon

Darkenneko

TH.net Regular
Reaction score
3
Hey Everyone,
Don't know if this will be hard or not But here it goes.
Okay, so the Heroes go through the dungeon and slay the Last boss, I want,
The Heroes to all be teleported To Separate Loot areas. Than, Items Spawned for them in there Loot areas.
Than, after that, I Want the Entire Dungeon Respawend in the same position.
The enemies are Not Neutral Hostile. They would be a Computer Player.

Thank You For Reading. =]
-Calvin
 

Varine

And as the moon rises, we shall prepare for war
Reaction score
808
Okay, this is what I have for your thing so please correct me:
1) Players kill boss
2)Players are teleported to a rewarding area where treasure spawns
3)Respawn into the dungeon with neutral 'enemies'

What I could do is use triggers and rects (or regions).
To make them spawn out, make a trigger with an event for when the boss dies, action it teleports the players to rect X.
For the items, you can make items spawn when the boss dies via rects as well, just use an action of Create X item in rect X.
The enemies, make them into rects as well. Make a trigger for Game Intialization (or when the players enter the dungeon if you prefer) and have the monsters spawn in the various rects that you set up. When the players are transported back, just do the same thing only give the spawning units to a different slot.
 

Darkenneko

TH.net Regular
Reaction score
3
Okay, this is what I have for your thing so please correct me:
1) Players kill boss
2)Players are teleported to a rewarding area where treasure spawns
3)Respawn into the dungeon with neutral 'enemies'

What I could do is use triggers and rects (or regions).
To make them spawn out, make a trigger with an event for when the boss dies, action it teleports the players to rect X.
For the items, you can make items spawn when the boss dies via rects as well, just use an action of Create X item in rect X.
The enemies, make them into rects as well. Make a trigger for Game Intialization (or when the players enter the dungeon if you prefer) and have the monsters spawn in the various rects that you set up. When the players are transported back, just do the same thing only give the spawning units to a different slot.


You Got 1 and 2 Right.
But! As Soon as the Boss Dies, Right when he dies, All Heroes are Teleported
into the loot area. Than, it kills everything left Inside the Dungeon, And Respawns them in the Exact same areas they started in Also, the Enemies arn't Neutral hostile, There Computer player, 10 I Think. So Here.
The Dungeon Enemies are already in the Dungeon.
1.Heroes enter the Dungeon.
2.Heroes get to the boss avoiding some enemies.
3.They kill the Boss and are Teleported to there separate loot areas.
4.Everything in the dungeon is Killed, that isn't already dead.
5.All the Dungeon enemies are respawned where they were the First Time.
6.Heroes enter the Dungeon and it looks the same.
=D
Thank You For reading Tho. =]
Any other Questions Please Ask!
 

KvickaN

TH.net Regular
Reaction score
24
Here's what i replied. IF anyone more could help it would be great as I don't think i explain too good.

Originally Posted by Darkenneko
Hey,
I Don't know if you remember me, Probably not. >w<"
But, I Could once Again use your help.
I Tried created a thread, but no One seemed to Respond. <w<

Well, here I Go, I'll try to explain the Problem.
Okay.
So The Heroes enter a Dungeon, Don't kill everything inside, Just what they need Too.
Get to the Last Boss and Kill him.

I'm Wondering if you can maybe, Help me?
Each player has there own Little Loot Location.
I'd like it so After The Last Boss is Killed, every player in the dungeon [Location] is transported to there corresponding loot area.
Than. I'd like Every unit in the Dungeon Killed.
Everything.
After that, I'd like every unit Respawned into the dungeon. Brand New.
And this would happen Everytime The heroes Kill the dungeons last Boss. If You Could Think Of Something It would help a lot. =]
Thank You For Reading. ^^
-Calvin

I'll try...

Make it so that the boss is in a square "Region" within boundary.

Code:
Dungeon
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If ((Unit-type of (Dying unit)) Equal to Boss) then do (For each (Integer A) from 1 to "How many players there is on map", do (Unit - Move Players[(Integer A)] instantly to LootRegions[(Integer A)])) else do (Put what you want here)

I think you can figure the rest out... It's simple. If you need anymore help make a topic and i tihnk ppl will respond.

"Players" "LootRegions" are variables... Read tutuorial about variables if you havent already, maybe you know.
 

cowmenace

New Member
Reaction score
22
do whatever the first reply said, but add

pick all units matching condition unit is hero equal to false
remove picked unit

then after all of it is done:

wait 30 seconds
pick every unit matching condition unit is a hero equal to true
move picked unit (instantly) to center of Region 001

region 001 is a region at the beginning of the dungeon

hope you know where to find those triggers or code em in jass, I don't have a lot of time so i just wrote em out quick
 

Darkenneko

TH.net Regular
Reaction score
3
do whatever the first reply said, but add

pick all units matching condition unit is hero equal to false
remove picked unit

then after all of it is done:

wait 30 seconds
pick every unit matching condition unit is a hero equal to true
move picked unit (instantly) to center of Region 001

region 001 is a region at the beginning of the dungeon

hope you know where to find those triggers or code em in jass, I don't have a lot of time so i just wrote em out quick

Thanks For The Reply. =]
But There Supposta Teleported to Designated Loot areas. [Separate from each, other, No Ninja Loot. ^^"]
Also, everyone has seem to forgotten, The Respawning of all the Dungeon Monsters. >w<"
Thanks Everyone for all the help. =]
 

OneBadPsycho

10100111001
Reaction score
93
For the respawning of all dungeon units, you could store their position and unit type in some variables and then (when boss is dead) remove the rest and create new "old" units at same locations.
 
L

LoOpedd)GeR_

Guest
onebadpsycho true, but if you have later 6 dungeon all local variables would lag the game a lot
 

Darkenneko

TH.net Regular
Reaction score
3
Not if u use global? :p

o_O
Now You all are using big words. Dx!
>_<" I'm not the best at triggers but I Tend to figure them Out? xD
Eh, If you Could give me an Example of what You mean, even Free handed.
I Could probably figure out The rest, and Globals? >w<"?
 

FroznYoghurt

New Member
Reaction score
37
for the unit respawns id use;

Code:
ini
Pickall units in Dungeon Region and do
add unit to DungeonUnits
Code:
Trigger 1
unit dies
unit is in DungeonUnits
wait for c bossisdead equal to true
set temppoint position of triggering
create 1 unitof unittype of triggering at temppoint
destroy temppoint
Code:
Trigger 2
unit dies
unit equal to boss
set bossisdead equal to true

Code:
Trigger 3 
a unit enters dungeon region
unit is not owned by [dungeon units player]
set bossisdead equal to false
 

Darkenneko

TH.net Regular
Reaction score
3
for the unit respawns id use;

Code:
ini
Pickall units in Dungeon Region and do
add unit to DungeonUnits
Code:
Trigger 1
unit dies
unit is in DungeonUnits
wait for c bossisdead equal to true
set temppoint position of triggering
create 1 unitof unittype of triggering at temppoint
destroy temppoint
Code:
Trigger 2
unit dies
unit equal to boss
set bossisdead equal to true

Code:
Trigger 3 
a unit enters dungeon region
unit is not owned by [dungeon units player]
set bossisdead equal to false

It Helps,
But its kinda hard to read with the way you Put it all. >w<"
Thank You Tho, even tho I Couldn't get it working, You tried? =D
Mabye if someone could dumb it down. >w<"
 

cowmenace

New Member
Reaction score
22
Make a unit variable with an array of 12 called playerhero, a region called dungeon entrance. all heroes must enter this region! Then make regions in the treasurezones called 1treasurezone, 2treasurezone, 3treasurezone, 4treasurezone, 5treasurezone, etc. etc. etc. Then make these triggers

Code:
event-
     a unit enters Dungeon Entrance
conditions-
     entering unit is a hero equal to true
actions-
     set playerhero[player number of entering unit] equal to entering unit

That will store the heroes in variables to access for the teleportation of the units to their treasure area
This trigger will teleport the units to their treasure area

Code:
event-
     a unit dies
condition-
     unit dieing equal to boss
actions-
     Move playerhero[1] to 1treasurezone
     Move playerhero[2] to 2treasurezone
     Move playerhero[3] to 3trasurezone
     Move playerhero[4] to 4treasurezone
     Move playerhero[5] to 5treasurezone
  etc. etc. etc. for all players on map

To respawn the treasure and teleport heroes to the beginning, do something simple like this

Code:
event-
     a unit dies
conditions-
     dieing unit equal to boss
actions-
     wait 30 seconds
     pick all units matching condition matching unit is a hero equal to true and do actions
          actions-
               move picked unit instantly to center of Dungeon Entrance
the respawning of the treasure goes after all that
to respawn the units, use the create units trigger and spawn them at regions where the units were in the beginning

i think that covers everything you wanted
 

Darkenneko

TH.net Regular
Reaction score
3
Make a unit variable with an array of 12 called playerhero, a region called dungeon entrance. all heroes must enter this region! Then make regions in the treasurezones called 1treasurezone, 2treasurezone, 3treasurezone, 4treasurezone, 5treasurezone, etc. etc. etc. Then make these triggers

Code:
event-
     a unit enters Dungeon Entrance
conditions-
     entering unit is a hero equal to true
actions-
     set playerhero[player number of entering unit] equal to entering unit

That will store the heroes in variables to access for the teleportation of the units to their treasure area
This trigger will teleport the units to their treasure area

Code:
event-
     a unit dies
condition-
     unit dieing equal to boss
actions-
     Move playerhero[1] to 1treasurezone
     Move playerhero[2] to 2treasurezone
     Move playerhero[3] to 3trasurezone
     Move playerhero[4] to 4treasurezone
     Move playerhero[5] to 5treasurezone
  etc. etc. etc. for all players on map

To respawn the treasure and teleport heroes to the beginning, do something simple like this

Code:
event-
     a unit dies
conditions-
     dieing unit equal to boss
actions-
     wait 30 seconds
     pick all units matching condition matching unit is a hero equal to true and do actions
          actions-
               move picked unit instantly to center of Dungeon Entrance
the respawning of the treasure goes after all that
to respawn the units, use the create units trigger and spawn them at regions where the units were in the beginning

i think that covers everything you wanted

Ah... =]
Thanks a Bunchs. ^^
I'll be Posting a New Thread Soon,
"How To Leave The Loot Area" xDDD
Thank You!
-Calvin
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top