じ☆ve冰风 发表于 2026-7-26 11:20:53

Global Save Data

Author: Mr. Trivel


Name: Global Save Data


Version: 1.0


Created: 2016-03-31




         


What does it do?


        Allows player to set and change variables that affect all saves.


         


Video:










         


How to use?






                                        To set global variables, use the following Plugin Calls:


                                         



                                                GlobalVar Set - Sets variable to


                                                GlobalVar Add - Adds to variable


                                                GlobalVar Sub - Subtracts from value


                                                 


                                                - Variable name, case sensitive


                                                - Value of variable a number or true/false


                                                 


                                                Examples:


                                                GlobalVar Set Glasses true


                                                GlobalVar Set GameCompleted 1


                                                GlobalVar Add GameCompleted 1


                                                GlobalVar Sub GameCompleted 2


                                                 


                                                To check global variable in a conditional branch or somewhere else, use this code:


                                                DataManager.getGlobalVar(NAME)


                                                 


                                                Example:


                                                DataManager.getGlobalVar(Glasses)








         


Plugin: <Link: Github>


        How to download the Plugin: Click the link above, there will be a button named Raw, press Right Click -> Save As.


         


Terms of Use:


        Don't remove the header or claim that you wrote this plugin.


        Credit Mr. Trivel if using this plugin in your project.


        Free for commercial and non-commercial projects.


本贴来自国际rpgmaker官方论坛作者:Mr. Trivel处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/global-save-data.59665/
页: [1]
查看完整版本: Global Save Data