Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: Automatic transition to "Heart of Winter" expansion #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions cdtweaks/baf/a7howt-ar1105.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
IF
Global("A7_TRANSITION_CHECK","MYAREA",1)
!Global("HOW_COMPLETED","GLOBAL",0)
THEN
RESPONSE #100
StartCutSceneMode()
SetGlobal("A7_TRANSITION_CHECK","MYAREA",2)
StartCutScene("a7howt1")
END

IF
Global("A7_TRANSITION_CHECK","MYAREA",1)
Global("HOW_COMPLETED","GLOBAL",0)
GlobalLT("Hjollder_Quest","GLOBAL",4)
THEN
RESPONSE #100
StartCutSceneMode()
SetGlobal("A7_TRANSITION_CHECK","MYAREA",2)
StartCutScene("a7howt2a")
END

IF
Global("A7_TRANSITION_CHECK","MYAREA",1)
Global("HOW_COMPLETED","GLOBAL",0)
GlobalGT("Hjollder_Quest","GLOBAL",3)
GlobalLT("Hjollder_Quest","GLOBAL",11)
THEN
RESPONSE #100
StartCutSceneMode()
SetGlobal("A7_TRANSITION_CHECK","MYAREA",2)
StartCutScene("a7howt3a")
END

IF
Global("A7_TRANSITION_CHECK","MYAREA",1)
Global("HOW_COMPLETED","GLOBAL",0)
GlobalGT("Hjollder_Quest","GLOBAL",10)
THEN
RESPONSE #100
StartCutSceneMode()
SetGlobal("A7_TRANSITION_CHECK","MYAREA",2)
StartCutScene("a7howt4a")
END
10 changes: 10 additions & 0 deletions cdtweaks/baf/a7howt-ar9604.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
IF
Global("A7_GAME_OVER","MYAREA",0)
!Global("BELHIEFET_DEAD","GLOBAL",0)
!Global("Join_Posse","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("A7_GAME_OVER","MYAREA",1)
SetGlobal("Join_Posse","GLOBAL",0)
Continue()
END
13 changes: 13 additions & 0 deletions cdtweaks/baf/a7howt1-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// End the game normally if HoW campaign has already been completed
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
StartMovie("CREDITS")
SmallWait(2)
UnhideGUI()
FadeFromColor([0.0],0)
EndCutSceneMode()
GoToStartScreen()
END
10 changes: 10 additions & 0 deletions cdtweaks/baf/a7howt1-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// End the game normally if HoW campaign has already been completed
IF
True()
THEN
RESPONSE #100
CutSceneId([PC][0.0.10000.10000])
UnhideGUI()
MultiPlayerSync()
EndCredits()
END
24 changes: 24 additions & 0 deletions cdtweaks/baf/a7howt2a-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
ApplySpellRES("bdresurr",Player1Fill)
ApplySpellRES("bdresurr",Player2Fill)
ApplySpellRES("bdresurr",Player3Fill)
ApplySpellRES("bdresurr",Player4Fill)
ApplySpellRES("bdresurr",Player5Fill)
ApplySpellRES("bdresurr",Player6Fill)
SmallWait(2)
ApplySpellRES("bdrejuve",Player1Fill)
ApplySpellRES("bdrejuve",Player2Fill)
ApplySpellRES("bdrejuve",Player3Fill)
ApplySpellRES("bdrejuve",Player4Fill)
ApplySpellRES("bdrejuve",Player5Fill)
ApplySpellRES("bdrejuve",Player6Fill)
SmallWait(2)
DayNight(DAWN_END)
Wait(1)
StartCutScene("a7howt2b")
END
26 changes: 26 additions & 0 deletions cdtweaks/baf/a7howt2a-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId([PC][0.0.10000.10000])
ApplySpell(Player1,CLERIC_RESURRECTION)
ApplySpell(Player2,CLERIC_RESURRECTION)
ApplySpell(Player3,CLERIC_RESURRECTION)
ApplySpell(Player4,CLERIC_RESURRECTION)
ApplySpell(Player5,CLERIC_RESURRECTION)
ApplySpell(Player6,CLERIC_RESURRECTION)
SmallWait(4)
MultiPlayerSync()
ClearPartyEffects()
Wait(1)
MultiPlayerSync()
DayNight(DAWN_END)
Wait(1)
MultiPlayerSync()
StopJoinRequests()
SetGlobal("9100_RESET_JOIN","GLOBAL",1)
MultiPlayerSync()
EndCutSceneMode()
StartCutScene("a7howt2b")
END
22 changes: 22 additions & 0 deletions cdtweaks/baf/a7howt2b-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Transition: Easthaven to Lonelywood
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
CopyGroundPilesTo("ar9100",[1021.2519])
SetWorldmap("worldm25")
SetMasterArea("ar9100")
RevealAreaOnMap("ar9100")
ActionOverride(Player2Fill,LeaveAreaLUA("AR9100","LOAD9100",[958.2510],N))
ActionOverride(Player3Fill,LeaveAreaLUA("AR9100","LOAD9100",[1085.2512],NE))
ActionOverride(Player4Fill,LeaveAreaLUA("AR9100","LOAD9100",[950.2540],NW))
ActionOverride(Player5Fill,LeaveAreaLUA("AR9100","LOAD9100",[1018.2548],E))
ActionOverride(Player6Fill,LeaveAreaLUA("AR9100","LOAD9100",[1071.2542],W))
LeaveAreaLUAPanic("AR9100","LOAD9100",[1021.2519],N)
LeaveAreaLUA("AR9100","LOAD9100",[1021.2519],N)
MultiPlayerSync()
SetGlobal("OH_Unfade","AR9100",1)
UnhideGUI()
EndCutSceneMode()
END
48 changes: 48 additions & 0 deletions cdtweaks/baf/a7howt2b-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Transition: Easthaven to Lonelywood
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1)
LeaveAreaLUA("AR9100","LOAD9100",[1021.2519],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player2)
LeaveAreaLUA("AR9100","LOAD9100",[958.2510],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player3)
LeaveAreaLUA("AR9100","LOAD9100",[1085.2512],10)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player4)
LeaveAreaLUA("AR9100","LOAD9100",[950.2540],6)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player5)
LeaveAreaLUA("AR9100","LOAD9100",[1018.2548],12)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player6)
LeaveAreaLUA("AR9100","LOAD9100",[1071.2542],4)
END
24 changes: 24 additions & 0 deletions cdtweaks/baf/a7howt3a-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
ApplySpellRES("bdresurr",Player1Fill)
ApplySpellRES("bdresurr",Player2Fill)
ApplySpellRES("bdresurr",Player3Fill)
ApplySpellRES("bdresurr",Player4Fill)
ApplySpellRES("bdresurr",Player5Fill)
ApplySpellRES("bdresurr",Player6Fill)
SmallWait(2)
ApplySpellRES("bdrejuve",Player1Fill)
ApplySpellRES("bdrejuve",Player2Fill)
ApplySpellRES("bdrejuve",Player3Fill)
ApplySpellRES("bdrejuve",Player4Fill)
ApplySpellRES("bdrejuve",Player5Fill)
ApplySpellRES("bdrejuve",Player6Fill)
SmallWait(2)
DayNight(DAWN_END)
Wait(1)
StartCutScene("a7howt3b")
END
27 changes: 27 additions & 0 deletions cdtweaks/baf/a7howt3a-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId([PC][0.0.10000.10000])
ApplySpell(Player1,CLERIC_RESURRECTION)
ApplySpell(Player2,CLERIC_RESURRECTION)
ApplySpell(Player3,CLERIC_RESURRECTION)
ApplySpell(Player4,CLERIC_RESURRECTION)
ApplySpell(Player5,CLERIC_RESURRECTION)
ApplySpell(Player6,CLERIC_RESURRECTION)
SmallWait(4)
MultiPlayerSync()
ClearPartyEffects()
Wait(1)
MultiPlayerSync()
DayNight(DAWN_END)
Wait(1)
MultiPlayerSync()
StopJoinRequests()
SetGlobal("Exp_Pause","GLOBAL",0)
SetGlobal("9300_RESET_JOIN","GLOBAL",1)
MultiPlayerSync()
EndCutSceneMode()
StartCutScene("a7howt3b")
END
24 changes: 24 additions & 0 deletions cdtweaks/baf/a7howt3b-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Transition: Easthaven to Burial Isle
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
CopyGroundPilesTo("ar9300",[490.340])
SetWorldmap("worldm25")
SetMasterArea("ar9300")
SetGlobal("Exp_Pause","GLOBAL",0)
SetGlobal("9300_RESET_JOIN","GLOBAL",1)
ActionOverride(Player2Fill,LeaveAreaLUA("AR9300","Load9300",[440.325],N))
ActionOverride(Player3Fill,LeaveAreaLUA("AR9300","Load9300",[440.375],N))
ActionOverride(Player4Fill,LeaveAreaLUA("AR9300","Load9300",[390.400],N))
ActionOverride(Player5Fill,LeaveAreaLUA("AR9300","Load9300",[340.375],N))
ActionOverride(Player6Fill,LeaveAreaLUA("AR9300","Load9300",[340.325],N))
LeaveAreaLUAPanic("AR9300","Load9300",[390.300],N)
LeaveAreaLUA("AR9300","Load9300",[390.300],N)
MultiPlayerSync()
FadeFromColor([30.0],0)
Wait(1)
UnhideGUI()
EndCutSceneMode()
END
48 changes: 48 additions & 0 deletions cdtweaks/baf/a7howt3b-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Transition: Easthaven to Burial Isle
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1)
LeaveAreaLUA("AR9300","Load9300",[390.300],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player2)
LeaveAreaLUA("AR9300","Load9300",[440.325],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player3)
LeaveAreaLUA("AR9300","Load9300",[440.375],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player4)
LeaveAreaLUA("AR9300","Load9300",[390.400],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player5)
LeaveAreaLUA("AR9300","Load9300",[340.375],8)
END

