Hey all. So I recently had a major win with my game in terms of implementing a character creation system (yippee) and figured I would ride this high and try and get another step closer to making my dream game.
That being said, I know I am nowhere near skilled enough In Javascript yet to do this part myself.
In my game, I was wanting to implement a dialogue system where the relationship points you build with an NPC are specific ONLY to that NPC, and are handled completely from within the script with that NPC
To illustrate
Say in normal RPG Maker MV. You can create a variable called relationship with NPC 1, then within the conversation with NPC 1 you can add or subtract a value from relationship with NPC 1, and then call on where that value is sitting in order to make certain things happen.
The problem I have with this default system is if one town has like 40 -50 NPC's then that's like 40 -50 variables, which over time along with everything else can take up a lot of space.
Honestly, I read somewhere that "if you're using that many variables you're not making use of Javascript properly" and if that is the case then yeah, I am definitely not using it properly.
So in my head, an alternative would be some sort of script or infrastructure that I can just throw on an NPC that will count and subtract points all within itself, and potentially be called again later.
So say I was to talk to NPC 1 and get to +10 points, NPC 2 and get to - 4 points and then NPC 3 and get to 5 points.
This Javascript I am looking for would keep that all separate from RPG Maker MV's actual variables. Running the script only from the NPC's I am interacting with.
Sorry if this does not make much sense, as I write this I'm discovering how hard it is to explain.
That being said, I know I am nowhere near skilled enough In Javascript yet to do this part myself.
In my game, I was wanting to implement a dialogue system where the relationship points you build with an NPC are specific ONLY to that NPC, and are handled completely from within the script with that NPC
To illustrate
Say in normal RPG Maker MV. You can create a variable called relationship with NPC 1, then within the conversation with NPC 1 you can add or subtract a value from relationship with NPC 1, and then call on where that value is sitting in order to make certain things happen.
The problem I have with this default system is if one town has like 40 -50 NPC's then that's like 40 -50 variables, which over time along with everything else can take up a lot of space.
Honestly, I read somewhere that "if you're using that many variables you're not making use of Javascript properly" and if that is the case then yeah, I am definitely not using it properly.
So in my head, an alternative would be some sort of script or infrastructure that I can just throw on an NPC that will count and subtract points all within itself, and potentially be called again later.
So say I was to talk to NPC 1 and get to +10 points, NPC 2 and get to - 4 points and then NPC 3 and get to 5 points.
This Javascript I am looking for would keep that all separate from RPG Maker MV's actual variables. Running the script only from the NPC's I am interacting with.
Sorry if this does not make much sense, as I write this I'm discovering how hard it is to explain.