Kumo6752

Villager
Member
Joined
Jul 10, 2018
Messages
9
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
Hello.

I want to hide the Formation Menu UNTIL a part of the game. With the System 2 i can hide it from the start but... only that?
in MV you can do this setting a variable as a condition for the scene using yanfly engine, but idk if its possible in MZ.

Thanks.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
35,919
Reaction score
9,528
First Language
German
Primarily Uses
RMMV
one alternative would be to have the formation menu present but disabled.
that is the common default solution because it needs neither script nor plugin - there is an event command to enable and disable formation access, and that can be changed as often as you want during your game.
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
490
Reaction score
263
First Language
English
Primarily Uses
RMMZ
Using http://www.yanfly.moe/wiki/Main_Menu_Core_VisuStella_MZ

Go to Plugin Manager > VisuMZ_1_MainMenuCore > Command Window List > 10 "formation" > JS: Show > Paste this in:
OPTION 1: Switch will allow formation to show as long as Formation Access is enabled.
Code:
return $gameSwitches.value(1, true) ?
this.needsCommand("formation") : false;

OPTION 2: Switch will allow formation to show; Formation Access enable will allow access, while Formation Access disable will grey it out.
Code:
return $gameSwitches.value(1, true);

Change switch to which ever number you want to use.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,550
Reaction score
2,666
First Language
EN
Primarily Uses
RMMZ
Code:
return $gameSwitches.value(1, true)
Just for info: this will work, but $gameSwitches.value only expects 1 argument (switch ID), so it can be written as:
JavaScript:
return $gameSwitches.value(1);
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
490
Reaction score
263
First Language
English
Primarily Uses
RMMZ
Just for info: this will work, but $gameSwitches.value only expects 1 argument (switch ID), so it can be written as:
JavaScript:
return $gameSwitches.value(1);
:aswt: Thank you!
 

Kumo6752

Villager
Member
Joined
Jul 10, 2018
Messages
9
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
one alternative would be to have the formation menu present but disabled.
that is the common default solution because it needs neither script nor plugin - there is an event command to enable and disable formation access, and that can be changed as often as you want during your game.
Yes, now i remember to try this time ago, but doesn't works with visustella mainmenu plugin.

Using http://www.yanfly.moe/wiki/Main_Menu_Core_VisuStella_MZ

Go to Plugin Manager > VisuMZ_1_MainMenuCore > Command Window List > 10 "formation" > JS: Show > Paste this in:
OPTION 1: Switch will allow formation to show as long as Formation Access is enabled.
Code:
return $gameSwitches.value(1, true) ?
this.needsCommand("formation") : false;

OPTION 2: Switch will allow formation to show; Formation Access enable will allow access, while Formation Access disable will grey it out.
Code:
return $gameSwitches.value(1, true);

Change switch to which ever number you want to use.
Works perfect, thanks! :kaojoy:
 

Latest Threads

Latest Posts

Latest Profile Posts

Empty Bottles and Health Extenders are now a thing.
Also the Sling-Shot does damage to enemies now, but not a lot and you won't get gold from killing them that way.
ScreenShot_5_26_2022_11_36_32.png
added a Panic gauge to battle. it fills up according to your actions. each character has a different passive that activates once the gauge is full. also once full, a countdown starts and after each action taken, the gauges decreases. with each character, the decrease is different.
Genuinely considering making a thread informing people how to Google.
It's time for Da Update...

Prototyping some overworld abilities. Some of the characters you'll meet on your journey can use special overworld skills to travel around. This can be something like digging holes in the ground or getting hints towards your next objective.

Forum statistics

Threads
122,162
Messages
1,146,933
Members
160,432
Latest member
Queenprotein
Top