IF
True()
THEN
RESPONSE #100
CutSceneId(Player6)
LeaveAreaLUA("AR9300","Load9300",[340.325],8)
END
24 changes: 24 additions & 0 deletions cdtweaks/baf/a7howt4a-ee.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId(Player1Fill)
ApplySpellRES("bdresurr",Player1Fill)
ApplySpellRES("bdresurr",Player2Fill)
ApplySpellRES("bdresurr",Player3Fill)
ApplySpellRES("bdresurr",Player4Fill)
ApplySpellRES("bdresurr",Player5Fill)
ApplySpellRES("bdresurr",Player6Fill)
SmallWait(2)
ApplySpellRES("bdrejuve",Player1Fill)
ApplySpellRES("bdrejuve",Player2Fill)
ApplySpellRES("bdrejuve",Player3Fill)
ApplySpellRES("bdrejuve",Player4Fill)
ApplySpellRES("bdrejuve",Player5Fill)
ApplySpellRES("bdrejuve",Player6Fill)
SmallWait(2)
DayNight(DAWN_END)
Wait(1)
StartCutScene("a7howt4b")
END
27 changes: 27 additions & 0 deletions cdtweaks/baf/a7howt4a-how.baf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Prepare transition to Heart of Winter
IF
True()
THEN
RESPONSE #100
CutSceneId([PC][0.0.10000.10000])
ApplySpell(Player1,CLERIC_RESURRECTION)
ApplySpell(Player2,CLERIC_RESURRECTION)
ApplySpell(Player3,CLERIC_RESURRECTION)
ApplySpell(Player4,CLERIC_RESURRECTION)
ApplySpell(Player5,CLERIC_RESURRECTION)
ApplySpell(Player6,CLERIC_RESURRECTION)
SmallWait(4)
MultiPlayerSync()
ClearPartyEffects()
Wait(1)
MultiPlayerSync()
DayNight(DAWN_END)
Wait(1)
MultiPlayerSync()
StopJoinRequests()
SetGlobal("Exp_Pause","GLOBAL",0)
SetGlobal("9200_RESET_JOIN","GLOBAL",1)
MultiPlayerSync()
EndCutSceneMode()
StartCutScene("a7howt4b")
END
Loading