summaryrefslogtreecommitdiff
path: root/npc/functions/openbook.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
commit20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch)
tree4ad4a8bb8b0605473a702e314799a4626347721a /npc/functions/openbook.txt
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/functions/openbook.txt')
-rw-r--r--npc/functions/openbook.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/npc/functions/openbook.txt b/npc/functions/openbook.txt
new file mode 100644
index 000000000..0278415ce
--- /dev/null
+++ b/npc/functions/openbook.txt
@@ -0,0 +1,36 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Narrator dialogue to show the selected book.
+// Variables:
+// @book_name$ = The name of the book to read.
+
+function script openbook {
+ .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\"";
+
+ narrator S_LAST_NEXT,
+ l("You open a book named @@.", .@book_name$),
+ l("Do you want to read it?");
+
+ return (select("Yes.", "No.") == 1);
+}
+
+function script openbookshelf {
+ .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\"";
+
+ narrator S_LAST_NEXT,
+ l("You see a dust covered book on the shelf..."),
+ l("The name of the book is @@.", .@book_name$),
+ l("Do you want to read it?");
+
+ return (select("Yes.", "No.") == 1);
+}
+
+function script openoldbook {
+ narrator S_LAST_NEXT,
+ l("You open the book, but it looks like the sea water and time damaged it severely. Some pages are not readable anymore. Some others are simply missing."),
+ l("The old book seems to tell about the legend of Aemil. Would you like to read it?");
+
+ return (select("Yes.", "No.") == 1);
+}