lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
Friendship Romance System (FRS)
v1.3 (by LordValinar)

Introduction
Introduces a more in-depth relation system between actors (and events!)

New - Latest Update (v1.31 - Sep 24 2021):
  • Hotfix #3:
    -> Moved code that adds Relations to menu to only appear if dev is not using VisuMZ MainMenuCore
    -> Also added conditionals so that the Relations scene is only active if the selected actor has relations to show (same goes for the inMenu switching : no relations, will pop back to main menu)
    -> Added option in plugin parameters (if ON : entering Relations menu automatically loads up the party leader, skipping actor selection) per request (available in both FRS versions).
  • Added an alternative version (1.3) to include both friendship + romance bar simultaneously
  • Hotfix #2: Another syntax error.. whoops
  • Hotfix #1: A few syntax errors when running the plugin commands to change relations
  • Added formula arguments for actor IDs - now you can retrieve a variable as an actor ID: v[#]
    or get the indexed actor's ID: a[1] = party leader, a[3] = 3rd actor, etc

FEATURES:
  • Notetags(Actors, Skills, Items): Assign notetags that can:
    • Set initial friendship/romance levels upon the starting party composition
    • Add friendship between party after every battle
    • Checks if current friendship/romance level is above a certain threshold -> adds a state or learns a skill (as applicable), or if the level is below the threshold -> removes state or forgets a skill.
    • One-Time common events, switch flips (true or false), or variable adjustment based on certain friendship/romance level >= the threshold. Plugin command available to remove the DoOnce flag.
    • Skill Notetag (can increase friendship/romance with a certain actor (or the target themselves!)
    • Item Notetag (can increase friendship/romance between user[party leader] and target ally)
  • Custom "Relations" menu displaying all available friends/romanced actors (and NPCs!) (see below for compatability with VisuStella's Main Menu Core)
    • This menu displays the actor/NPC graphic, name, relation bar (green = friendship; reddish = romanced) + Icon if "engaged/married/lovers/significant other", and then up 5 state icons representing any buffs applied.
  • You can befriend/romance NPCs, however you cannot switch to them in the relations menu (You will get a buzzer), but you can still get all the buffs as you would with an actor (conditionals are setup via the plugin command or script call - if you want any).
  • Plugin command to save a relation value to a variable, so can use with message boxes.
PLUGIN PARAMETERS:
  • Minimum relations level (default 0): Lowest value to check for/set
  • Maximum relations level (default 100): Highest value to check/set
  • "Engaged" icon ID (default 84): When lovers/married/etc, this icon will appear in the Relations menu
  • "Engaged" minimum (default 90): The romance value must be greater than or equal to this value to be considered "engaged/married/lovers/etc".
  • "Engaged" state ID (default 0): If you want your lovers to get a buff while in the same party, the state with this ID will be applied to both (or all if multiple lovers). If one leaves the party, all lose the buff.
  • New Member Friendship (default 0): When you gain a new member, the current party gains this much friendship with them.
  • New Member Befriends Party (default false): If the 'new member friendship' value is > 0 and this is 'true' then the new member will also add everyone in the party to their friends list.
  • Prefix (string -> '' default '(npc)'): If you want to separate your NPC names in the Relations list, this prefix will be added before the event name. Can combine with Postfix.
  • Postfix (string -> '' default blank): If you want to separate your NPC names in the Relations list, this postfix will be added after the event name. Can combine with Prefix.
  • Relation Window Text (string -> '' default 'Relations:'): This is the text that appears in the header box, displaying which is the current actor's friends list. Just added for user customization.
  • Customize the gradient fill for the friend/romance bars. Does use HEX code (so a simple google search- or leaving it alone- will help the dev out if they don't want to use the standards)
VS Menu Core Compatability:
1) Open up VisuMZ_1_MainMenuCore plugin settings
2) Open the Command Window List
3) Open up a new command on the last line
4) Go to the "Text" tab and REPLACE (meaning delete -> then paste new text) with the text:
Code:
{"Symbol:str":"relations","Icon:num":"84","TextStr:str":"","TextJS:func":"\"return 'Relations';\"","ShowJS:func":"\"return true;\"","EnableJS:func":"\"return this.areRelationsEnabled();\"","ExtJS:func":"\"return null;\"","CallHandlerJS:func":"\"SceneManager._scene.commandPersonal();\"","PersonalHandlerJS:func":"\"SceneManager.push(Scene_Relations);\""}

Alternatively you can set it up manually:
* Symbol: relations
* Icon: 84 (or whatever you choose)
* STR: Text
* JS: Text return 'Relations';
* JS: Show return true;
* JS: Enable return this.areRelationsEnabled();
* JS: Ext return null;
* JS: Run Code SceneManager._scene.commandPersonal();
* JS: Personal Code SceneManager.push(Scene_Relations);

relation_scene.png

How to Use:
Place into your project's js\plugins\.. folder, and activate in the plugin manager. Set your parameters to how you want the values to be (such as automatically adding friendship when adding a new member? Or you can control it manually in the event).

