Jump to content


Photo

Inn Cutscenes


  • Please log in to reply
No replies to this topic

#1 Zyraen

Zyraen
  • Modder
  • 1402 posts

Posted 25 November 2007 - 10:56 PM

Inn Cutscenes

Code from Kova's Cooking Banters.

IF GlobalGT("KKRomance", "GLOBAL", 0)
PartyRested()
OR(10)
AreaCheck("AR0313") // The Thumb
AreaCheck("AR0406") // Copper Coronet
AreaCheck("AR0509") // Five Flagons
AreaCheck("AR0513") // Delosar
AreaCheck("AR0522") // Five Flagons
AreaCheck("AR0704") // Mithrest
AreaCheck("AR0709") // Den of 7 Vales
AreaCheck("AR1105") // Umar Inn
AreaCheck("AR1602") // Brynnlaw Inn
AreaCheck("AR2010") // Trademeet Inn
THEN
RESPONSE #100
SetGlobal("Z#RestInn", "GLOBAL", 1)
END

Pretty standard code here, it just lists all the inns down. This cutscene only happens AFTER that party is rested, hence PartyRested(). If you want it to be occuring when the party is starting to rest, you can put this code into the xxxD.baf file, and delete the PartyRested(). Otherwise you can put it into the xxx.baf itself.

The Z#RestInn Global becomes a control variable for later, remember to reset it to 0. No magic here really, this code just saves you the trouble of checking out the inn AREs.

You'd use it roughly as follows.

IF Global("Z#RestInn", "GLOBAL", 1)
Global("Z#TrialClear","GLOBAL",0)
GlobalGT("KKRomance", "GLOBAL", 0)
Global("BKvCook", "GLOBAL", 0)
InParty("Kiyone") InMyArea("Kiyone")
THEN
RESPONSE #100
SetCutSceneLite(TRUE)
SetGlobal("BKvCook", "GLOBAL", 1)
SetGlobal("Z#RestInn", "GLOBAL", 0)
RealSetGlobalTimer("KvCookT","GLOBAL",2)
StorePartyLocations()
Hide() Hide()
RunAwayFrom("Kiyone", 23)
END

StorePartyLocations() allows you to bring the party members back to original positions after the whole scene is over. Because BKvCook is advanced once this scene happens, NO MATTER which inn the party is in, resting in a different inn will lead to a "continuation" of the Cooking Banters.

kiyos.jpg____btlbn2.gif____kovaS.jpg
Love between a Law Enforcer and a Fugitive - can such a thing even happen?
SoA Release - Overview / Download Links

Zyraen's Miscellaneous Mods - Ust Natha Accelerator, item tweaks, XP caps, The Ub3r Reaver Kit, and much more...
Spellhold Gauntlet - more than just a Spellhold-Be-Gone
Hidden Kits - hidden dual-classed kits with a twist for progression