KISS Faction System

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
Name: KISS Faction System


Author: Konora/AcerK


Description: I was inspired by the factions in the Elder Scrolls, EverQuest, etc., so I decided to take the idea of having different reputations with different factions (which could easily have been tracked with variables and events) and made it way more complicated than it should be. It looks nice, though.


Features:

  • Create an unlimited number of factions and track the player's reputation with each of them
  • Each faction can have its own icon
  • Show the player's reputation with a descriptive (changeable!) term (i.e. Good, Bad, Great, etc.)
  • Customize the vocab used in the scene
  • Show the player's reputation with a gauge

Screenshots:

faction window new.PNGfaction window new 3.PNGfaction window new 2.PNG



Some Important Things To Consider:

  • It's still a work in progress, so I'm still working out certain bugs. But it's still entirely functional!
  • You will need another file called Factions.json in your Data folder to store all the information about your factions. Follow this template:
[
null,
{
"ID": 1,
"Name": "Faction",
"Description": "This is a faction.",
"IconID": 64
},
{
"ID": 2,
"Name": "Other Faction",
"Description": "This is a faction with a \nslightly longer description.",
"IconID": 5
}
]


  • The cap for both positive and negative reputations is 50 (or -50). This will certainly change in the future, but just know that any value above or below 50/-50 will currently result in the reputation being displayed as "Neutral".
  • If no factions are discovered and you try to open the faction scene, the game will crash. This will be fixed in the future, but this is one of those aforementioned certain bugs I'm trying to squash.
  • This is my first script. Bear with me.



Enough Already! Give Me The Script!


Script: View attachment KISS_Factions.js
Demo: Link!
 
Last edited by a moderator:

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
Was looking forward to a script like this! Could you show a graphic of the reputation bar depleting/increasing in Yanfly's victory aftermath so the player knows how much rep they gained/lost each battle?
 

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
@moldy I hope so! I'm about to start working on the battle-related features, and the Victory Aftermath display is definitely a must.


Thanks for showing interest in the script!
 

LxCharon

I'm the best hyperbole writer in the world.
Veteran
Joined
Jun 17, 2014
Messages
137
Reaction score
139
First Language
English
Primarily Uses
RMMV
This script looks very useful! Good job! 
 

Ryzler

Princess in Distress
Veteran
Joined
Dec 15, 2016
Messages
84
Reaction score
129
First Language
English
Primarily Uses
RMMV
This is really good.

Are you able to make it so that you can either access the Factions from the menu or from a script call?
 

Attachments

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
This is really good.

Are you able to make it so that you can either access the Factions from the menu or from a script call?
If you want to use a script call, you can use SceneManager.push(Scene_Factions); and that should do the job just fine.
To be perfectly honest, I'm a little fuzzy on menu calls at the moment, so I'm gonna point you in the direction of Yanfly's Main Menu Manager. You can add any scenes you want to the menu screen with that plugin--he's got more detailed instructions on his page :)

Thanks for showing interest in the script!

Also, I apologize for not updating in forever! I've been really busy lately, so I don't know when I'll be able to actually work on it again. I hope you're all enjoying this semi-stable version, though!
 

?????

Developer??
Veteran
Joined
Aug 26, 2014
Messages
45
Reaction score
25
First Language
English
Primarily Uses
I never really planned to do anything like this, but seeing this plugin drives a bunch of new ideas.

It looks really good.
 

Mr.Chris

Veteran
Veteran
Joined
Oct 17, 2017
Messages
45
Reaction score
4
First Language
English
Primarily Uses
RMMV
where do i get the Factions.json file at ?
 

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
where do i get the Factions.json file at ?
You will need to create your own. I believe this can be achieved by creating a new file in a notepad program of your choosing, copying and pasting the template I've included, and saving it as a .json file instead of a .txt file.
Or, if that's too much work or if you don't have an editing program that will allow you to do so, you can get it from the demo file. It should be in the "data" folder.
 

Mr.Chris

Veteran
Veteran
Joined
Oct 17, 2017
Messages
45
Reaction score
4
First Language
English
Primarily Uses
RMMV
I figured that part out. I did what you said and got the demo to work. Customizing the factions is still confusing. But I did get the demo working which is nice.

I even added a "factions" tab to the menu screen. Using yanfly's main menu core. So when you click on factions in the menu, the faction screen comes up.