Plugin Commands / Script Calls:
Explained in detail in the plugin, but the TLDR:
  • Change Relations (friendship or romance, by value towards target actor or event
  • Delete DoOnce Flag (allows you to re-run a one-time event from a relation change)
  • Save To Var (saves current friendship or romance data to a variable)

Download: Github (download)
Alternate(Both bars) (download)

Terms and Credits:
Free to use and modify for commercial and noncommercial games, with credit.
Do NOT remove my name from the Author of this plugin
Do NOT reupload this plugin (modified or otherwise) anywhere other than these forums (RPG Maker Web.com)
 

Attachments

  • LvMZ_FRS.js
    58.1 KB · Views: 172
  • LvMZ_FRS_Alt.js
    58.2 KB · Views: 122
Last edited:

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
Is there something wrong because I got Unexpected token '=' error?
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
Is there something wrong because I got Unexpected token '=' error?
Can you post a screenshot of the console log? And explain what you were doing or when this error happens?
 

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
I was just starting a new game also I can't acces the console for some reason
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
Strange. Do you have other plugins running? Mine does not crash on new game. Also try F12 - I find it helpful with opening the console on certain errors that normally prevent you from doing so.
 

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
Several VS plugins and Testus's quest plugin right now that I'm using.
 

Warilized

Random Encounter
Regular
Joined
Mar 19, 2018
Messages
80
Reaction score
20
First Language
Indonesia
Primarily Uses
RMMV
Whoa nice i've been looking for this system for a long time... For MV :rtear:

Well, if i bought MZ I'll try this.
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
About the error, I just did check using console and it still said "=" error thing @lordvalinar
 

DeusEsca

Warper
Member
Joined
Jun 22, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Got it to work(had unexpected ; @ line 735
Changed:
JavaScript:
const actor      = (actorId > 0) ? $gameActors.actor(actorId) || $gameParty.leader();
to:
Code:
const actor      = (actorId > 0) ? $gameActors.actor(actorId) : $gameParty.leader();
also removed line 1587 to get rid of the Menu(Using the VS menu method):
Code:
this.addRelationsCommand();
With this line I get 2 Buttons, the second one(VS one) crashed the game with a "scene_releations not declared" error if first Button is not removed(which I had to anyway since I only need one xD)

Version is 1.1 I Think
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
About the error, I just did check using console and it still said "=" error thing @lordvalinar
Well that doesn't exactly help us understand what the actual issue is :p Can you take a screenshot and post it here?
 

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
On that screen, press F12 -> Should open the console. I need a screenshot of the console.
 

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
lmao this is embarrassing. :rswt
1624535383804.png
 

SilverR

Villager
Member
Joined
Mar 6, 2021
Messages
16
Reaction score
5
First Language
Chinese
Primarily Uses
RMMZ
Hi, I create a new project, but it also have some problem(SyntaxError: Unexpected token ';')
I only use the plugin of visustella CoreEngine and MainmenuCore.
The console looks like this. Hope to be solved :)$D4%R$}EK{7TF~7`XW4U1SM.png
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
Alright yeah that was my mistake. Was trying out some ES6 syntax, and was an error on that - so changed it back, but forgot some stuff. Both github and main page updated with v1.2 now (sorry about that!)
 

Jrrkein

Drago Royale
Regular
Joined
Apr 20, 2014
Messages
341
Reaction score
150
First Language
Indonesian
Primarily Uses
RMMZ
Er :kaosigh: You sure you patched this up, because It keeps giving me a looped error again
1624570940174.png
 

lordvalinar

Lord of the Damned
Regular
Joined
Mar 31, 2013
Messages
344
Reaction score
210
First Language
English
Primarily Uses
RMMZ
Er :kaosigh: You sure you patched this up, because It keeps giving me a looped error again
View attachment 193318
Alright so I think I know what's happening. I tried using some newer ES6 syntax (and it works just fine on my end... but doesn't seem to be as friendly to others..?) It was worth a try I guess... alright wait like 2-5 minutes, should be re-uploaded (and fixed... for good this time I hope) lol
 

Latest Threads

Latest Posts

Latest Profile Posts

I decided that for the video game i will work next year i will use characters from my TCG as main characters for the RPGMAKER game, so expand the universe, that will be a cool :CoOoOL: Here some of my characters :

Ah also yes I'm accepting commission in case tat you ask for haha.
Some people shouldn't be parents. Someone put their toddler in the hallway of the apartment building I live in at 11 p.m.... and let her wander. The heck is wrong with people?!
Twitch! Strean is currently live with some more gamedev! Feel free to drop by~
If you need some maps done, but don't like mapping or just want to focus on other areas of your gamedev, my workshop is alway open! Hit me up!
Someone leaked the GTA VI trailer, so Rockstar just put it out today. Let the hype period truly begin!!!

Forum statistics

Threads
136,756
Messages
1,269,594
Members
180,505
Latest member
rpplayer158
Top