Teleport spell that only lists visited locations

Pocky

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
0
First Language
English
Hello folks,

I am able to make a standard teleport spell, i.e. "lists all of the places you can teleport to", but I'm trying to make one that only lists the places the player has been to already. I figure that a simple switch that turns on once the player goes into the town/castle/dungeon/whatever would work to mark "where I've been to", but I'm stumped on how to make only those locations show up in the list. 

I know that I could theoretically give the player a spell for each individual location (Teleport City, Teleport Castle, etc), but I'd rather not clutter up the list if I could help it. I am guessing a nested set of conditional branches might work too, but that could get overly complicated quickly, and I'd be worried about not being able to cover all of the cases.

I saw that previous versions of RM seemed to be able to do this via scripting, but is it possible now just using the base system?
 

Schlangan

A madman with a computer
Veteran
Joined
May 20, 2015
Messages
1,422
Reaction score
1,702
First Language
French
Primarily Uses
RMMV
You can use a common event that will call conditional branches. Depending on the branch, you'll have a different choice command. To bypass the 6 commands, don't hesitate to add a "more" or "next/previous" command.
 

Pocky

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
0
First Language
English
You can use a common event that will call conditional branches. Depending on the branch, you'll have a different choice command. To bypass the 6 commands, don't hesitate to add a "more" or "next/previous" command.
Would this mean that I would have to make a branch for every possible combination of locations?

As in, if there are three locations, make a branch for:

A

B

C

A B

A C

B C

A B C

Something like that?
 

Schlangan

A madman with a computer
Veteran
Joined
May 20, 2015
Messages
1,422
Reaction score
1,702
First Language
French
Primarily Uses
RMMV
Yes you would need to do this in you want to stick to eventing only.

If the locations are discovered in a given order though, it would be easier though. Just use a variable to keep track on the discovered location in that order.
 

fallenlorelei

Veteran
Veteran
Joined
Jul 8, 2013
Messages
298
Reaction score
346
First Language
English
Primarily Uses
I know you wanted to use only the base system, but this plugin would help you if you change your mind. You could have all of the places listed and make it visible once a switch is flipped =]
 

Pocky

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
0
First Language
English
I will give this a try and report back when I can, thank you very much, everyone!
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Like others have said, condition branches is the traditional way to go.

However I'm creating a Teleport spell a different way. Basically the played is moved to a special map(temp), which is a map of the world(the player turns into a pointer on this map), and there's tons of events. If you have been to a location, it will show up on the map, and clicking on the location will allow you to teleport to said location. However there will be a cancel button, just in case you choose not to Teleport, so it will return you to where you were, when you used the Teleport to open the map.
 
Last edited by a moderator:

wizaerd

Veteran
Veteran
Joined
Mar 13, 2012
Messages
219
Reaction score
27
First Language
English
Primarily Uses
You could also use built in script calls to add visited locations to an array, and then in the common event just read the locations from the array, and build your list appropriately.

There are as many solutions to a common problem as there are ways to skin a cat.  No specific way is right or wrong, just what you're able to think of and implement, and what best fits your specific game.
 

Pocky

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
0
First Language
English
A big thank you to everyone who offered their suggestions and advice! With some tinkering and the plugin that was recommended, I've got it working exactly how I want it.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top