じ☆ve冰风 发表于 2026-7-8 12:27:32

Small script for checking a variable for multiple values at once

Today I was discussing this question with some people in Discord, and as a result one of them decided to write a script that does it via fairly small function. They told me I can share it, so share it I will.
Use it by pasting "isGameVarValue(variableId, ...values)" and "isGameVarLesserThan(variableId, ...values)" in the conditionals respectively, while changing the variable and values for those you want.
(Not sure if I can rename the file, so I'm going to leave that up to you)


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