🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Exits & Endings for Dialog

A topic by masterminer176 created Dec 31, 2017 Views: 292 Replies: 4
Viewing posts 1 to 5
(+5)

I think it'd be neat if you could make it so a dialog could make an exit or ending on a conditional, like for example:

A bed
{
  - Fatigue <= 5 ?
    I should probably sleep now... {exitRoom:Sleeping 10,5}
  - else ?
    I don't feel tired yet.
}
(+1)

Yes, I would love that feature. Also I would like a feature that activates or deactivates an exit depending on the user owning an item. For example an exit that goes inside a house could activate only if the user has a key in their inventory.

(+2)

Agreed!

(Edited 1 time) (+1)

I hacked a dialog exit function into my Midnight Jam entry. My function call format in dialog looks a lot like masterminer's example:

{exit "FrontDesk,8,3"}

In the editor, I noticed you have to put the exit call in the dialog box on the sprite panel, not in the separate dialog window. The dialog window re-parses the game data when you make changes, and unrecognized functions get stripped out and replaced with {}.

Here's the mod. It's pretty easy to bolt in.

I'd like to see conditionals on more elements in the engine, too. Maybe exits and sprites could follow the values of variables to decide whether they're active or visible.

(+1)

I would second this too... that way the avatar can perish or complete the game depending on conditionals