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
43,647
Reaction score
15,279
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
43,647
Reaction score
15,279
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 Profile Posts

"I didn't know X song was about that!" Uh... why? Do you not listen to the lyrics? I mean, I guess that makes sense. We live in a world where nobody listens, but everyone wants to be heard.
Coding class: Python
Game dev work: Javascript
Result: AHHH!!! Writing program for an assignment and having it crash and burn because I used Javascript syntax or format. Or having my game die on me because of a python call :yswt:
Can we make it so whenever a banned user tries to use their account whilst banned, the forum should redirect to this
Anyone doing anything for NaNoWriMo this year?
Listening to, "Draum" by Eldrim. If you haven't heard it before, do so. Absolutely lovely, and utterly haunting.

Forum statistics

Threads
115,835
Messages
1,093,317
Members
151,027
Latest member
Mansfield40matt
Top