summaryrefslogtreecommitdiff
path: root/npc/functions/random-talk.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 21:30:02 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 21:30:02 -0300
commit44862dca9b6f26513f23ea1fd79365c7a8d33d9e (patch)
treed125ad9b9249c6f061a11991ec1b5d742662236c /npc/functions/random-talk.txt
parentd3c277d189ff513258f290c84680d275c4d05e0c (diff)
downloadserverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.gz
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.bz2
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.xz
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.zip
Use rand2() instead of rand() in several places
Diffstat (limited to 'npc/functions/random-talk.txt')
-rw-r--r--npc/functions/random-talk.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/random-talk.txt b/npc/functions/random-talk.txt
index 4a4202f34..b9df6783a 100644
--- a/npc/functions/random-talk.txt
+++ b/npc/functions/random-talk.txt
@@ -19,7 +19,7 @@
function script hello {
- switch (rand(3)) {
+ switch (rand2(3)) {
case 0:
npctalkonce(l("Heya!"));
break;
@@ -38,7 +38,7 @@ function script hello {
}
function script moubootalk {
- switch (rand(4)) {
+ switch (rand2(4)) {
case 0:
npctalkonce(l("Moooooo!"));
break;
@@ -57,7 +57,7 @@ function script moubootalk {
function script sailortalk {
- .@rand = rand(8);
+ .@rand = rand2(8);
if (.@rand == 0) goodbye;
if (.@rand == 1) npctalkonce(l("Arr, I'm bored!"));
if (.@rand == 2) npctalkonce(l("Hey! Good to hear from you!"));
@@ -101,7 +101,7 @@ function script villagertalk {
return;
}
- switch (rand(4)) {
+ switch (rand2(4)) {
case 0:
darn_or_smile();
break;
@@ -123,7 +123,7 @@ function script villagertalk {
}
function script legiontalk {
- switch (rand(15)) {
+ switch (rand2(15)) {
case 0:
npctalkonce(l("Do I look like a tree? I feel like one."));
//speech(
@@ -183,7 +183,7 @@ function script legiontalk {
}
function script asleep {
- switch(rand(5)) {
+ switch(rand2(5)) {
case 0: npctalkonce(l("Zzzzzzzzz...")); break;
case 1: npctalkonce(l("Rrrr... Pchhhh...")); break;
case 2: npctalkonce(l("Ggrmm... Grmmmm...")); break;