Jump to content


Photo

Game transition trigger?


  • Please log in to reply
5 replies to this topic

#1 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 08 May 2009 - 04:56 AM

Is there a script trigger or variable you can use in BGT to determine which part of the game you're in (BG1, SoA or ToB)? For that matter, is there one just for SoA/ToB?

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#2 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 08 May 2009 - 05:01 AM

Is there a script trigger or variable you can use in BGT to determine which part of the game you're in (BG1, SoA or ToB)? For that matter, is there one just for SoA/ToB?

For BG2's, I use the chapter number... to detect like this, if GlobalLT("Chapter","GLOBAL",8) then it's before, and if it's GlobalGT("Chapter","GLOBAL",7) then it's after the SoA->ToB transition.

And for BGT(BG1/BGTotSC/SoA) there is this:

Global ENDOFBG1
0 - in BG1 or TotSC part of game
1 - killed Sarevok but not yet transitioned to SoA
2 - in SoA

I know it may be a bit long, but you can easily search DevDoc for information like this - if you have any other queries.

So you might have to combine them for the real ToB check, as the BGT now takes the chapters to +1 chapters.

Edited by Jarno Mikkola, 08 May 2009 - 05:12 AM.

Deactivated account. The user today is known as The Imp.


#3 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 08 May 2009 - 06:22 AM

So you might have to combine them for the real ToB check, as the BGT now takes the chapters to +1 chapters.

BGT only does that for BG1, not SoA/ToB, right? So a shell for figuring out where you are in BGT would be something like this?

IF
  GlobalLT("endofbg1","GLOBAL",2)
THEN
  RESPONSE #100
	//BG1 stuff
END

IF
  GlobalGT("endofbg1","GLOBAL",1)
  GlobalLT("Chapter","GLOBAL",9)
THEN
  RESPONSE #100
	//SoA stuff
END

IF
  GlobalGT("endofbg1","GLOBAL",1)
  GlobalGT("Chapter","GLOBAL",8)
THEN
  RESPONSE #100
	//ToB stuff
END
Incidentally, is there a guide to chapter numbers somewhere? I have no real clue what the numbers correspond to, not even for BG1.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#4 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 08 May 2009 - 07:15 AM

So you might have to combine them for the real ToB check, as the BGT now takes the chapters to +1 chapters.

BGT only does that for BG1, not SoA/ToB, right?

Yes. So...

So a shell for figuring out where you are in BGT would be something like this?

IF
  GlobalLT("endofbg1","GLOBAL",2)
THEN
  RESPONSE #100
	//BG1 stuff
END

IF
  GlobalGT("endofbg1","GLOBAL",1)
  GlobalLT("Chapter","GLOBAL",8)
THEN
  RESPONSE #100
	//SoA stuff
END

IF
  GlobalGT("endofbg1","GLOBAL",1)
  GlobalGT("Chapter","GLOBAL",7)
THEN
  RESPONSE #100
	//ToB stuff
END
9->8, 8->7

Incidentally, is there a guide to chapter numbers somewhere? I have no real clue what the numbers correspond to, not even for BG1.

If I remember it correctly, they end something like this: In BGT...
Chapter 1, escaping from the Candlekeep.
Chapter 2, outside but not yet in Naskel.
Chapter 3, after going to Naskel, but before looting the chest in the Naskel Mines.
Chapter 4, after that and before looting the Bandit Camps chest.
Chapter 5, killing Davaeorn in the Cloakwood Mines should start the next chapter.
Chapter 6, getting to talking to the grand Duke Elthan and taking to book.
Chapter 7, after facing Sarevok first time.
Chapter 8, the chapter changes after talking to Belt the last time.

BG2:SoA
Chapter 1, after you have heared the Shadow Thieves deal.
Chapter 2, after getting the money and doing a deal with either party of the conflict.
Chapter 3, after the travel to Brynnlaw.
Chapter 4, escaping to the Underdark.
Chapter 5, getting out of the Underdark.
Chapter 6, getting into the Suldanessellar.
Chapter 7, killing Irenicus the second time.

Edited by Jarno Mikkola, 08 May 2009 - 08:13 AM.

Deactivated account. The user today is known as The Imp.


#5 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 08 May 2009 - 07:57 AM

9->8, 8->7

Er, yeah... that's what I meant. :blink: Cheers.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#6 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 08 May 2009 - 02:11 PM

I gotta bookmark this. I keep forgetting this, too.