Im extremely new to Rpgmaker, can anyone tell me how I can set up an event where a character interacts with an item and they gain skill points from it? I found out how to set up an event from a character interacting with an item but I dont know how to make the event affect anything like give a character a new skill or raise their level.
Event to give skill points to players?
RPG Maker MZ SupportIn the event command window you'll see on the first tab, under the "Actor" heading
[Change Parameter...]
There you'll be able to change actor's stats. Increase, decrease.
Since you're new I'll try to walk you through some event system tips and variable controls.
Say you have an NPC who asks "Who wants to level up?"
And then you show choices of the first 4 party members.
Instead of typing "Reid" you can use \p[1] to automatically use the name of the first party member.
When the player chooses a party member we'll store that selected member's Id to a variable.
There will be parameter choices following this in the event process. But I want to show you how to use labels. If the player chooses to cancel-out of the selection at this point you can set a label named "end" at the end of event command process, so [jump to label: "end"] will skip everything between and jump forward to the end of the event.
You can also use labels to jump back in the event process. If the player chose the 4th option and there is no 4th Member then you can jump back to the select beginning with a similar label "start".
[img]https://i.imgur.com/kmyqBnk.png[/img]
The next part continues under everything seen in this screenshot, but above the "end" label.
I'm going to assume that character has some kind of skill points save to a variable. Otherwise "Reid has no skill points". While playtesting you can press f9 to open up the debug screen and manually change the skill point variable.
I mentioned how you can use text control characters \p[1] to output party member 1's name, \n[1] will also list the name of Actor 01 from the database, and \v[1] to output the stored value of variable 1 (or any #).
Now, because we just stored the actor Id as a variable we can even use that variable's value inside the text control character like this "\n[\v[1]] has \v[3] skill points left."
You can list the parameters as [show choices], in this example I just focused on Atk.
Using [Input Number] will bring up a screen for the player to adjust the number value of a variable. Variables are always 0 by default, but if the variable has a different value stored then that'll be reflected on the number screen.
With [Conditional Branch...], you can make sure the player can't use more skill points than they have.
With [Control Variables...] you can subtract the player's input from the skill point variable.
And with [Change Parameter...] you can change the actor's parameter using the stored Actor Id variable, and the Number Input variable.
After this, you can copy and paste everything you did within the Atk Choice into the other parameter choices. Making slight changes to the message and which parameter that's being changed.
[img]https://i.imgur.com/d1GGqjB.png[/img]
Event system can get pretty lengthy, so you can use [Comment...] to create spaces and break it up into visible sections.
A recent updated added a new feature called "toggle skip".
Perhaps while playtesting you'd like to skip a section of showchoices and message boxes. You can highlight those event commands, right-click to open the context menu and select "Toggle skip". This will place everything between ◆skip and ◆:end, which will be ignored while playing. You just have to select it again and "Toggle skip" again to remove the ◆skip command.
[Change Parameter...]
There you'll be able to change actor's stats. Increase, decrease.
Since you're new I'll try to walk you through some event system tips and variable controls.
Say you have an NPC who asks "Who wants to level up?"
And then you show choices of the first 4 party members.
Instead of typing "Reid" you can use \p[1] to automatically use the name of the first party member.
When the player chooses a party member we'll store that selected member's Id to a variable.
There will be parameter choices following this in the event process. But I want to show you how to use labels. If the player chooses to cancel-out of the selection at this point you can set a label named "end" at the end of event command process, so [jump to label: "end"] will skip everything between and jump forward to the end of the event.
You can also use labels to jump back in the event process. If the player chose the 4th option and there is no 4th Member then you can jump back to the select beginning with a similar label "start".
[img]https://i.imgur.com/kmyqBnk.png[/img]
The next part continues under everything seen in this screenshot, but above the "end" label.
I'm going to assume that character has some kind of skill points save to a variable. Otherwise "Reid has no skill points". While playtesting you can press f9 to open up the debug screen and manually change the skill point variable.
I mentioned how you can use text control characters \p[1] to output party member 1's name, \n[1] will also list the name of Actor 01 from the database, and \v[1] to output the stored value of variable 1 (or any #).
Now, because we just stored the actor Id as a variable we can even use that variable's value inside the text control character like this "\n[\v[1]] has \v[3] skill points left."
You can list the parameters as [show choices], in this example I just focused on Atk.
Using [Input Number] will bring up a screen for the player to adjust the number value of a variable. Variables are always 0 by default, but if the variable has a different value stored then that'll be reflected on the number screen.
With [Conditional Branch...], you can make sure the player can't use more skill points than they have.
With [Control Variables...] you can subtract the player's input from the skill point variable.
And with [Change Parameter...] you can change the actor's parameter using the stored Actor Id variable, and the Number Input variable.
After this, you can copy and paste everything you did within the Atk Choice into the other parameter choices. Making slight changes to the message and which parameter that's being changed.
[img]https://i.imgur.com/d1GGqjB.png[/img]
Event system can get pretty lengthy, so you can use [Comment...] to create spaces and break it up into visible sections.
A recent updated added a new feature called "toggle skip".
Perhaps while playtesting you'd like to skip a section of showchoices and message boxes. You can highlight those event commands, right-click to open the context menu and select "Toggle skip". This will place everything between ◆skip and ◆:end, which will be ignored while playing. You just have to select it again and "Toggle skip" again to remove the ◆skip command.
Original thread: https://forums.rpgmakerweb.com/threads/event-to-give-skill-points-to-players.150183/