じ☆ve冰风 发表于 2026-8-2 15:55:01

Default Variables

Default Variables v1.0​
by futrchamp​
 ​
This script simply allows you to set certain variables to have a value that is set when the game starts.

Instructions:

Paste into the script editor below materials and above main.

Change the numbers in the Variables= line to whichever variables you want to set.

Change the numbers in the Values= line to the corresponding values for each variable.

For example:

Variables=

Values=

Would set variable 2 to 1, variable 3 to 2, variable 6 to 3, and so on.

You can have as many variables in the array as you want, as long as each is assigned a value.

 

Compatibility:

Should be compatible with just about any script that doesn't modify the same things. Report any issues and I will try to make a patch for the script in question.

 

Terms of Use:

Usable in any project, commercial or non-commercial, with credit appreciated, but not required.

 

                Code:       
# Default Variables v1.0# by futrchamp# This script simply allows you to set certain variables to have a value that is # set when the game starts.# Instructions:# Change the numbers in the Variables= line to each variable you want to set.# Change the numbers in the Values= line to the corresponding values for each # variable.# For example:# Variables=# Values=# Would set variable 2 to 1, variable 3 to 2, variable 6 to 3, and so on.# You can have as many variables in the array as you want, as long as each is # assigned a value.module FutrDefaultVar# Set the variables to be changedVariables=# Set corresponding valuesValues=endclass Game_Variablesalias initialize_futrdefaultvars initializedef initialize(*a,&    initialize_futrdefaultvars(*a,&    i=0    while i<FutrDefaultVar::Values.length    @data] = FutrDefaultVar::Values    i+=1    endendend


 

 

 


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