summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 60274204e..3f4ab0a09 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -651,9 +651,9 @@ function script gettimeparam {
}
-// Bug Warning
-// ReportBug( BugID, {Flags{, Return Code}} )
-function script ReportBug {
+// Something went wrong and must be reported (I tried to keep a syntax close to python)
+// Exception( BugID, {Flags{, Return Code}} )
+function script Exception {
// Fill variable
.@msg$=getarg(0);
.@gf=getarg(1,RB_DEFAULT);
@@ -696,7 +696,7 @@ function script EnterTown {
// Validade variable, see npc/000-1/exit.txt first
setarray .@locs$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Lilit", "Nival", "Frostia";
if (array_find(.@locs$, .@v$) < 0)
- return ReportBug("Invalid location passed to EnterTown: "+.@v$);
+ return Exception("Invalid location passed to EnterTown: "+.@v$);
LOCATION$=.@v$;
return;