Skip to content

Looking for right variables at the begining of SoD

GwendolyneGwendolyne Member Posts: 461
edited July 2017 in General Modding
As the Engine does not allow to provide kits according to the character gender at creation, I need to check it in the first map. For this, I use two variables:

If CHARNAME is a woman in BG2, ToB and BG2EE :
OUTER_SPRINT GWCLDial_Condition_Woman ~OR(2)
	AreaCheck("AR0602")	// Check for BG2 start in BG2-BG2EE-EET-BGT : AR0602 Irenicus's Dungeon 1st Floor
	AreaCheck("AR4000")	// Check for TOB start in ToB-BG2EE-EET-BGT : Spirit Heads~
If CHARNAME is a woman in BG2, ToB, BG2EE, BGT and EET:
OUTER_SPRINT GWCLDial_Condition_Woman ~OR(4)
	AreaCheck("AR0602")		// Check for BG2 start in BG2-BG2EE-EET-BGT : AR0602 Irenicus's Dungeon 1st Floor
	AreaCheck("AR4000")		// Check for TOB start in ToB-BG2EE-EET-BGT : Spirit Heads 
	AreaCheck("%Candlekeep%")	// Check for BG1 start in BG1-BG1EE (AR2600 Candlekeep (prologue), exterior), EET (BG2600) and BGT (AR0015)
	AreaCheck("BD0120")		// Check for SoD start~
If CHARNAME is a man in BG, BGEE, SoD, BGT and EET:
OUTER_SPRINT GWCLDial_Condition_Man_BG ~IF
	Class(Myself,PALADIN_ALL)
	Gender(Myself,MALE)
	Global("GWChevaucheuse_Woman","LOCALS",0)
	Global("GWCLDIAL","GLOBAL",0)
	OR(2)
		AreaCheck("%Candlekeep%")	// Check for BG1 start : Candlekeep (prologue), exterior
		AreaCheck("BD0120")		// Check for SoD Start
	Delay(12)
THEN
	RESPONSE #100
		SetGlobal("GWChevaucheuse_Woman","LOCALS",2)
		SetGlobal("GWCLDIAL","GLOBAL",1)
		CreateCreatureObject("GWCLDial",Myself,0,0,0)
		ActionOverride("GWCLDial",StartDialogNoSet(Myself))
END~
The code works fine in BG2, BGT and BG2:EE. But As I don't own SoD, I would be grateful if someone could give me the right codes for SoD.

Thanks.
Post edited by Gwendolyne on

Comments

  • PaulaMigratePaulaMigrate Member Posts: 1,201
    BD0120 is correct, it's the starting dungeon for SoD, equivalent to ar0602 or ar4000, it's where you either start a new game or are starting after transition/import. it has flag *Dungeon* set.
  • GwendolyneGwendolyne Member Posts: 461
    Thanks. ;)

    So my code would work fine.
    I just need to change area names with variables compatible with EET.
  • PaulaMigratePaulaMigrate Member Posts: 1,201

    Thanks. ;)

    So my code would work fine.
    I just need to change area names with variables compatible with EET.

    The only difference in EET is Candlekeep = BG2600 (AR2600 is the BG2 area of that code= The forest where you find Coran and later the entrance to Suldanessalar)
    Other starting areas have the same code in EET, i.e. BG0120, ar0602 and ar4000.
  • GwendolyneGwendolyne Member Posts: 461
    Good catch!
    I was just about to code my variables, changing AR to BG for BG:EE ones.
  • GrammarsaladGrammarsalad Member Posts: 2,582
    ...wait! Gender based kits!!

    Cool.
  • GwendolyneGwendolyne Member Posts: 461
    A paladin kit with a special destrier : a unicorn...
  • GrammarsaladGrammarsalad Member Posts: 2,582

    A paladin kit with a special destrier : a unicorn...

    Color me interested. Do you have a link?
  • GwendolyneGwendolyne Member Posts: 461
    edited July 2017
    Those kits belong to a more important project, a quest mod, and are still under construction (more than 90 % done, but the missing 10 % are the most painful to code...).

    If you want trailers, you will find 3 avi movies here: http://gibberlings3.net/forums/index.php?showtopic=28795&page=2#entry253834
Sign In or Register to comment.