RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VX] Camping Item with Map Scene

0 Members and 1 Guest are viewing this topic.

*
A-pow 2015
Rep:
Level 81
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.a^2 + b^2 = c^2How can I help you? :DSecret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
This is mostly just a slightly tweaked version of Yanfly's camping event in the YEZ demo, but I thought it might help some people out.

This allows you to have a tent item like in several final fantasys, but when used, it teleports you to a camping map based on the map you are currently on.
You can also have your party members show up on the map. If you want to get really complicated with it, you could set their dialogue to change with different story events using switches or variables, but this will focus mostly on the camping event itself.

First, you'll need four variables.(Three if you only want one camp area used for every map)
Name these variables "Camping Location", "Map ID", "Map X", and "Map Y".

On your first map,(I used a forest for my first map) make a parallel process event that sets variable "Camping Location" to 1. Set the rest of your maps as 2, 3 and so on.

Now, make a common event. Use a conditional branch with the condition that the "Camping Location" variable is set to 1. Underneath that, set the "Map ID" variable equal to the map ID, "Map X" equal to the player's map X location, and "Map Y" to the player's map Y. Then, use the transfer command to teleport the player to that map's camping location. Do the same thing for your other maps, changing the "Camping Location" variable to match the map that corresponds with your other camping maps. It should look something like this:
Spoiler for:
It may also be a good idea, if your maps aren't as plainly labeled, to note which variable number corresponds to each map by leaving a comment for each location.

In the items list, make a new item called "Tent". (Or you could call it bedroll or something if you don't want to use a tent graphic)

Spoiler for:

Set the scope to "none" and make it usable only from the menu. Then, underneath common event, select the camping common event you just made.

I tinted my map a dark blue hue to simulate night time.

So, now we can get to our camp site, but how do we get back?

Simply create an event (I used a bed kept inside the tent) that teleports you with the designations set to the variables they correspond to. (Ie: Map ID=Map ID variable and so on)

Spoiler for:

Here's what mine looks like:
Spoiler for:

I added the inn tone and a fadeout to transition back into the regular map. I also made it heal the entire party, as that's usually the ultimate purpose of a tent.

So, there you go. You have a nice tent scene that changes based on the map you're on.

I made it so the party members and their corresponding beds only appear when they're in the party. To do this, just make each party member's event on the camping maps, and check the condition "Actor: 'insert actor here' exists" for the corresponding actors and beds.

Demo:http://www.mediafire.com/?7ir2xljai0538g9

Credit/Thanks:
Yanfly for the basic common event.
Mack and Hanzo Kimura for the tilesets used in the demo.
« Last Edit: February 23, 2014, 04:00:46 PM by modern algebra »