diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-11-30 13:03:03 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-03 11:53:10 -0500 |
commit | 8418a0470400c2ca7a2240ead667db92b447767a (patch) | |
tree | 802ead0ee51ea23e3caedcb13c928a1d3d8f33e9 | |
parent | 625b02aceff13f15793d031cf615ab3580714782 (diff) | |
download | serverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.gz serverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.bz2 serverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.xz serverdata-8418a0470400c2ca7a2240ead667db92b447767a.zip |
add `goodbye2` terminator function
-rw-r--r-- | npc/functions/goodbye.txt | 19 |
1 files changed, 19 insertions, 0 deletions
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; +} |