From 66a7953e6f6b4d7951c306e1d305ab3b904f557a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Nov 2014 16:04:32 +0300 Subject: Replace temp variables into scope temp variables. --- npc/functions/asleep.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'npc/functions/asleep.txt') diff --git a/npc/functions/asleep.txt b/npc/functions/asleep.txt index cab79b93..42a99796 100644 --- a/npc/functions/asleep.txt +++ b/npc/functions/asleep.txt @@ -5,15 +5,15 @@ // Description: // Tell a random sleeping sound. // Variables: -// @rand = Random number between the number of "sleeping" choice. +// .@rand = Random number between the number of "sleeping" choice. function script Asleep { - set @rand, rand(3); - if (@rand == 0) npctalk3 l("Zzzzzzzzz..."); - if (@rand == 1) npctalk3 l("Rrrr... Pchhhh..."); - if (@rand == 2) npctalk3 l("Ggrmm... Grmmmm..."); - if (@rand == 3) npctalk3 l("Hm..."); + set .@rand, rand(3); + if (.@rand == 0) npctalk3 l("Zzzzzzzzz..."); + if (.@rand == 1) npctalk3 l("Rrrr... Pchhhh..."); + if (.@rand == 2) npctalk3 l("Ggrmm... Grmmmm..."); + if (.@rand == 3) npctalk3 l("Hm..."); close; } -- cgit v1.2.3-60-g2f50