--- a
+++ b/gemrb/override/pst/source/baldur.baf
@@ -0,0 +1,157 @@
+IF
+  !Faction(Protagonist,ANARCHIST)
+  Global("JOIN_ANARCHISTS","GLOBAL",1)
+THEN
+  RESPONSE #100
+    ChangeFaction(Protagonist,ANARCHIST)
+END
+
+IF
+  !Faction(Protagonist,SENSATE)
+  Global("JOIN_SENSATES","GLOBAL",1)
+  !Global("JOIN_ANARCHISTS","GLOBAL",1)
+THEN
+  RESPONSE #100
+    ChangeFaction(Protagonist,SENSATE)
+END
+
+IF
+  !Faction(Protagonist,DUSTMEN)
+  Global("JOIN_DUSTMEN","GLOBAL",1)
+  !Global("JOIN_ANARCHISTS","GLOBAL",1)
+THEN
+  RESPONSE #100
+    ChangeFaction(Protagonist,DUSTMEN)
+END
+
+IF
+  !Faction(Protagonist,GODSMAN)
+  Global("JOIN_GODSMEN","GLOBAL",6)
+  !Global("JOIN_ANARCHISTS","GLOBAL",1)
+THEN
+  RESPONSE #100
+    ChangeFaction(Protagonist,GODSMAN)
+END
+
+IF
+  !Faction(Protagonist,XAOSITECT)
+  Global("JOIN_CHAOSMEN","GLOBAL",1)
+  !Global("JOIN_ANARCHISTS","GLOBAL",1)
+THEN
+  RESPONSE #100
+    ChangeFaction(Protagonist,XAOSITECT)
+END
+
+IF
+  Global("game_over","GLOBAL",1)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,44963)
+END
+
+IF
+  Global("game_over","GLOBAL",2)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,48153)
+END
+
+IF
+  Global("game_over","GLOBAL",3)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,48154)
+END
+
+IF
+  Global("game_over","GLOBAL",4)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,48155)
+END
+
+IF
+  Global("game_over","GLOBAL",5)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,41656)
+END
+
+IF
+  Global("game_over","GLOBAL",6)
+THEN
+  RESPONSE #100
+    GlobalSet("game_over","GLOBAL",0)
+    QuitGame(0,0,67295)
+END
+
+IF
+  Global("AR0200_Visited","GLOBAL",1)
+  Global("Played_Shadow_Movie","GLOBAL",0)
+THEN
+  RESPONSE #100
+    GlobalSet("Played_Shadow_Movie","GLOBAL",1)
+    StartMovie("SS_MSLAB")
+END
+
+IF
+  Global("AR0206_Visited","GLOBAL",1)
+  Global("Played_Shadow_Movie","GLOBAL",0)
+THEN
+  RESPONSE #100
+    GlobalSet("Played_Shadow_Movie","GLOBAL",1)
+    StartMovie("SS_MSLAB")
+END
+
+IF
+  Global("AR0200_Visited","GLOBAL",1)
+  Global("Played_Sigil_Movie","GLOBAL",0)
+THEN
+  RESPONSE #100
+    GlobalSet("Played_Sigil_Movie","GLOBAL",1)
+    StartMovie("SIGIL")
+END
+
+IF
+  GlobalGT("lady","GLOBAL",49)
+  Global("ar1900_visited","GLOBAL",0)
+  UsedExit("sigil",Protagonist)
+  !CreatureInArea("ar1900")
+THEN
+  RESPONSE #100
+    ClearAllActions()
+    ActionOverride(Player6,LeaveParty())
+    ActionOverride(Player5,LeaveParty())
+    ActionOverride(Player4,LeaveParty())
+    ActionOverride(Player3,LeaveParty())
+    ActionOverride(Player2,LeaveParty())
+    //should be the position of mazeentr in ar1900
+    TeleportParty("ar1900",[2559.1895],0)
+END
+
+IF
+  Global("sabotage","GLOBAL",5)
+  CreatureInArea("ar0512")
+  UsedExit("foundry",[PC])
+THEN
+  RESPONSE #100
+    ClearAllActions()
+    TeleportParty("ar0513",[1078.892],0)
+END
+
+IF
+  Global("sabotage","GLOBAL",7)
+  CreatureInArea("ar0512")
+  UsedExit("foundry",[PC])
+THEN
+  RESPONSE #100
+    ClearAllActions()
+    TeleportParty("ar0513",[1078.892],0)
+END
+
+