summaryrefslogtreecommitdiff
path: root/npc/008-1_Hurnscald_outskirts/andra.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-05 14:36:12 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-05 14:36:12 -0600
commit3657623f95258bd104b21921590c9f741121fb51 (patch)
treeff1e919d39918c4b4dcbb880a5e3bdae4bd7601c /npc/008-1_Hurnscald_outskirts/andra.txt
parent07b477de0392fe15c508f456fd2deb2c4e6c46e4 (diff)
downloadserverdata-3657623f95258bd104b21921590c9f741121fb51.tar.gz
serverdata-3657623f95258bd104b21921590c9f741121fb51.tar.bz2
serverdata-3657623f95258bd104b21921590c9f741121fb51.tar.xz
serverdata-3657623f95258bd104b21921590c9f741121fb51.zip
Add an NPC to test string and integer input
Only visible for 0.0.28 and above.
Diffstat (limited to 'npc/008-1_Hurnscald_outskirts/andra.txt')
-rw-r--r--npc/008-1_Hurnscald_outskirts/andra.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/npc/008-1_Hurnscald_outskirts/andra.txt b/npc/008-1_Hurnscald_outskirts/andra.txt
new file mode 100644
index 00000000..e56cbbf5
--- /dev/null
+++ b/npc/008-1_Hurnscald_outskirts/andra.txt
@@ -0,0 +1,24 @@
+//
+
+008-1.gat,36,26,0 script Andra 201,{
+ mes "[Andra]";
+ mes "\"Hello, my name is Andra, what's yours?\"";
+ next;
+ input @name$;
+
+ mes "[Andra]";
+ mes "\"Hello, " + @name$ + "! What is your favorite number?\"";
+ next;
+ input @num;
+
+ if (@num == 5) goto L_Same;
+
+ mes "[Andra]";
+ mes "\"I don't like that one.\"";
+ close;
+
+L_Same:
+ mes "[Andra]";
+ mes "\"Mine too!\"";
+ close;
+}