How to make a State remove another State?

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
12
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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
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
12
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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
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
12
First Language
English
Thanks a ton!

You've been very helpful.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top