じ☆ve冰风 发表于 2026-7-21 17:48:26

KDamage XP States Edition

KDamage XP States Edition

by Kyonides​

Introduction

A forumer once asked for a script (or anything else) that could allow the heroes to lose a state ONLY if it had been predefined by game developer to do that. The default option of relying on the Damage Chance did not satisfy the game's particular needs.

To make sure that just a FEW states will be removed by physical damage, just add as many State ID's to the following Constant:

                Ruby:       
STATES_HIT_REMOVE =


To keep a State even if it should be removed by walking until a certain level has been reached, go add it to this Constant. Level is Customizable!
Basic Format: { StateID1 => Level, etc. }

                Ruby:       
STATES_KEEP_WALKING = { 5 => 3, 14 => 9 }


Other States will be treated as usual.

Download Script​

Terms & Conditions

Free for use in any game.
Due credit is mandatory.
That's it!


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