So, as an experiment I am currently making a prototype level-up system for a game I'll be making down the road. The basic premise is this:
There are items with a certain level value. Example: LVL 5 Soul shard. If the player is level 5 or lower, he/she can then use it to up any one of their stats by a certain amount. Otherwise, the shard does nothing. Every time one of these shards is used, it increases the characters Level by 1. I've been dabbling in this, but I am having a hard time figuring out how to make it work.
Any ideas? Thanks in advance to any and all answers.
Make the parameter curves constant starting value through all levels
Have the items call a common event (one event per level if you can have that many different common events - if not it'll be more complex to have one event detect the item level)
In the common event, first check the item level against the actor level (control variable and conditional branch) - abort if higher actor level
then use show choice to allow the player to select the parameter to increase and improve that specific parameter.
It will be more complex if you have more than one actor, but will work in the same way (just needs more conditional branches and a target check)
I am planning on having multiple actors. Also, how can i set it to detect the item level if I have level spikes? My progression is: 5, 10, 20, 30, 50, 60, 80, 99, if that helps.
On a related note, how many common events am I allowed to have at max?
EDIT: Also, how do I do this target check thing? That's kind of confusing me. I grasp everything else you said, but I don't get how to do a target check.
Common events don't receive data from the game by default, especially not when called by an item. There are several ways to solve this problem by using either the damage formula or the effects to provide data into the common event.
Transfering numbers can be done by placing a command on a variable in the damage formula, something like
$game_variables[27]=20;0This will place the number 20 into the game variable number 27.The ;0 is needed to make sure that the 20 doen's count as damage - you can replace the zero with other numbers if the item should have an effect in addition to the common event.
Getting the selected actor for the item is a bit more work.
1) Create an invisible state "target" (no icon on the state, no messages etc)
2) Apply the state to the item target as an effect
3) in the common event, for each actor use conditional branch to check if that actor has the target state - if yes do the intended commands on that actor and remove the target state.
yes, that means you'll have to copy the event commands for each actor into the corresponding conditional branch