$TEST Overwrite
Dekita
Features:
So, as some of the more advanced may already know, the $TEST variable holds the boolean for whether your game is being playtested or not.
As other may know, by using the 'command ine' to open an rpg maker game, you can add the command 'test' that will begin playtest mode. This obviously is not ideal as regular players could potentially use this to gain access to areas of the game they should not be permitted.
Anyway, this script changes the value of $TEST.
When using this script your game will not be in $TEST mode unless a specific command line argument is supplied. This can be any phrase you wish. There is also the option to automatically add this argument to your command line -WHICH SHOULD BE DISBALED FOR YOUR GAMES RELEASE !!
I have also introduced a new value that can be checked as well. This value is DEK::gm? and will return true / false based on whether the GM_Argument is specified.
Screenshots:
Notice, the command line arguments are more than just 'test'. This is because new argz are being provided to the game at runtime that change the value of $TEST.
How To Use:
Plug 'n' Play
Demo:
Can be found
HERE.
Script:
Can only be found from demo link above under the script page 'DEK::$TEST' - also requires 'DEK::AARRGG'.
FAQ:
None Yet.
Credit:
Dekita / DekitaRPG
Notes:
Remember, this will overwrite the value of $TEST - so if the new vaue of$TEST is not true certain information may not print to the console and you will not be able to use features such as 'hold ctrl to go through stuff'
本贴来自国际rpgmaker官方论坛作者:??????处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/test-overwrite.33968/