summaryrefslogtreecommitdiff
path: root/npc/functions/soul_menhir.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/soul_menhir.txt')
-rw-r--r--npc/functions/soul_menhir.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt
index 25ccc4db..29701b07 100644
--- a/npc/functions/soul_menhir.txt
+++ b/npc/functions/soul_menhir.txt
@@ -30,7 +30,17 @@ L_Shortversion:
next;
L_Save:
+ if (@x == 0 && @y == 0) goto L_FindPoint;
+
+L_Do_Save:
savepoint @map$, @x, @y;
+ goto L_Return;
+
+L_FindPoint:
+ set @n, rand(0, getarraysize(@Xs));
+ set @x, @Xs[@n];
+ set @y, @Ys[@n];
+ goto L_Do_Save;
L_Return:
return;