Galv's Puzzle Functions MZ

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
Puzzle Functions
RPG Maker MZ Plugin
Galv

Introduction
Additional functionality to make puzzle-making easier.




Features
This plugin adds some functions to use that may help with eventing puzzles and/or quests.

1. Self-switch flipping
Change self switches for any event from any event
Change self switches for events adjacent to other events
Specify turning these self switches off, on or flip them

2. Determine location without having to use Control Variables beforehand.
Test to see if an event or player is at an x,y location
Test to see if an event or player is at another event’s location

3. Group switch/self-switch checking
Test to see if a group of specified switches are on or off
Test to see if a group of events have a certain self switch on or off

4. Checking event activation order
Set a combination
Make events add combination values
Check if the player has activated the events in the right order set in the combination specified.

5. Multiple Item Checking
Check if there are multiple items, armors, weapons in inventory using code with only one conditional branch.

Simple examples of all of the above can be seen in the demo.


How to Use
- Copy the "GALV_PuzzleFunctionsMZ.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager) for more details and try the demo if you don't understand.


Plugin
Get it here


Credit and Thanks
- Galv


Terms
Free to use in any RPG Maker MZ project including commercial. Please credit "Galv".
:)
 
Last edited:

GalacticGod

Veteran
Veteran
Joined
Jan 28, 2018
Messages
470
Reaction score
570
First Language
English
Primarily Uses
RMMV
This plugin looks super useful.
 

BrentBAM

Veteran
Veteran
Joined
Jul 22, 2020
Messages
68
Reaction score
31
First Language
English
Primarily Uses
RMVXA
Awesome work Galv! Thank you!

I definitely want to make that puzzle where you light up the adjacent flames!
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
I love this, but can you add in the ability to set the Self Switch of an event on a different map?
 

BrentBAM

Veteran
Veteran
Joined
Jul 22, 2020
Messages
68
Reaction score
31
First Language
English
Primarily Uses
RMVXA
I love this, but can you add in the ability to set the Self Switch of an event on a different map?
In case he can't add it... there is a regular script call to change a self switch on another map.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ

RainbowGrenade

Paint Princess
Veteran
Joined
Jan 21, 2013
Messages
278
Reaction score
329
First Language
English
Primarily Uses
RMMV
You're a hero! I've been making a puzzle heavy game, and this plugin will be so dang helpful! Thanks for creating and sharing it!
 

RainbowGrenade

Paint Princess
Veteran
Joined
Jan 21, 2013
Messages
278
Reaction score
329
First Language
English
Primarily Uses
RMMV
Thanks again for sharing this plugin. I thought I'd let you know that there's an issue when I try to use a script call ( Galv.PUZ.isAt(t,e) ) and don't specifically state the event ( i.e. Galv.PUZ.isAt(0) ). As in, leaving blank for "this event" gives the error "Cannot read property 'x' of undefined. I tried putting " " in that spot, which stopped the error message, but didn't work right (unsurprisingly). I ended up just manually entering all of the event IDs I needed, but I thought I should let you know what's up. Either way, this plugin is awesome, and I'm excited about what I'm able to do with it.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
Thanks for letting me know, I forgot to update the text from the port.
You'll need to use: this._eventId instead of leaving it blank.
I updated this plugin so the instructions are correct in latest version.
 

Candacis

Pixel Pusher
Restaff
Joined
May 2, 2012
Messages
1,652
Reaction score
2,549
First Language
German
Primarily Uses
I love those kind of plugins. Something that gives you that extra help while you event.
It doesn't replace eventing or does all the work for you, but instead works hand in hand with it.

Thanks for porting it!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top