• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

RPGM Building a house in game

Faldir

Member
Game Developer
May 7, 2017
358
1,064
I've been fiddling with a game in rpg maker mz but have run into a problem.

In games like Peasent's Quest some events causes a building to be added/rebuilt.

I have tried to replicate this but to no great success. Though I can add singular tiles via events multi-tiled buildings seem beyond me.

Do any of you grand gentlemen know of a way to add buildings, such as a house in game via events?
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,040
3,118
I've been fiddling with a game in rpg maker mz but have run into a problem.

In games like Peasent's Quest some events causes a building to be added/rebuilt.

I have tried to replicate this but to no great success. Though I can add singular tiles via events multi-tiled buildings seem beyond me.

Do any of you grand gentlemen know of a way to add buildings, such as a house in game via events?
you have to duplicate maps and use switches and variables and use the new map instead of the old map with broke-down house
 

Faldir

Member
Game Developer
May 7, 2017
358
1,064
you have to duplicate maps and use switches and variables and use the new map instead of the old map with broke-down house
I feared this might be the case. The planned village would have had a fair few buildings for individual upgrade - the amount of maps (considering the combination of different houses built at different times) would be immense. Making the game more linier would help I suppose.
 

ShengShuan

New Member
May 2, 2018
2
4
Shortest answer first: use overlays or sprites.

Now the explanation: the best thing to do in such cases is: you have a basic map without transparency and then put different maps with transparency on top of each other, one for each building in the current state. Sprites work the same way, but they aren't whole maps, just the buildings, and then just have to be placed in the right place. Sprites are more flexible because you can put them anywhere, overlays are just different images on top of each other.

After the explanation here is the sad truth. I have no idea if this is easy to do with RPG Maker or at all, it depends on the commands the API provides.

If I remember correctly, there are two event commands called showPicture() one for the screen and one for a specific image, both commands contain, if I'm not mistaken, a parameter like trans, opacity or something similar, which indicates transparency suggests. You can try that first.

If it doesn't work, there's still the hardcore way of using your own plugin. Of course, for this you need knowledge of how to create a plugin for the RPG Maker, and of course in the appropriate programming language, I think JavaScript. And last but not least, you need documentation about the API, the interface that RPG Maker provides to the plugin.

Here is a brief note on the general approach.
First try the internal options for an hour or two, if the result is useful use it, if not forget it or deal with the plugin problem. Find documentation about plugin importing and programming and read through it, even if it may seem difficult and you don't understand everything, do it. If you don't manage to keep it up, you won't program a plugin either, experience is valuable. When you're done, think about the cost-benefit ratio. Then decide.

Here is my personal experience in software development.

If you are not 100% sure that you want to take the difficult path: don't do it.

If you use the approach as described above, you lose a day and can then adapt the design to the possibilities of the engine. If you go the difficult way, there is always the possibility that it won't work because the engine doesn't allow it or you can't do it. Then, when you find out after three to four weeks, you'll get frustrated and lose all fun.

So the very last question you should ask yourself, a small success and fun doing it or frustration and the result you would have gotten anyway.
 

Faldir

Member
Game Developer
May 7, 2017
358
1,064
Shortest answer first: use overlays or sprites.

Now the explanation: the best thing to do in such cases is: you have a basic map without transparency and then put different maps with transparency on top of each other, one for each building in the current state. Sprites work the same way, but they aren't whole maps, just the buildings, and then just have to be placed in the right place. Sprites are more flexible because you can put them anywhere, overlays are just different images on top of each other.

After the explanation here is the sad truth. I have no idea if this is easy to do with RPG Maker or at all, it depends on the commands the API provides.

If I remember correctly, there are two event commands called showPicture() one for the screen and one for a specific image, both commands contain, if I'm not mistaken, a parameter like trans, opacity or something similar, which indicates transparency suggests. You can try that first.

If it doesn't work, there's still the hardcore way of using your own plugin. Of course, for this you need knowledge of how to create a plugin for the RPG Maker, and of course in the appropriate programming language, I think JavaScript. And last but not least, you need documentation about the API, the interface that RPG Maker provides to the plugin.

Here is a brief note on the general approach.
First try the internal options for an hour or two, if the result is useful use it, if not forget it or deal with the plugin problem. Find documentation about plugin importing and programming and read through it, even if it may seem difficult and you don't understand everything, do it. If you don't manage to keep it up, you won't program a plugin either, experience is valuable. When you're done, think about the cost-benefit ratio. Then decide.

Here is my personal experience in software development.

If you are not 100% sure that you want to take the difficult path: don't do it.

If you use the approach as described above, you lose a day and can then adapt the design to the possibilities of the engine. If you go the difficult way, there is always the possibility that it won't work because the engine doesn't allow it or you can't do it. Then, when you find out after three to four weeks, you'll get frustrated and lose all fun.

So the very last question you should ask yourself, a small success and fun doing it or frustration and the result you would have gotten anyway.
I have now spent the past day trying my best to follow this excellent advice. It seems I do not have the skills to make my own plugin, but the working with the internal options have yielded some hope. My current solution is to make use of several maps (of the same map), with changes to each to depict progression and a multi-event system where single tiles are changed per event. The maps will take care of bigger buildings and the multi-event the smaller. It the best I could do. Baby steps can be educational too.