Base/Town/City Building in game.

Hi.

I'm tying to add an element of Base / Town building into my game. What I'm trying to do:

  • Have certain blocks of land available to build on if the requirements are met.
  • Different sized blocks for different sized buildings.
  • Have multiple building options when requirements are met for several buildings at the same time.
  • Have the option of removing a building and setting it back up on a different same sized block.
How I want it to function in the game is basically:
  1. Get approval for a building (thinking of having the player receive a key item for this eg. "DA Approval - Bakery)
  2. Pick a block of the right size (probably just click a sign in front of the block)
  3. Show a list of all the options for approved buildings shown
  4. Pick the preferred option
  5. Building is placed down
  6. Option to build that building now removed from list unless it is torn down.
Any help would be greatly appreciated.
1. I hope you are not a beginner user of RM if you want to do those things.
2. This will help you for sure, but it's paid. Also, look for some "big event" plugin got bigger objects/things.
3. Most of the things can be done just in default engine itself. Common events are your heroes.
I don't know if I completely understand exactly how you want this to work, but here is a link to a video I made about allowing the player to select where to put a large yurt (tent) almost anywhere on the map. And I did it without any plugins.

It might be a similar concept. If I am even remotely correct about what you want to do, I think you could take the concepts of the video and modify them to place different things for buildings, etc.

But I would definitely be limited by the available assets.

Good luck and let me know if you have any questions about the video.

If you just want to do what you explained, I don't think it's too hard. Like if you have predetermined spots etc.

You can just show the spots where you can build with colored events (control them depending on the requirements).
Then have the colored events be a click trigger that brings out pictures of your buildings (different buildings depending on what fits in that event area and which buildings you've unlocked).
Then when you click on a building picture, it sets the event's switch to a page that has an event graphic for that building. It also controls the picture events so that that building won't be shown anymore.
And each building event page is also on click trigger that brings up a choice (among other choices?) "demolish building?" -> If you choose "yes", it will remove the building by changing the event graphic to the "empty" colored image and control the picture event so that the building appears there again.
Great, thanks for the reply. Happy to purchase a plugin if it makes things simpler, I'll have a look into it. I actually came across a plugin for actual base building: https://drag-and-plug-in.itch.io/sandbox-map-for-mz.

Though it doesn't have mouse support, which I'd prefer to have the option for.
I've been trying to figure it out but having some difficulties. So this is my basic concept:
1) talk to a person in the world and ask them to come to your town

2) they say they want a particular building there and they will come

3) now you can get a quest from let's say the "DA" to get "DA Approval" for that building.
(Each building will be designated as either Small / Medium / Large)
Example: You receive a key item called "DA Approval - Bakery (small)" or something similar

3) When that quest is done you get Approval and can now build that building on a certain plot of land that is designated Small / Medium / Large

4) Select the block you want, you get a list of all the DA approved buildings you can build that are not currently built in the town

5) pick the building you want, it is constructed after a fade in fade out screen or something similar

6) the person who asked for the building will now disappear from the world as they will now be in the building you just built.

7) you can enter the building - so will need to be able to set the transfer events some how automatically

8) You can choose to "Demolish" a building and if so it will once again appear in the options list for buildings again.

I may just end up going for a simpler setup if I can't get it working. Might just do what I know and have it so you can just build one particular building in just one spot. Not as cool but I know I can make that happen.

Thanks!
That is all doable with switches, self switches and conditional choices. Conditional choices would require a plugin (VisuStella Message Core works).

The first person controls the quest giver to give you a quest.

When the quest is finished, the quest giver controls a switch which adds to the 'show choices' in the empty building spots.

Your building spots show the choices depending on their size and what conditional choices have been activated by quest finish switches. When you choose a building, it controls a self-switch/switch to set the spot graphic to the correct building graphic and also controls a switch that sets the person who asked for the building on an empty sprite page (make them disappear). It also turns off the switch that allowed the building to appear in the conditional choices (the one which was turned on at quest finish).

Each building page is on action button, and the event asks a choice: Enter / Demolish. Enter is just transfer. Demolish returns the building page to the first page without any building graphic. When demolishing, you again turn on the switch that allows the building to show up on the conditional choices. Also when demolishing, you maybe return the character living there to the original map, by controlling their switch also.
That is all doable with switches, self switches and conditional choices. Conditional choices would require a plugin (VisuStella Message Core works).

The first person controls the quest giver to give you a quest.

When the quest is finished, the quest giver controls a switch which adds to the 'show choices' in the empty building spots.

Your building spots show the choices depending on their size and what conditional choices have been activated by quest finish switches. When you choose a building, it controls a self-switch/switch to set the spot graphic to the correct building graphic and also controls a switch that sets the person who asked for the building on an empty sprite page (make them disappear). It also turns off the switch that allowed the building to appear in the conditional choices (the one which was turned on at quest finish).

Each building page is on action button, and the event asks a choice: Enter / Demolish. Enter is just transfer. Demolish returns the building page to the first page without any building graphic. When demolishing, you again turn on the switch that allows the building to show up on the conditional choices. Also when demolishing, you maybe return the character living there to the original map, by controlling their switch also.
ok thanks heaps for your response. I will have a crack at it and see how far I get. Was hoping to have it so I can just walk into the doors of the building and enter without pressing a button as that is how I have my other entrances setup in the game. Figured I could just keep the sign there and click on it if I wanted to demolish it.

Thanks again, I'll have a look at the VisuStella plugin you mentioned.
Awww yeah!! After a bunch of hours messing around I managed to get it working the way I wanted!

Thanks heaps for your suggestion about the conditional choice plugin. I am actually using the WD_ConditionalChoice one (https://winterdreamgamescreator.itch.io/rpg-maker-mz-script-hide-or-disable-choices) as it works with items and other things too which is something I wanted to work into it.

Thanks again!!
1. I hope you are not a beginner user of RM if you want to do those things.
2. This will help you for sure, but it's paid. Also, look for some "big event" plugin got bigger objects/things.
3. Most of the things can be done just in default engine itself. Common events are your heroes.
Hey tried to see what plugin you were talking about but i wasnt able to open the link
Hey tried to see what plugin you were talking about but i wasnt able to open the link
It's Ritter Map Transform. While it's a good plugin, it's paid. For a free alternative you can use Shaz Tile Changer or Ocram's Map Editor
Edit:MZ


Original thread: https://forums.rpgmakerweb.com/threads/base-town-city-building-in-game.164836/