summaryrefslogtreecommitdiff
path: root/npc/functions/masks.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/masks.txt')
-rw-r--r--npc/functions/masks.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/npc/functions/masks.txt b/npc/functions/masks.txt
new file mode 100644
index 00000000..4b28bfc7
--- /dev/null
+++ b/npc/functions/masks.txt
@@ -0,0 +1,43 @@
+// Evol functions.
+// Author:
+// Reid
+// Jesusalva
+// Description:
+// Triggers functions to add and remove masks.
+// Variables:
+// 4 - Top Mask
+// 8 - Bottom Mask
+// Default mask: 13 (Top + Bottom + Display mask)
+
+// Artis Aemil's Legion
+
+function script artisALResetMask {
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m);
+ return 0;
+}
+
+function script artisALTopMask {
+ addtimer 30, "artisALTopMaskDO::OnDoIt";
+ return 0;
+}
+
+function script artisALBottomMask {
+ addtimer 30, "artisALBottomMaskDO::OnDoIt";
+ return 0;
+}
+
+// Show bottom mask is the same as hiding top mask
+- script artisALBottomMaskDO NPC_HIDDEN,{
+OnDoIt:
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m^4);
+}
+
+// Show top mask is the same as hiding bottom mask
+- script artisALTopMaskDO NPC_HIDDEN,{
+OnDoIt:
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m^8);
+}
+