Jimmy456

Warper
Member
Joined
Apr 15, 2019
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMMV
Howdy! First post to the forum, but I have a bit of experience with MV. Not too much since I'm posting here though. I'm trying to create a speech system or social skill system for my game. Think of the dialogue options in Fallout, it's very similar to that, meaning if the player has a skill (Its actually an armor piece that has no visible effect and can be swapped out) such as "sympathy" they would have the option for sympathetic dialogue options. What I'm setting it as is if the armor is equipped, the player gets the dialogue option.

The problem I'm running into is that I want the player to have access to multiple dialogue options, or have multiple social skills equipped at once. If I do this however it makes it so NPC's don't respond since they don't know which event to prioritize (if the player has "sympathy", and another item such as "evil" equipped, both dialogue options won't show up. Instead the NPC will not respond). What am I doing wrong, and what would be a better way to do it?
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,708
Reaction score
1,779
First Language
Spanish
Primarily Uses
RMVXA
I don't believe this would require a plugin, however, adding and showing the lines as dialogue choices would have to be done manually.
it'd be half evented, half scripted, but the core logic should be doable through eventing.

basically, you do all the checks by eventing, and save all the lines to variables, and when it comes to showing the lines you call the same function as the interpreter and pass it those variables as parameters.
you can't pass down variables to the choice window through the GUI tool, so *that* part has to be coded manually.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,523
Reaction score
2,650
First Language
EN
Primarily Uses
RMMZ
I think what I'd do here is set up all the choices in one block and enable/disable them with a plugin as needed. There are various options for plugins:
The first two require some setup before your choices to determine which choices are visible, e.g. with Yanfly's plugins:
Code:
◆Plugin Command:ClearHiddenChoices
◆If:Harold is affected by Sleep
  ◆Plugin Command:HideChoice 1
  ◆Plugin Command:HideChoice 2
  ◆
:Else
  ◆Plugin Command:HideChoice 3
  ◆
:End
◆Show Choices:Greetings! I'm Harold!, Uh, hi. What is this place?, Zzzz... (Window, Right, #1, #2)
:When Greetings! I'm Harold! 
  ◆
:When Uh, hi. What is this place? 
  ◆
:When Zzzz... 
  ◆
:End
Large Choices/Ext Msg Pack merge consecutive choice commands into one block so you can have more than 6 choices per block (I imagine that'll be necessary at some point). :)
 

CalebW

Veteran
Veteran
Joined
Feb 16, 2019
Messages
147
Reaction score
60
First Language
English
Primarily Uses
RMMV
Based on your question you want to show multiple branches within one choice if the player has the required items?

It would probably look like this :

If player has item A + item B + item C Set variable of "choices" to 1
If Variable "choices = 1"
Show Choices = Sympthany Dialouge Harsh Dialouge Cute Dialouge
Within these show choices
Sympthany dialouge:
Choice A / Choice B / Choice C

So basically set a variable that checks every item of the player you want equipped, then nest choices within choices. That way the character will always have access to those choices as long as the variable is set. If a new item is equiped or an item is lost make sure the variable gets changed.

Hope this helps.
 

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,834
Reaction score
2,363
First Language
English
Primarily Uses
RMMZ
Hey @Jimmy456,

I think the others did well in covering ideas that will help you with your particular problem. I'd like to throw out a different idea that maybe you want to try, though.

I made a plugin called Talent Core that would easily allow you to add personality traits to your characters as opposed to the more D&D-like skills. Instead of limiting the available options, you could give the player all of the relevant ones but success or failure would depend on how adept they are at the given social skill. If they are best at sensitivity then the sensitive option would have the greatest chance for success. If sensitivity isn't an option for this encounter then they're more out of their element and have to fall back on one of their lesser attributes.

You could also go the other direction and have the player build their personality up based on the choices they make which could effect the game in others ways.

Just an idea that I think would be cool.

Take care and good luck with your game.
 

CalebW

Veteran
Veteran
Joined
Feb 16, 2019
Messages
147
Reaction score
60
First Language
English
Primarily Uses
RMMV
Hey @Jimmy456,

I think the others did well in covering ideas that will help you with your particular problem. I'd like to throw out a different idea that maybe you want to try, though.

I made a plugin called Talent Core that would easily allow you to add personality traits to your characters as opposed to the more D&D-like skills. Instead of limiting the available options, you could give the player all of the relevant ones but success or failure would depend on how adept they are at the given social skill. If they are best at sensitivity then the sensitive option would have the greatest chance for success. If sensitivity isn't an option for this encounter then they're more out of their element and have to fall back on one of their lesser attributes.

You could also go the other direction and have the player build their personality up based on the choices they make which could effect the game in others ways.

Just an idea that I think would be cool.

Take care and good luck with your game.
This is awesome.
 

Latest Threads

Latest Posts

Latest Profile Posts

Unfortunately, while trying to run an app I needed (curse you, Adobe!), my laptop blacked out, so my data got wiped when I got it repaired. Stuff like facesets are saved in my drive, but my sprites now only exist as screenshots I've taken in the past :kaocry:To be fair, I'm a little relieved, since I've been feeling unsatisfied with the visual style of the character sprites, and I guess I can now revamp them?

after lot's of edits to Mike's attacks (to make it seamless with movement, no EX versions, cost 1-ups), I finally got combo skills to work. had to do a lot moving tho to get the combo list to appear where it is lol. that actually took longer than setting up the moves.
What's kind of amazing is I've been in a developmental rut for the LONGEST time but putting a music mix on of video game soundtracks and specifically hearing the VX Ace music come up and it's nostalgia of me being excited to make my first game has REALLY got me going again!
Finally finished my tiefling!
F222514F-9F32-4B97-88C3-664E8A2134C3.gif

Forum statistics

Threads
122,029
Messages
1,145,962
Members
160,291
Latest member
arnvrl
Top