Creation Kit : Dialogues avancés

De Wiwiki
Aller à la navigation Aller à la recherche
La version imprimable n’est plus prise en charge et peut comporter des erreurs de génération. Veuillez mettre à jour les signets de votre navigateur et utiliser à la place la fonction d’impression par défaut de celui-ci.

Résumé

Ce chapitre explore de nouvelles fonctionnalités dans le système de dialogue, offrant un plus grand contrôle sur ce qu'un personnage peut dire, notamment pendant un combat.

Vous apprendrez :

  • Ce que sont les sujets spéciaux (special topics)
  • Comment utiliser les reset timers
  • Comment créer des dialogues de combat
  • Comment créer un sujet bloquant (blocking topic)

Special Topics

Jusqu'ici nous n'avons écrit que des dialogues simples qui sont lancés par le joueur en parlant à un PNJ. C'est un point important, certes, mais pour avoir plus de réalisme et de vie dans le jeu, nous avons besoin d'écrire des dialogues d'ambiance, de combat, etc. (Vous pouvez maintenant lancer vos blagues sur les flèches dans les genoux.)

Si vous avez suivi le tutoriel sur les finitions, vous devez être un peu familier avec les topics spéciaux. Plutôt que d'être activés par le joueur, les topics spéciaux sont activés par le jeu suivant les évènements qui surviennent. Si vous jetez un oeil à l'onglet Misc dans la fenêtre de quête (où nous avons fait les dialogues Hello et Goodbye), vous pourrez voir tous les évènements généraux que nous avons.

Tous les dialogues liés à un sujet en particulier se trouvent dans une sorte de grande bassine. Quand le jeu décide qu'un personnage doit dire une phrase d'un dialogue, comme une salutation (Hello), il va d'abord chercher toutes les lignes de toutes les salutations définis dans les quêtes. Il prend toutes les lignes et les range par ordre de priorité de quête (donc une quête avec une priorité de 70 a toujours avoir ses lignes de dialogue choisies avant celles d'une quête avec une priorité de 50). Une fois cette pile géante créée, le jeu commence par le haut de la pile et passe ligne par ligne jusqu'à trouver la ligne dont les conditions sont toutes vraies et déclenche le dialogue.

Si il arrive à la fin de la liste sans qu'aucune ligne ne corresponde, le personnage ne dira rien.

Reset Timers and One-Time Lines

The game provides some simple functionality for making sure a single line doesn't get said too often. (Still making arrow in the knee jokes? Fine, take your time.)

Along the middle of the Info window, there's a series of checkboxes, pulldowns, and text fields.

Fichier:InfoCheckBoxes.png

Say Once

As you might guess, checking this box means that the line of dialogue will only ever be said once. After that, it will never be considered again. Obviously you want to be careful not to put any plot-crucial dialogue in a Say Once info, since the player might miss it. This is best used for lines that a character uses for introduction.

Hours until reset

Once this line has been said, it will be considered invalid until this many in-game hours have passed. This helps limit the repetition a bit, but keeps us from having to write substantially more dialogue. Note that this number cannot be longer than 24 hours; any longer duration entered will be reset to 24 hours by the Creation Kit.

Random

Imagine the case of a hello stack written for a particular actor -- we don't want them to constantly repeat it in the same order, since it would make them seem slightly robotic. So we can't just use reset timers to drive this behavior. Instead, we can mark these lines as Random, and the game will deliver all valid lines in an unpredictable order.

Of course, if these hellos are specific to a particular stage of a quest, we don't want to fall through to generic dialogue after they're exhausted. So we can mark a line at the bottom of the stack as "Random End" to keep the info selection system from dropping below this particular set.

If this is confusing, there's an example below.

How to Use All of This

Open up our venerable GSQ01 quest and navigate to its Misc tab. Open the GSQ01Hellos topic that we made earlier. You can note that we've set up Bendu to only ever say "I can't thank you enough for helping me" when we've completed the quest. That kind of makes him a little... silly. So let's let him vary it up.

First, open up the "I can't thank you..." info, and mark it as random, then give it a reset time of 0.5 hours. Close it, then right-click and select "Copy" to duplicate the line. Do this twice more, so we have a total of four lines. Edit the three new lines as follows:

  • "I can only imagine how thrilling the fight with that thief was!"
  • "A beautiful piece, isn't it? I'm thrilled to have it back."
  • "Oh, something else?"

Now open that last line and mark it as "Random End." Note that this line intentionally is a bit non-committal and uninteresting -- it signals to the player that this NPC doesn't really have anything else to say in the way of hellos. Now he will deliver the first three lines randomly, and when when they've been exhausted, he will only say the last line until the reset timers have completed.

Combat Lines

"Like the bite of a flea!"

There's also a "Combat" tab in the quest window, where topics for events related to combat live. You can construct these just like you would a Hello, and the game will spit them out using the same kind of logic. Reset timers, stacks, quest priorities, etc. all work the same way.

Creation Kit systems can seem a little indirected and complex at first, but once you understand them, they tend to apply across lots of contexts (as we're seeing with conditions and info stacks).

Other Dialogue Topics

By default, when we make a new topic in a Dialogue View, it's set as a "Top-Level" topic. This means that if its designated starting topic is valid, it will appear as a choice in the Actor's dialogue menu when the player first clicks on them.

Fichier:ConnectedDialogue.png

In this figure, the orange color of the topic border indicates that it's a top-level topic. Double click on the border to open the Dialogue Branch window. There are two other options:

  • Normal: This branch will not show up in the topic list unless it is explicitly linked from another branch. This can be useful for organizational purposes, or for branches which are triggered from ForceGreet packages.
  • Blocking: When the starting topic of a blocking branch qualifies, that is the only thing that actor will be able to talk about. The starting topic becomes their Hello, and the top-level choice list is replaced by whatever is connected from that starting topic.

Blocking topics are useful for contexts where a character has something very important to say and we don't want the player to have access to their normal dialogue topics until they hear this. (So make sure that you change something at the end of the branch to make the starting topic invalid!)

Blocking branches show up a kind of pale green in the editor.

Fichier:BlockingBranch.png