I am working on a game prototype where there are few battles but stats still play a big part. Making events and sidequests raise a character stat is simple enough I was wondering if there any way to only show an event if a characters stat is only above a certain threshold? Lets say there is a ghost in a map that the player can only see or interact with if their wisdow stat is high enough. Any suggestions how this can be implemented, and if it is even possible?
Only show event if a stat is high enough
Game Mechanics Designi think its possible to store a stat value into a variable. so yes, it is possible. practical? ask someone who knows how to store a stat into a variable
You can use Control Variables (Game Data) to store specific data like stats into variables.
Then, you can use Conditional branch to check if said variable is greater than, equal to, less than, etc. You can even check if the variable is 'not' equal to something and run an event that way.
But lets say we did that ghost example.
Make the ghost an event that has one of the conditions in the upper left side checked. You can choose the variable you've chosen your stat in, and what value it needs to be equal to or greater than in order for the event to trigger.
To recap, Control variable and click Game Data to access the stats to store.
Set event's inherent requirement to be the stat and it's required value, via the variable you made.
Hope this helped ^^

Then, you can use Conditional branch to check if said variable is greater than, equal to, less than, etc. You can even check if the variable is 'not' equal to something and run an event that way.
But lets say we did that ghost example.
Make the ghost an event that has one of the conditions in the upper left side checked. You can choose the variable you've chosen your stat in, and what value it needs to be equal to or greater than in order for the event to trigger.
To recap, Control variable and click Game Data to access the stats to store.
Set event's inherent requirement to be the stat and it's required value, via the variable you made.
Hope this helped ^^

Neat, thanks. Would it be possible to take it even further, say make the ghost appear on a certain threshold but not make the player be able to interact with it until yet another threshold is crossed. Or do you have to do two events in that case?
Yes, a conditional branch which works IF the variable you used earlier is X.
Nice!
I will be experimenting a bit with this during the weekend, then.
I will be experimenting a bit with this during the weekend, then.
you can actually set a blank page, then have page 2 be set to the variable also to make the thing completely invisible until said variable is reached.
You could do this either via if statements or event pages. The latter probably has more flexibility, since you could use graphics of the ghost at different transparencies and make it get more concrete as the player gets closer to being able to interact.
Original thread: https://forums.rpgmakerweb.com/threads/only-show-event-if-a-stat-is-high-enough.60119/