I do wish there was a slider after battle similar how exp gained. Thank you for this plugin!
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
I will be keeping an eye on this as it develops since my project is filled with several factions/relations etc.
What are the conditions on usage? I'm sure many myself included would like to know if this is free to use/commercial etc.
 

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
@Mr.Chris : Glad you got it working! And thank you for the feedback--I will try to make customizing factions a little more user-friendly in the future. And I'll add that slider, lol. Please note this plugin is still in its early stages and I haven't worked on it much since I first uploaded :p

@Skurge : You can use it for any project, even commercial! Just make sure to credit me, and I'd really appreciate it if you'd send me a link to your game when it's finished! Definitely not required, but I'd love to see how people are utilizing my code :)
 

Mr.Chris

Veteran
Veteran
Joined
Oct 17, 2017
Messages
45
Reaction score
4
First Language
English
Primarily Uses
RMMV
I very much appreciate this plugin! I didn't even think it existed so the fact that it does makes me happy by default haha.

I do wish there was a way to add and customize factions from this plugin directly without needing the .json file at all. But again not complaining, just wishing lol.

Maybe if you made a "faction aftermath" sequence similar to yanfly's battle aftermath plugin might be the way to go. So instead of just showing the status of the factions, we get a sequence that shows what our faction relationship was before and after. It can show the faction points slide up similar to exp. and then show the status after the points are added.

I would take a stab at doing this but I am brand new to all of this.

Again I know this is early stages but I'm just so excited to see how this develops. And of course I'll give you a copy of my game and proper credit! It would be the least I could do
 

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
I very much appreciate this plugin! I didn't even think it existed so the fact that it does makes me happy by default haha.
Haha, I'm with you there! I've been pining for a system like this since the early days of RPG Maker VX Ace, so when MV came out with Javascript support, I just HAD to take a stab at it! Surprised no one's tried to do it before me.

Maybe if you made a "faction aftermath" sequence similar to yanfly's battle aftermath plugin might be the way to go.
Ah, that's a great idea. I'll have to look at Yanfly's code so I can get an idea of how to tackle my sliders. Half of this plugin has been created by looking at other plugins by people who actually know how to use JS lmao

Thank you so much for your enthusiasm! I have to admit, I've been busy with school and writing a novel, so I've neglected RPG Maker quite a bit. But I think I'll get back into it pretty soon, since for some reason this plugin has been getting a lot of attention lol :)
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Could I suggest an upgraded relations function?
Such as the option to when becoming friends with one faction-you make enemies with another?

If possible-an addition to a location bracket so that players can understand where they may reside, do colour coding names work for this aswell?
 

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
Could I suggest an upgraded relations function?
Such as the option to when becoming friends with one faction-you make enemies with another?
Ah, sure, although this is already possible with, say, events (set a certain variable, then add to a faction by that variable and then subtract the enemy faction by the same variable). I do see the merits of being able to set up relationships rather quickly, so this is something I could implement. I was planning to have a "parent" system, where branches of factions could be related to each other (i.e. a town merchant faction being affected by the overall town faction), but that hasn't panned out yet. :p

If possible-an addition to a location bracket so that players can understand where they may reside, do colour coding names work for this aswell?
I could've sworn I had a location bracket before...wonder what I did with that. I think I worked around it by using the description as a location thingy, too. Perhaps it'd be better to allow users to add as many fields as they felt necessary to the scene, but I'm still learning, so that might take a while.

As for the color coding, it does not work as of right now, but it's one of my first priorities, since I had originally planned for color coding support since the very beginning of this plugin's conception. I *think* color coding might work in the description, but don't count on it lol.

Thank you for your suggestions!
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Oh yes there is that possiblity we could just manually handle the relations, but with the edition of an improved one built into the js all the better.
A location bracket I'm guessing would be a nice addition, some projects out there i'm sure have large/multible locations they would need clarity on them.

My main concern for a coloured text option is so that I can better identify what faction is associated with colour as my project uses turf colours to determine what they own. The icons is a very nice touch however :)
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Came across this error;


Basically I want a common event to call the 8 factions I have made into the data file for the faction screen but I don't understand the error message, this only shows up when I have the plugin turned on and no matter which order I have the plugin listed in also.
 

Attachments

AcerK

Muse of Ink
Member
Joined
Dec 20, 2012
Messages
19
Reaction score
16
First Language
English
Primarily Uses
Hmm...can I see your Factions.json file? I think the issue is that you have an extra bracket lying around in your data file--which is a common mistake, considering all the brackets involved, haha.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
The forum won't allow me to upload that file extension type, so I will have to just double check with what info you provided me :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top