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
30,048
Reaction score
7,034
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
559
Reaction score
272
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
697
Reaction score
210
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 Profile Posts

Imagine after all this time, its RPG Maker MV Ace?:p Even if it has huge improvements, that would just be disappointing somehow xD
Kes
Came up with a good name for something. Checked on internet - device trademark filed in India 2017. Back to the drawing board.
I want to see the Features of the new RPG Maker.. NOW!!
Can't wait for it!
KDS
Check out some gameplay of a game iam working on :)
Me : "Wearing glasses is annoying."
*put out glasses*
Also me : "Keep mistaking 0, 6 and 8."

Forum statistics

Threads
98,126
Messages
949,503
Members
129,410
Latest member
Charles_Chandra
Top