summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 38034980e..8ddcd631b 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -255,6 +255,12 @@ function script any_of {
// TMW2 Custom Functions
/////////////////////////////////////////////
+function script getmap {
+ if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
+ return false;
+ return .@mapName$;
+}
+
function script isin {
if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
return false;