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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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