--- a/gemrb/core/GameScript/GameScript.h
+++ b/gemrb/core/GameScript/GameScript.h
@@ -588,7 +588,7 @@
 	IDSFunction Function;
 };
 
-#define MAX_TRIGGERS			0xFF
+#define MAX_TRIGGERS			0x100
 #define MAX_ACTIONS			400
 #define MAX_OBJECTS			128
 #define AI_SCRIPT_LEVEL 4             //the script level of special ai scripts
@@ -950,6 +950,7 @@
 	static int UnselectableVariableGT(Scriptable* Sender, Trigger* parameters);
 	static int UnselectableVariableLT(Scriptable* Sender, Trigger* parameters);
 	static int Unusable(Scriptable* Sender, Trigger* parameters);
+	static int UsedExit(Scriptable* Sender, Trigger* parameters);
 	static int Vacant(Scriptable* Sender, Trigger* parameters);
 	static int WalkedToTrigger(Scriptable* Sender, Trigger* parameters);
 	static int WasInDialog(Scriptable* Sender, Trigger* parameters);