じ☆ve冰风 发表于 2026-7-19 12:46:31

[RPMXP] need help finding largest variable out of 7

Hello! I'm very new here and to coding/scripting. I'm trying to make a personality quiz for my game that will determine what starting item they will be given, out of 7. While i know that this is possible with nesting conditional branches, that's gonna get messy very quickly. I've tried to search for scripts that other people have used/shared, but I haven't found one that works with XP. (or maybe I'm messing them up)

The variables I want to compare are numbered 51-57, and Ii have 58 reserved to take on a value(1-7) dependent on the maximum value of 51-57, which will be used to indicate which item will be given. I just need a script to help me find the max value between var51-57 and assign a number (1-7) to var 58. I think i can figure out the rest.

Any help would be much appreciated!!! Thank you!!


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