Save-Point
KDamage States XP - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: KDamage States XP (/thread-8775.html)



KDamage States XP - kyonides - 06-29-2023

KDamage States XP

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:

Code:
STATES_HIT_REMOVE = [2,3,4,7,9]

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. }

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

Other States will be treated as usual.


Terms & Conditions

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