Fnaf Style Challenges and Cheats

is there a such thing as a script


that adds an extra option to the title menu called challenges that takes whatever save has the highest value of a specific variable


and uses that to determine what challenges/cheats are available?
First, let's split your question.  You want:


-An options menu accessible from your title menu.


--Using a variable to enable/disable your choices in this menu.


-A way to get the highest value of a certain variable from an array of saves, or a global savefile.


---


First, we need to see if we can restrict option choices with a variable.  Yanfly's Options Menu or Vlue's Basic Options can change game switches but are currently designed for the player menu...Let's try Yanfly's options because they use add_command, a default method that has the (name of the command, the method for the command, enabling of the command, and etc).  The enabling part is true by default, and you can see a disabled version from the Title's Continue.  Anyway, try slapping your cheat-progress game variable == this number in that part of add_command to see if sealing and unsealing them works.  It goes unsaid, but the next step would be to make the Options go to and from the Title and to alter the script for your cheats.


Next, we might as well access those variables from the title by using a global save script like theLEECH's Global Save.  Put the variables and cheats you want for your cheat menu in this script, especially your cheat-progress variable.  Also, remember to place LGlobalSave.load and LGlobalSave.save in your cheat menu's start and terminate methods so you can load, change and save these variables.


Also, in your game, if you are increasing the value of your cheat-progress variable, don't forget to use a condition like "if cheat-progress variable is lower than this number" so that you don't overwrite your progress with a lower number.


---


So yeah, make that cheat menu first, then make it work from the title, then play with global stuff.  Let us know if you are stuck on any particular step.
is it possible to make an option on the title screen to go to a special map with the global save


cause I'm planning on making it so there will be special codes that you can put in to gain these


challenges early (I'm not so sure about the cheats idea) and even access some special modes that are


based off popular fan games of the game that I'm basing the rpg on


also what do you put in the script command to be a conditional branch based on the global switch


and how would you save an individual switch (using many different switches can be much more versatile than one variable)


and three when i installed the yanfly system options and the global variables and it broke the start new game option, i tried removing the scripts but now the start game option is just Bonked
Okay, it seems you are dropping Yanfly Options, so let's ignore that for now.  Anyway, you said you removed both scripts and it bonks, and I'm assuming you haven't editted anything afterwards, correct?  Anyway, I do know that the Global Save script does add a new "global savefile", so try to delete that and see if it works.


---


The Global Save script I sent you saves the value of the switches/variables you place in the arrays in the first part of the script and loads them on a new or continued game, so just put the variables/switches in the array. 


If you decided to do your own global switches, if you are doing a Conditional Branch in your event, you write it like a basic if-statement but without adding the if, but if you mean the script itself or the script portion of the eventing, you use the if.  For example, $game_switches[23] == true in Conditional Branch or


if $game_switches[23] == true


yadda yadda yadda


end in any script checks if Switch 23 is true.


---


To go to a map, study the DataManager setup_new_game and Scene_Title's command_new_game.  Your button to go to the "cheat map" should be similar in that aspect, though the setup_cheat_map should replace the $game_map.setup(map_id) and $game_player.moveto(x,y) with the id of the map (viewable in map properties) and the desired position.
i couldnt find any global save file so i rreinstalled the global save script to make a new global save


i put this into the event as a script call and now i cant load any save either


if $game_switches[342] == true


global_save[342]


again i took it out and its still not working, now it doesnt matter if im trying to load or start a game i cant play at all ☹
I am going to assuming that scripting is not your forte.  First of all, the global save script I linked you shouldn't need to have script calls.  Second, everything about what you posted is wrong:


1. if statements need an end after what you are trying to do.


2. Your global_save is currently a local switch.  You need to put a $ in front of it like $game_switches to make it global.


3. Your global_save returns true or false.  What you were looking for is probably global_save = true to give your switch the value of true.


When you remove things, is it just the script or is it any things you added since then?


---


Anyway, since it seems the global save script doesn't work, let's just forget that method, and delete your other save files just to be safe.  Since it appears that what I say isn't working, I won't give any more advice on this.

Original thread: https://forums.rpgmakerweb.com/threads/fnaf-style-challenges-and-cheats.73606/