[Reusable] Dialog system

This thread contains content that may be reused, modified, or ported by anyone.

Lactozilla

Member
attachment.php

attachment.php


While questions are not needed to start a dialog, they can be written to execute a function (that can even be another dialog...)

Functions
P_InitiateDialog(player_t player, mobj npc, table lines)
Initiate a new dialog.

P_ResetDialogboxPositions(player_t player)
Reset dialog box positions to their initial position before drawing text.

P_NextDialogParagraph(player_t player)
Go to the next paragraph.

dialog.drawcount explanation
-1: sliding up
-2: sliding down
-3: end dialog
 

Attachments

  • kuchiyama_dialog1.png
    kuchiyama_dialog1.png
    38 KB · Views: 1,255
  • robohood-1.png
    robohood-1.png
    17.5 KB · Views: 1,163
  • ThoroughRegalLcont.gif
    ThoroughRegalLcont.gif
    183 KB · Views: 1,157
  • srb20031.gif
    srb20031.gif
    537 KB · Views: 3,933
  • srb20032.gif
    srb20032.gif
    1.2 MB · Views: 3,848
  • dialogsystem.zip
    11.5 KB · Views: 372
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Top