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,149
Reaction score
15,537
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,149
Reaction score
15,537
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

Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​

Forum statistics

Threads
117,162
Messages
1,105,058
Members
153,249
Latest member
Jon_Doe
Top