Making a Decent Building You Can Enter
In this tutorial, I will attempt to teach you my favorite method of making an enterable building with an interior.
Section 1: The Outside
This is one of the simplest processes. Just open the Object Editor (F6
), go to the Doodads
tab and select Create Doodad
Select "torch" from the props list (or any other doodad that has the same pathing as mushrooms). Change the model file used to whatever you'd like. (I will use the barracks model for my example) Edit the default scale so the door is realistically sized compared to most units (I have mine set at 4.00). Then place your doodad on your map. Create pathing blockers around it so you can’t walk through walls (However, make it so you can still get rather close to the door).
Ignore the regions, those are meant for later.
Section 2: The Interior
(For the walls of the interior, I'm using Cliff0 by inhuman89, and for the floor, EpicRPGTileset, by67chrome, but you can always just use normal cliffs from perhaps Dalaran or Cityscape.)
Just make the walls of the building using the cliff tool, and then just add the tiles or any decor that you'd like to add. If you want to get fancy, you can make a ramp to look like a staircase and an upstairs floor.
Section 3: The Triggers
These are some more simple triggers I’ve made. Make regions in the front of door as you saw in the first screenshot. Do same with interior and the stairs. Feel free to name them whatever you like, I usually leave them with their default names, but in the following trigger examples I'll make the names self-explanatory.
^It should end up looking something like this.
Now for the triggering, open up the trigger editor and create a folder named "Doors", or whatever you like. Make another trigger and name it "Enters Keep" or something along those lines. Make a location variable named KeepLocation
as well, to handle all the locations. Make it look something similar to this:
Do the same for the exiting the building and going up the stairs. For example:
You can view the example map for more examples, such as going up or down stairs. However, the example map leaks, so make sure you use the above triggers as references to keep the map free of leaks.