Stat Growth Items not usable on "guest actors"?

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
459
Reaction score
670
First Language
German
Primarily Uses
RMMV
So my problem is relatively simple, in my game you sometimes obtain rare stat growth items, you know, the kind that raises a characters strenght by 1 for example. And then the item is used up.
(Basically, your typical run-of-the-mill stat growth item)

And at certain points in the game you have temporary characters in your party that fight with your group.
But since these are only temporary and leave your party at a later time, it would not be logical to give
them any stat growth items as these would effectively be wasted after their departure.

How should I approach this problem?

Is there any way to fix this problem on a mechanical level (i.e. make these items unusable on guest characters)?

Or should I just put this responsibility into the players hand? For context, the first time you have "guests" join your party, I make it clear to the player that these will not stay for long.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,353
Reaction score
8,080
First Language
German
Primarily Uses
RMMV
the default solution would be to make the effect into a common event with conditional branches instead of a direct effect.
then you could check in the common event who is the target (for example by state) and if it is the wrong one, no effect but regaining the potion that had been consumed.
 

Unisoft

Villager
Member
Joined
Jan 21, 2021
Messages
27
Reaction score
6
First Language
English
Primarily Uses
RMMV
Andar’s solution is relatively easy to implement.
Alternatively, Yanfly’s Target Core may be able to help, if you’re able to work with JavaScript, but I’ve not explored it thoroughly. You can ‘lunatic mode’ and create a custom item tag that can evaluate whether something is targetable. You may be able to eval based on the presence of a state.
http://www.yanfly.moe/wiki/Target_Core_(YEP)

Personally, I don’t see a problem with letting the player ‘waste’ it and (we hope) learning from the experience!
 

Latest Threads

Latest Profile Posts


Swag collecting in the new randomly generated area. Now the mini map also shows the randomly generated features... And even illustrates the whole "bubble" system" that I made to manage memory... Though that part's inadvertent. We'll just call that "the fog of war"... Yes, that's what we'll do. Nobody will be the wiser! :kaopride:
not me being not lazy for 5 seconds and drawing another char portrait (her name is hazel)
its_hazel.png
Been a while since the last time I made a song remix. Had a blast making this
One thing those jp developer still get wrong about boob physic is that... men's muscly hard pecs can jiggle too.
Definitely glad I haven't released a few of my plugins that are technically done. As I learn more, I find ways to make my code more efficient, and in one case so far, discovered an existing function that did EXACTLY what I created my own function to do.

Forum statistics

Threads
110,454
Messages
1,053,433
Members
143,541
Latest member
Neikoku
Top