Need plugin to display a variable for Floor/Basement number

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
498
Reaction score
291
First Language
English
Primarily Uses
RMMZ
I need a plugin that would display a small window to show a variable that keeps track of the Floor or Basement the player is on. It would also need to change the text based on a switch. For example:


1F (F would show after the variable if switch was off)


B5 (B would show before the variable if the switch was on)


Perhaps maybe it could also show the map's display name before that as well:


Ancient Cave: B64


or


Infinity Tower: 89F


And of course, use another switch to disable it (for the world map or towns, etc.)
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
498
Reaction score
291
First Language
English
Primarily Uses
RMMZ
Bumping for help
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
562
Reaction score
810
First Language
English
Primarily Uses
RMMV
Hopefully this plugin helps you out: EISFloorDisplay


Save it under the same file name: EISFloorDisplay.js


The plugin has four helper functions:


/* Helper Functions
* KR.Helpers.setFloorNumber(value) - The floor number.
* Example: KR.Helpers.setFloorNumber($gameVariables.value(1)) -- sets the floor number to gameVariable id 1's value.
* KR.Helpers.getFloorNumber() - Returns current floor number. -- simply allows you to keep the floor number in a game variable via script call.
* KR.Helpers.isBelowGround(boolean) - true/false -- sets the floor to 1F or B1.
* KR.Helpers.deactivateDisplay(boolean) - true/false -- Deactives the display on the map.
*/




Common Event Example:

vUeRGeX.png



That common event would increment the floor number each time. 
Only issue is, you'd need to call the common event on each new floor.


Hope this helps!
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
498
Reaction score
291
First Language
English
Primarily Uses
RMMZ
Sweet! It works perfectly. Thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

Reading about metaverses recently. I can totally imagine myself in the future, logging in with VR glasses to a virtual beach villa sitting in a virtual chair, with a virtual laptop facing the sea...coding 16-bit RM.
Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png

Forum statistics

Threads
117,171
Messages
1,105,124
Members
153,261
Latest member
balthubu
Top