Modding Help Multiple Dialogues

Discussion in 'Mods' started by Dycedarger, Feb 23, 2017.

  1. Dycedarger

    Dycedarger Scruffy Nerf-Herder

    Anyone know how to make multiple dialogues one after the other. When I call Game1.drawObjectDialogue multiple times, only the last one is displayed.
     
    • Dycedarger

      Dycedarger Scruffy Nerf-Herder

      I was able to get multiple messages to display sequentially using Game1.multipleDialogues(string[]). Its odd though that the first message uses a full sized dialogue box and subsequent dialogue boxes are only the height of a single line. Any suggestions?
       
      • RTGOAT

        RTGOAT Cosmic Narwhal

        Could you put up an example of your code so I can better understand what you're trying to implement.
         
        • Dycedarger

          Dycedarger Scruffy Nerf-Herder

          Example:

          Code:
          public override void Entry(IModHelper helper){
             StardewModdingAPI.Events.SaveEvents.AfterSave += _Event;
          }
          
          public void _Event(Object sender, EventArgs e){
             string[] strings = new string[2];
             string[0] = "test1"; string[1] = "test2";
             StardewValley.Game1.multipleDialogues(strings);
          }
          
           
          • RTGOAT

            RTGOAT Cosmic Narwhal

            Dialogue strings in the game have escape characters that tell the dialogue box how to function.

            If this is a single message that you're trying to convey, try using a single string.

            If this is meant to be separate messages, you need a way to spread them out (some trigger) so they aren't overwriting each other.

            Hope this helps
             

            Share This Page