How to make a "leadership" level with no plugins_ Help

Hello all,

I'm new to the forums and I'm hoping someone here might help me figure this out. I'm trying to make the "luck" parameter for a character into a "leadership" parameter. I will use this parameter in my game to either allow or not allow a player to recruit NPC's based on the level of this parameter. Can someone offer guidance or a suggestion that can make this work, without me having to learn how to code? I want this parameter to be monitored throughout the game and on every map. I've thought of a few ways to do this but I'm not knowledgeable enough in RPG maker MV mechanics to finish thinking it through.
Very simple my friend, just do a conditional branch each time you want to check the players luck.
eg. if luck = > 10: recruit character.
Else: “Your leadership level is too low”

EDIT
My bad, you'll actually need to use the "script" command in the conditional branch. Put this in the script: $gameActors.actor(actorId).param[7]
Replace actorId with the id of your main character. Most likely 1.
My bad, you'll actually need to use the "script" command in the conditional branch. Put this in the script: $gameActors.actor(actorId).param[7]
Replace actorId with the id of your main character. Most likely 1.
You don't even need to do that! 😀 Control Variables -> Game Data -> Actor X's Luck will get you the same. Then just compare that variable to whatever amount of leadership is needed to recruit the NPC.
P.S. - There's no need to "monitor" this on every map; you just need to compare it whenever something in game requires a certain amount of leadership.
Thanks Wavelength. I forgot parameters could be stored in variables already by default.
Also, just a note based on the original post and title: using a plugin does not involve you learning how to code. In fact, that's the entire point of plugins, to provide code to other people for their use. The basic engine that RPG Maker uses for making a game is often referred to as "the default plugins."

There are zero reasons you should specifically ask to avoid plugins when trying to achieve something in your game.
You don't even need to do that! 😀 Control Variables -> Game Data -> Actor X's Luck will get you the same. Then just compare that variable to whatever amount of leadership is needed to recruit the NPC.
P.S. - There's no need to "monitor" this on every map; you just need to compare it whenever something in game requires a certain amount of leadership.
Hey wavelength,
Thanks for the help. Im pretty dumb when it comes to reading stuff, is there a way you can just submite screenshots of this process? Im getting lost on the "just compare that variable" part and do I need this stored as an invisible event or something?
Very simple my friend, just do a conditional branch each time you want to check the players luck.
eg. if luck = > 10: recruit character.
Else: “Your leadership level is too low”

EDIT
My bad, you'll actually need to use the "script" command in the conditional branch. Put this in the script: $gameActors.actor(actorId).param[7]
Replace actorId with the id of your main character. Most likely 1.
Thanks Rugman!
Im pretty amatuer with the mechanics, like I said. Can you show this through screenshots?
Why are you using the LUK parameter rather than just a variable to track it? Does LUK affect battles? Do you WANT this parameter to affect battles? If you have more than one party member, whose LUK variable do you want to use? Is it the leader, a specific party member?
Why are you using the LUK parameter rather than just a variable to track it? Does LUK affect battles? Do you WANT this parameter to affect battles?
Hey Shaz,

I don't need it to affect battles really, Im trying to actually replace the LUK parameter with Leadership (LDR), because I want the leadership level to scale when the player levels up. As the player levels, I want them to be able to recruit higher level NPC's who require a higher LDR score.
So you are not changing it yourself - you're just checking its value?

I added a couple of other questions while you were posting. Please go back to my previous post and answer those.

You don't need screenshots - just go to Control Variables, choose Game Data from the list, and in the next window choose Actor (select the actor you're interested in) then select LUK from the next dropdown list.

People COULD provide screenshots, but it's quite clear if you just go in and look.
So you are not changing it yourself - you're just checking its value?

I added a couple of other questions while you were posting. Please go back to my previous post and answer those.

You don't need screenshots - just go to Control Variables, choose Game Data from the list, and in the next window choose Actor (select the actor you're interested in) then select LUK from the next dropdown list.

People COULD provide screenshots, but it's quite clear if you just go in and look.
Shaz,

Yes, I want it to be autochecked when I try to recruit an NPC. And I only want the leadership ability to be checked for the main player of the party. no others.
If these instructions are confusing, my advice would be to continue with other aspects of your game that you do understand. After you become a bit more familiar with rpg maker, what your trying to achieve will be very easy.
I only want the leadership ability to be checked for the main player of the party.
Who is the "main player"? The leader can be changed around.

If you mean Actor 1 is the character you ALWAYS want to check, even if they are not the leader, then choose Actor 1 when setting the variable.

Go and try it, and if you have troubles come back and tell us where.
I've found the Control variable. However, it only sets it to the luck of the main actor. How do I have it check against a required level of leadership? Ive adjusted the luck to scale with the player but when I place an NPC on the map. How do I activate the variable to check the luck against the NPC's required leadership skill? I cant put together how to make the actual event occur to check the luck of theactor when I talk to an NPC.
You use Control Variables to get the LUK into a variable. Then you use Conditional Branch to check if that variable is high enough to recruit the NPC.
You use Control Variables to get the LUK into a variable. Then you use Conditional Branch to check if that variable is high enough to recruit the NPC.
Thank you, that worked! I've literally been trying to figure this out without asking for the past 6 hours.
So just to be clear, I added an invisible event on my map that changed leadership to the variable of my actor's luck. Then I made an NPC have a required number for that variable and it was done. My only question now is, do I have to add the "invisible event" to every map?
My only question now is, do I have to add the "invisible event" to every map?
From the description of what you're doing, you didn't need it on this map. Just make your "NPC" (which is just an event with graphics assigned) do it in their event, the line right before they check the variable. No need to have a second event.

It sounds like you really should do some basic tutorials on events to get some understanding down.





as examples.

(although, just to offer a differing opinion from Shaz...if the character's Leadership is always the same as their luck, I don't see the point in saving it in a variable)
.if the character's Leadership is always the same as their luck, I don't see the point in saving it in a variable


Because saving it into a variable is the only way to use it in a conditional branch, unless you resort to scripts. And given the level of knowledge/familiarity of the OP, I'd suggest avoiding scripts would be best for now.
Because saving it into a variable is the only way to use it in a conditional branch, unless you resort to scripts. And given the level of knowledge/familiarity of the OP, I'd suggest avoiding scripts would be best for now.
That's what I was figuring. I probably would've thrown them the script call like Rugman did above, but it's also a good choice to teach the way that can also be used in other situations without having to ask again.
Hey wavelength,
Thanks for the help. Im pretty dumb when it comes to reading stuff, is there a way you can just submite screenshots of this process? Im getting lost on the "just compare that variable" part and do I need this stored as an invisible event or something?
Example 1.png
Example 0.png
Example 2.png


That's everything you need to do, essentially. Definitely read up on the tutorials that people linked you to above, they will be helpful in learning and understanding how this all works.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-leadership-level-with-no-plugins_-help.135180/