faction question

hello 😀 its me (again. posted another thread today. hope it is,nt against the rules to posting more than one per day 😛)
i have ANOTHER question. sorry xD. well is there a way to make a "faction" where if i do...say a quest or buy a item or somethin
then i get "Points" for that faction? and when i reach a specfic amount of points with the faction i reach a rank? and get items and
unlocks something. this probaly sounds bloody confusing and werid. but i don,t have any other way to describe it..
but can i do this with just events.. or do i need a plugin?? hope someone will answear.

and i have no clue where i need to post it..
Yeah. You can use a variable as like "faction points." You can create events that trigger the rank promotion or whatever you want when the variable reaches a certain value.
That is basic eventing - just a lot of it.
You define variables to hold the values for your different factions and then in all events that involved that faction you use control variable to change those values.

In fact this is one of the areas where a plugin would be a bad idea, because you'll need events to interact with the player.
The only function of a plugin here might be to create a screen for showing factions, but it would not be able to handle the values any better than control variable events.
The easiest way is to realize that all variables start at 0. So treat that as neutral to all factions. Then when you complete a quest you add points to the variable you designate for your variable for them (just go to control variables and name one of them, though I'd recommend not using 1 - 20 as plug-ins like to use those for their functions).

So easy way. Create the quest first. Then when it is done, in the same event where you show all of your stuff for the end of quest, add the event command control variables, select the variable you wish to use (name it here as well so you know which it is for later reference), select ADD, then enter the number of points you wish to add to that variable.

And if you wish to make it so doing that quest annoys another faction, you can do another event command with the same steps, but select SUBTRACT instead, which will take away that many points from the variable.

For ranks just treat certain levels of that variable as your rank. So if you go above 20 you are rank 1, above 40 you are rank 2, etc. This way you don't have to do two variables for the same thing.

Incidentally, you can do relationship systems this way as well. In fact, this is how I did it in my game when it still had a relationship system (I later scrapped it as it didn't fit my story in the end).
thanks for the help 😀

Original thread: https://forums.rpgmakerweb.com/threads/faction-question.93509/