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
Regular
Joined
May 20, 2015
Messages
1,470
Reaction score
1,773
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
Regular
Joined
May 20, 2015
Messages
1,470
Reaction score
1,773
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

Regular
Regular
Joined
Jul 8, 2013
Messages
317
Reaction score
368
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

Regular
Regular
Joined
Jan 18, 2014
Messages
1,550
Reaction score
212
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

Regular
Regular
Joined
Mar 13, 2012
Messages
219
Reaction score
28
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Me with the fireplace, a space heater, and a heated blanket. My preferred lizard temperature.

I'm gonna riff on Macross's "Deculture" and adopt "Descope" as my motto! :wub God knows I'm gonna need it...

As an aside, did any of ya sweeties watch Macross Delta and if so, was it good, bad, or horrible?
Is an extension for the jam time limit from 20 min to 30 min possible? :ysad::ysad::ysad: My entry will have a few battles, it seems >.<
Background and composition study
GAbBmfDaIAAEzVM

Forum statistics

Threads
136,712
Messages
1,269,020
Members
180,431
Latest member
ZOOMNOTA
Top