Can items have dual purposes?

Jimminybob

Villager
Member
Joined
Apr 17, 2017
Messages
24
Reaction score
7
First Language
English
Primarily Uses
RMMV
Hi all,

I've just started tinkering around with RPG Maker MV and have been coming up with a list of status effects and curative items. Two of the status effects i've created revolve around decreased/increased agility. I've created an item that will cure the negative state of decreased agility, but I was wondering is there was any way to have the same item cure and invoke effects based on the character's current status?

So in this example, say a character has decreased agility. I use the item to cure this negative effect and bring them back up to normal. If I then use this item again on the same character, it adds the positive effect of increased agility. I don't want to go straight from a decreased to an increased effect through a single use of the item.

It was just an idea I had, and not sure if it can be done, but if anyone could help me out on this that would be great!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
yes and no - you can have the item call a common event, and use conditional branches in the common event to decide what to do.
However, in battlescreen common events are executed at end of turn, so it would not work exactly like a normal item and it will require some tricks for targeting the effect.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
564
Reaction score
275
First Language
German
Primarily Uses
Hi,

In this particular case you could also work around the problem a bit:
If you make your battler immune to the positive state while they are affected by the negative state (state resist trait), your item can simply add the positive state first and then remove the negative state to achieve the effect you want.
 

Jimminybob

Villager
Member
Joined
Apr 17, 2017
Messages
24
Reaction score
7
First Language
English
Primarily Uses
RMMV
Hi,

In this particular case you could also work around the problem a bit:
If you make your battler immune to the positive state while they are affected by the negative state (state resist trait), your item can simply add the positive state first and then remove the negative state to achieve the effect you want.
That's a very interesting way around it, will definitely give it a go. Thanks!
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
If you use YEP_SkillCore, you can get what you ask easily.
Lets say state 28 is the negative state & state 29 is the positive state. Now place this in the item notetag.
<After Eval>
if (b.isStateAffected(28)){
b.removeState(28);
}
else{
b.addState(29);
}
</After Eval>
 

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