diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 20:10:59 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 20:10:59 +0000 |
commit | 8b6b751ab16c212078dbebc15c7250cad16c4d8d (patch) | |
tree | 5e124ab3cc2bbcf3c0ff60a379effc56222a42a0 /data | |
parent | 015d9180fb6e9024229dfeded26cf9c3553e36d8 (diff) | |
download | manaserv-8b6b751ab16c212078dbebc15c7250cad16c4d8d.tar.gz manaserv-8b6b751ab16c212078dbebc15c7250cad16c4d8d.tar.bz2 manaserv-8b6b751ab16c212078dbebc15c7250cad16c4d8d.tar.xz manaserv-8b6b751ab16c212078dbebc15c7250cad16c4d8d.zip |
Converted testing NPC to Lua.
Diffstat (limited to 'data')
-rw-r--r-- | data/test.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/data/test.lua b/data/test.lua new file mode 100644 index 00000000..2c756165 --- /dev/null +++ b/data/test.lua @@ -0,0 +1,24 @@ +function npc_start(npc, ch) + tmw.msg_npc_message(npc, ch, "What do you want?") + return 0 +end + +function npc_next(npc, ch) + tmw.msg_npc_choice(npc, ch, "Guns! Lots of guns!:Nothing") + return 0 +end + +function npc_choose(npc, ch, v) + if v == 1 then + tmw.msg_npc_message(npc, ch, "Sorry, this is a heroic-fantasy game, I do not have any gun.") + end + return 0 +end + +function npc_update(npc) + return 0 +end + +function update() + return 0 +end |