From 8418a0470400c2ca7a2240ead667db92b447767a Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 30 Nov 2016 13:03:03 -0500 Subject: add `goodbye2` terminator function --- npc/functions/goodbye.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt index 5aacf5a9..0f0a8294 100644 --- a/npc/functions/goodbye.txt +++ b/npc/functions/goodbye.txt @@ -131,3 +131,22 @@ function script goodbye { npctalk3 goodbye_msg(); bye getarg(0, -1); } + + + +// goodbye2 +// Waits for the player to press close, displays a canned message, +// ends execution. +// Can also display an emote + +function script goodbye2 { + .@emote = getarg(0, -1); + + close2; + npctalk3 goodbye_msg(); + + if (.@emote >= 0) + emotion .@emote; + + end; +} -- cgit v1.2.3-70-g09d2