summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-06-07 23:07:16 -0300
committerJesusaves <cpntb1@ymail.com>2024-06-07 23:07:16 -0300
commit685bf57aeaaad175a689f766714936a9edc65aec (patch)
tree70ddbe69e88897df4265b1eaef1cb360dfa24215
parent254fc1201a4738f9ef22e6e87b9fff3fe818b3ff (diff)
downloadserverdata-685bf57aeaaad175a689f766714936a9edc65aec.tar.gz
serverdata-685bf57aeaaad175a689f766714936a9edc65aec.tar.bz2
serverdata-685bf57aeaaad175a689f766714936a9edc65aec.tar.xz
serverdata-685bf57aeaaad175a689f766714936a9edc65aec.zip
Add some more weather sense to random NPCs to make game more interesting.
-rw-r--r--npc/functions/random-talk.txt23
1 files changed, 21 insertions, 2 deletions
diff --git a/npc/functions/random-talk.txt b/npc/functions/random-talk.txt
index 44fa9b255..d4e0396f7 100644
--- a/npc/functions/random-talk.txt
+++ b/npc/functions/random-talk.txt
@@ -19,7 +19,7 @@
function script hello {
- switch (rand2(3)) {
+ switch (rand2(4)) {
case 0:
npctalkonce(l("Heya!"));
break;
@@ -32,6 +32,12 @@ function script hello {
else
npctalkonce(l("Nice day to you."));
break;
+ case 3:
+ if (is_night())
+ npctalkonce(l("And a good evening for you."));
+ else
+ npctalkonce(l("And a good morning for you."));
+ break;
}
return;
@@ -124,7 +130,7 @@ function script villagertalk {
}
function script legiontalk {
- switch (rand2(16)) {
+ switch (rand2(17)) {
case 0:
npctalkonce(l("Do I look like a tree? I feel like one."));
break;
@@ -176,6 +182,19 @@ function script legiontalk {
case 15:
npctalkonce(l("The Monster King is scary. To be honest, I'm not sure I would be able to do anything if he showed up."));
break;
+ case 16:
+ .@m = getmapmask(getmap());
+ if (.@m & MASK_RAIN)
+ npctalkonce(l("I hate how wet I am right now in this rain."));
+ else if (.@m & MASK_SANDSTORM)
+ npctalkonce(l("I thought sandstorms would make difficult to walk, but it is just awful on my skin."));
+ else if (.@m & MASK_SNOW)
+ npctalkonce(l("Ugh, it's even colder today than other days. I hope this snowstorm ends soon."));
+ else if (.@m & MASK_NIGHT)
+ npctalkonce(l("I'm tired, but I can't sleep, I am tasked with the night watch."));
+ else
+ npctalkonce(l("I hope my shift ends soon, so I can go home rest and drink a little."));
+ break;
}
return;