Using Listed Items in Dialogue Say Modules

NodeCanvas Forums General Discussion Using Listed Items in Dialogue Say Modules

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11582
    taroku
    Participant

    Hi again! First, thanks for implementing my suggestion, it’s working better than I expected! 😀

    My new issue is about using variables in the Say modules in a dialogue tree. One of my primary directives when making games is that they’re to be more transgender-friendly (especially since I’m transgender myself, and this is unfortunately a fairly big issue), and one of the ways to help that is by improving how pronouns are handled in games. In practice, this can mean putting them into their own variables, by letting the user pick them separately from other things, and not assigning how they’re used based on other parameters such as body type, among other things. (Though this post is less about that, and more about using variables in dialogue trees.)

    In my first attempt, I decided to try a hopefully less messy approach by putting them into a neat little list of 5 items. However, while the other non-list variables got inserted into the dialogue without issue, I can’t figure out how to use listed items in the same way.

    I think I remember something about how lists don’t work with dialogue Say modules, but I couldn’t find any reference to it anywhere, so that’s why I’m seeking answers here. If this doesn’t work, then I guess I’ll have to try assigning each pronoun into its own string variable, which might not be as easy to organize.

    P.S: I’m just using pronouns as one possible example, as it was the first thing that popped to mind, and also because it’s worth sharing this kind of knowledge in general, so people have an easier time understanding how easy something like this can be to implement, and how much it can seriously help, as long as you plan for it beforehand. What I’m asking could potentially be used for other things too, like a character mentioning an item they have in their inventory.

    #11583
    Gavalakis
    Keymaster

    Hello again! 🙂

    Are you referring to an ability of using variables in Say dialogue text but read from within a List variable?
    So for example to be possible to do something like this:
    “[myListVar(3)]”, where (3) is the element index to read from?

    Let me know if that is the case.
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #11584
    taroku
    Participant

    Yes, that’s what I’m referring to 🙂 My apologies if I wasn’t being clear, a lot has been on my mind, and it’s getting in the way of my ability to work.

    I’m mostly curious if that’s already possible in NodeCanvas, and if I’ve just been overlooking it so far. Like I tried to say before, it’s related to how I could keep a group of closely-related variables organized within the blackboard. Your tool here is a bit different to work with than regular scripting ^_^;;

    #11586
    Gavalakis
    Keymaster

    Hello again,

    No problem at all!
    Unfortunately this (indexing List variables) is not possible right now for dialogue texts.
    I will take a look at implementing this in a later version though since it certainly seems useful 🙂

    Thanks for your suggestion.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.