diff options
author | Reid <reidyaro@gmail.com> | 2016-11-15 11:06:10 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-11-15 11:06:10 +0100 |
commit | 617fdebfb1b25a4da72a71e018d68cc403fba620 (patch) | |
tree | 1d9f0cc84a42226ab37d22b6f53322d99046f77e /server/sample | |
parent | 85effe5f2c6af34c7b5d6e0575b96e8ef255f836 (diff) | |
download | docs-617fdebfb1b25a4da72a71e018d68cc403fba620.tar.gz docs-617fdebfb1b25a4da72a71e018d68cc403fba620.tar.bz2 docs-617fdebfb1b25a4da72a71e018d68cc403fba620.tar.xz docs-617fdebfb1b25a4da72a71e018d68cc403fba620.zip |
Add a generic NPC template for NPCs with multiple random sentences.s20161213
Diffstat (limited to 'server/sample')
-rw-r--r-- | server/sample/npc_generic_random.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/server/sample/npc_generic_random.txt b/server/sample/npc_generic_random.txt new file mode 100644 index 0000000..5295190 --- /dev/null +++ b/server/sample/npc_generic_random.txt @@ -0,0 +1,42 @@ +// Evol scripts. +// Authors: +// Reid +// +// Description: +// Template for a generic non-important NPC. + +001-1,89,86,0 script NPC Name NPC_NO_SPRITE,{ // Set the NPC location and sprite ID. + + function esperia_city + { + speech + l("This text is displayed on the NPC dialog window."), + l("You can use multiple lines, it is clearer than using an infinite amount of mes, mesn, mesq, next functions."), + + return; + } + + function not_so_loud + { + npctalkonce l("This text is displayed over the NPC's head."); + + return; + } + + switch (rand(2)) + { + case 0: + dialog_npctalk(); + break; + case 1: + dialog_speech(); + break; + } + + close; + +OnInit: + .sex = G_OTHER; // Set the NPC gender here. + .distance = 2; // Set the NPC max distance here. + end; +} |