Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
13
First Language
English
Let's say I have two states: Poison and Regen. One reduces HP each turn, and the other recovers it. As such, they are opposite states, and should not exist on the same character at the same time.

So, if a character has Regen, then being inflicted with Poison should remove it. But I don't know how to do that. I assume it has something to do with "Remove by Restriction", but I doubt.

Another thing I should note is that apart from KO, Poison should be the only state to replace Regen, and vice versa. I have other opposite states that I want to work in the same way (Haste and Slow, for example).
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,122
Reaction score
15,530
First Language
English
Primarily Uses
RMMV
I will be porting my State Add/Remove commands script from Ace to MV.  That would do it for you.

In the meantime, if these states are applied by items or weapons or skills that have a damage formula, you could make the damage formula remove the other state.
 

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
13
First Language
English
Alright, then. I have two questions:

1) Will the new plugin you make be free for commercial use?

2) What is the string (correct term?) for removing a state from a target?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,122
Reaction score
15,530
First Language
English
Primarily Uses
RMMV
1) Yes - all of my scripts & plugins are free for commercial use

2) The command to remove a state is removeState(id)
 

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
13
First Language
English
Thanks a ton!

You've been very helpful.
 

Latest Threads

Latest Posts

Latest Profile Posts

Making games is the only thing I'm good at. Real talk.
So, uh... where's the RPG Maker MZ update with the MV animation system? Is there a release date confirmed?
Also I'm kind of brave enough to admit this. I... I have a crush on Sephiroth.
Please don't call me anything offensive. I'm naturally crazy.
thanks to a lot of lunatic coding... my game finally has a stun mechanic that I feel really good about. damage enemy's mental psyche (mp), and once empty, hitting with certain attacks trigger combos that can stack the damage.
Waiting for the 1.40 update before testing out my copy of MZ so that I don't end up adding unnecessary work to my plate. Meanwhile the current fourth draft for my story is taking shape, and I'm fleshing out the lore as I realize how things would make better sense here and there for the world that I'm building.
Sword_of_Dusk wrote on BCj's profile.
Just found out about your complications. I'm so sorry that you're going through this. I wish I could do something substantial for you, but our distance from each other makes that an impossibility. Still, if you ever need to talk or vent, I'm here.

Forum statistics

Threads
117,112
Messages
1,104,676
Members
153,147
Latest member
ShadowGlitch
Top