diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-12-03 12:47:55 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-13 14:41:54 -0500 |
commit | ecc2bfea7c05281bf40a6a08e353e5918d375f35 (patch) | |
tree | 352aa3cbfa0eade2fc7a3cfcdd262001ec7bb0d3 /npc/001-2-4 | |
parent | b4935b2f81ff9e8903dd89228ff97fc03b584c73 (diff) | |
download | serverdata-ecc2bfea7c05281bf40a6a08e353e5918d375f35.tar.gz serverdata-ecc2bfea7c05281bf40a6a08e353e5918d375f35.tar.bz2 serverdata-ecc2bfea7c05281bf40a6a08e353e5918d375f35.tar.xz serverdata-ecc2bfea7c05281bf40a6a08e353e5918d375f35.zip |
put the game rules in a function, make notes call that function, add `@rules` command
add `The Book of Laws`, give it whenever the player does not have it
Diffstat (limited to 'npc/001-2-4')
-rw-r--r-- | npc/001-2-4/_import.txt | 1 | ||||
-rw-r--r-- | npc/001-2-4/books.txt | 15 | ||||
-rw-r--r-- | npc/001-2-4/robin.txt | 50 |
3 files changed, 33 insertions, 33 deletions
diff --git a/npc/001-2-4/_import.txt b/npc/001-2-4/_import.txt index 14bf4c53..70c629cc 100644 --- a/npc/001-2-4/_import.txt +++ b/npc/001-2-4/_import.txt @@ -1,6 +1,7 @@ // Map 001-2-4: Library // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/001-2-4/_warps.txt", +"npc/001-2-4/books.txt", "npc/001-2-4/mapflags.txt", "npc/001-2-4/robin.txt", "npc/001-2-4/terry.txt", diff --git a/npc/001-2-4/books.txt b/npc/001-2-4/books.txt new file mode 100644 index 00000000..068bfe2a --- /dev/null +++ b/npc/001-2-4/books.txt @@ -0,0 +1,15 @@ +// Evol scripts. +// Authors: +// gumi +// Description: +// moar books + +001-2-4,28,29,0 script #001-2-4-Book1 NPC_NO_SPRITE,{ + + doevent "@rules::OnShelfUse"; + close; + +OnInit: + .sex = G_OTHER; + .distance = 1; +} diff --git a/npc/001-2-4/robin.txt b/npc/001-2-4/robin.txt index 8e085d45..6e1bed60 100644 --- a/npc/001-2-4/robin.txt +++ b/npc/001-2-4/robin.txt @@ -25,50 +25,34 @@ return; } - function mythologise_people - { - npctalkonce l("In Artis they really do mythologise people when they die."); - - return; - } - - function no_matter_what - { - npctalkonce l("No matter what people tell you, words and ideas can change the world."); - - return; - } - - function outside_inside - { - npctalkonce l("What counts in a book is like so many things, not what is on the outside, but what is on the inside."); - return; - } - - function kaizei_manuscripts - { - npctalkonce l("An explorer left behind some incomplete manuscripts about the people and dangers in the land of Kaizei."); - - return; - } - - switch (rand(5)) + switch (rand(6)) { case 0: - no_matter_what(); + npctalkonce l("No matter what people tell you, words and ideas can change the world."); break; case 1: - mythologise_people(); + npctalkonce l("In Artis they really do mythologize people when they die."); break; case 2: - outside_inside(); + npctalkonce l("What counts in a book is like so many things, not what is on the outside, but what is on the inside."); break; case 3: - kaizei_manuscripts(); + npctalkonce l("An explorer left behind some incomplete manuscripts about the people and dangers in the land of Kaizei."); break; case 4: - need_help(); + speech 4, + l("Ow-oh!"), + l("Introduce yourself instead of poking me around. I almost fell from the lader, savage..."); + + setcamnpc "#001-2-4-Book1"; + + speech 8, + l("Go have a look at that shelf to my right, would you?"), + l("You clearly need to be more public-spirited."); + break; + default: + need_help; break; } |