Return Label Plugin

KeeganKLM

Noobish Adventurer
Veteran
Joined
Jun 16, 2016
Messages
30
Reaction score
8
First Language
English
Primarily Uses
RMMV
Return Label
(version 1.000)
by KeeganKLM​
This is a plugin made for RPG Maker MV version 1.6.2

Introduction
This plugin allows you to call a Go To Label statement in a particular way so that the game remembers where it was called, so that it can be returned to later. Through this, you can (practically) make "fake" common events, but only for the event page they were coded in.

If using "Return: " and "RETURN" as two different things confuses you, imagine screaming the word RETURN whenever you read it.

Basic Instructions
[Jump to Label: "Return: x"] will memorize its own location and jump to [Label: "x"]. The next time during the event that a [Jump to Label: "RETURN"] statement is called, the game will jump back to the original [Jump to Label: "Return: x"].
Note that this can go multiple layers deep. Every "RETURN" goes to the most recently called "Return: x"

Also note that 'x' is just whatever you want to name the label(s).

Example Usage
Start of Event
...code 1...
Jump to Label: "Return: Random Talk 1"
...code 3...
Exit Event Processing
Label: "Random Talk 1"
...code 2...
Jump to Label: "RETURN"

End of Event

The above will output:
...code 1...
...code 2...
...code 3...


How to Install
Basic Installation. Download the plugin, place it in the js/plugins/ folder, and turn it on in the MV editor.

Download (Plugin + Demo)
Go to my GitHub, click on "Clone or download", then select "Download ZIP".

FAQ
Q: Using "Return: " and "RETURN" is confusing. Can I use my own terms?
A: Yes! Within the plugin parameters, you can change what the plugin looks for. So you can use "Callback:" instead of "Return:", or use "Go Back" instead of "RETURN".

Q: My event is exiting after hitting a [Jump to Label: "RETURN"]! Why?
A: If the system does not have any more "Return:Labels" memorized, a RETURN statement will jump to the end of the event. In other words, the game ran into more [Jump to Label: "RETURN"]s than it did [Jump to Label: "Return:..."]s.

Q: When I put [Jump to Label: "Return: myLabelName"], it doesn't go to myLabelName. Why not?
A: You probably have an extra/missing a space somewhere. (Space meaning:" ")
For example, if you put "Return:" as the first plugin parameter, and you put [Jump to Label: "Return: Food"], the game will look for a label named " Food" instead of "Food".

Terms of Use
- Free for commercial and non-commercial use.
- Crediting me is appreciated, but not required. ("KeeganKLM" or "Keegan Mackey"; whichever you prefer.)

To-Do List
- Make RETURN statements with no return do nothing instead of ending the event.
- Somehow make the plugin work per-event instead of globally.
 
Last edited:

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
529
Reaction score
275
First Language
thai
Primarily Uses
RMMV
Sound nice... but I will wait for your demo
it's quite tricky to understand what it is really do
maybe because I don't understand English well too
thank you
 

KeeganKLM

Noobish Adventurer
Veteran
Joined
Jun 16, 2016
Messages
30
Reaction score
8
First Language
English
Primarily Uses
RMMV
Sound nice... but I will wait for your demo
it's quite tricky to understand what it is really do
maybe because I don't understand English well too
thank you

It probably sounds confusing even to a native English speaker. I'm not the best at explaining it.
But I think the demo I just uploaded will help. :)
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
529
Reaction score
275
First Language
thai
Primarily Uses
RMMV
I see your demo it’s a good plugin Idea
Like a local common event in the same event page
But I’m not a fan of long page scrolling :rswt
it make me frustrating to find what to do
As Mv event cant hide the line
Now I use other methods like call other event page instead
 

KeeganKLM

Noobish Adventurer
Veteran
Joined
Jun 16, 2016
Messages
30
Reaction score
8
First Language
English
Primarily Uses
RMMV
Yeah, it's definitely not a plugin that's for everyone. It's another way of doing something that can be done in many ways, and everyone has their own preferences.
 

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top