summaryrefslogtreecommitdiff
path: root/npc/functions/warp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/warp.txt')
-rw-r--r--npc/functions/warp.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/warp.txt b/npc/functions/warp.txt
index dd09d713..df7b76b0 100644
--- a/npc/functions/warp.txt
+++ b/npc/functions/warp.txt
@@ -3,6 +3,16 @@
// gumi
+
+// map_exists
+// self-explanatory
+
+function script map_exists {
+ return getmapinfo(MAPINFO_ID, getarg(0)) >= 0;
+}
+
+
+
// slide_or_warp
// Slides the player instead of warping, when possible.
// usage: