Skip to content

MegaMod 3.16: Mazzy Romance, Clara NPC, Darkside Anomen, Flying Aerie, For The Evil, & more! (DONE)

1464748495052»

Comments

  • eamoneamon Member Posts: 40
    uhhh yeah so i went back and killed aran but i already was in ToB and cant get the juicy book exp :( been collecting them since day one and wanted to cash out lol. dunno if you want to make your mod a bit eet compatible but it seems terl doesnt appear in later chapters? if i console him in he just runs away without being able to be talked to :s
  • RatatoskrRatatoskr Member Posts: 756
    edited July 16
    Our module is partially EET compatible, in that I put in the EET chapter coding so that it tracks them right in SoA. But to be honest, I'm not particularly inclined to go back and change the code so that you can complete all of our SoA quests in ToB. I also don't use EET so I have no way to test the coding, even if I did.

    That said, I'm not seeing anything in the code that should stop Terl from showing up to start the basic Clara quest even if you go to ToB. It just has to not be chapter 4 or 5 with Aran dead, and not in a few specific locations.

    The second Clara quest requires chapter 6 or 7, but you can get the book XP without that.
  • BCaesarBCaesar Member Posts: 563
    edited July 16
    eamon wrote: »
    uhhh yeah so i went back and killed aran but i already was in ToB and cant get the juicy book exp :( been collecting them since day one and wanted to cash out lol. dunno if you want to make your mod a bit eet compatible but it seems terl doesnt appear in later chapters? if i console him in he just runs away without being able to be talked to :s

    I posted the whole code below. Maybe you can see something I'm missing, but it doesn't seem that being in later chapters should matter.

    Here's all the conditions I can see:
    - Aran must be dead.
    - Rose must be alive.
    - Clara must be able to talk.
    - It can't be chapter 4 or 5.

    This will set a four day timer.

    Then after four days you need the following:
    - Timer expired.
    - You are outdoors.
    - It is still not chapter 4 or 5.
    - Terl doesn't exist in that area yet.
    - You are not in any of the following places: Random encounter, Meeting Drizzt, the Ancient Spirits place, Suldanessellar, the Tree of life, the Black Dragon Hideout, the Neera random encounter, the Bridge, or Hexxat's L scene.
    - You do not see any enemies.
    - You are not in combat.
    - Clara must be able to talk.

    Creating Terl on his own won't work because the proper globals won't be set for him to talk. If you set the globals yourself that might work.

    Here's the code:
    //Code to make Terl Appear once Aran dead 
    IF
    	Global("_bRoseClara","GLOBAL",1) //So you had their interaction
    	Dead("aran")
    	!Dead("MurdGirl")
    	IsValidForPartyDialog("_bClara")
    	!Global("Chapter","GLOBAL",%bg2_chapter_4%) //Chapter 4 (this is the code the buffer evaluates)
    	!Global("Chapter","GLOBAL",%bg2_chapter_5%)  //Chapter 5
    THEN
    	RESPONSE #100 
    	SetGlobalTimer("_bSpawnTerlClara","GLOBAL",FOUR_DAYS)
    	SetGlobal("_bRoseClara","GLOBAL",2)
    END
    
    IF
    Global("_bRoseClara","GLOBAL",2)
    GlobalTimerExpired("_bSpawnTerlClara","GLOBAL")
    	IfValidForPartyDialog("_bClara")
    	!Global("Chapter","GLOBAL",%bg2_chapter_4%) //Chapter 4 (this is the code the buffer evaluates)
    	!Global("Chapter","GLOBAL",%bg2_chapter_5%)  //Chapter 5
    AreaType(OUTDOOR)
    !Exists("Terl")  // Terl
    CombatCounter(0)
    	!AreaCheck("AR0041")   //Random Encounter
    	!AreaCheck("AR0042")   //Random Encounter
    	!AreaCheck("AR0043")   //Random Encounter
    	!AreaCheck("AR0044")   //Random Encounter
    	!AreaCheck("AR0045")   //Random Encounter
    	!AreaCheck("AR0046")   //Random Encounter
    	!AreaCheck("AR2601")   //Meet Drizzt
    	!AreaCheck("AR2700")   //Ancient Spirits
    	!AreaCheck("AR2800")   //Suldanessellar
    	!AreaCheck("AR2806")   //Tree of Life
    	!AreaCheck("AR2807")   //Black Dragon Hideout	
    	!AreaCheck("OH6010")   //Neera random encounter
    	!AreaCheck("AR0500")   //Bridge
    	!AreaCheck("OH7310")   //Hexxat - L Scene
    THEN
    	RESPONSE #100
    		SetInterrupt(FALSE)
    		CreateCreatureObjectEffect("bdoffscr","",Myself)  // No such index
    		ApplySpellRES("bdoffscr","bdoffscr")  // No such index
    		SmallWait(1)
    		CreateCreatureObjectEffect("TERL","","bdoffscr")  // Terl
    		SetInterrupt(TRUE)
    END
    
    IF
    	GlobalTimerExpired("_bSpawnTerlClara","GLOBAL")
    	Global("_bRoseClara","GLOBAL",2)
    	IfValidForPartyDialog("_bClara")
    	!Global("Chapter","GLOBAL",%bg2_chapter_4%)
    	!Global("Chapter","GLOBAL",%bg2_chapter_5%)
    	See("Terl")  // Terl
    	!See([ENEMY])
    THEN
    	RESPONSE #100
    	SetGlobal("_bRoseLibrary","GLOBAL",1)
    	Continue()
    END
    
    IF
    	Global("_bRoseLibrary","GLOBAL",1)
    	Global("_bRoseClara","GLOBAL",2)
    THEN
    	RESPONSE #100
    	StartDialogNoSet(Player1)
    END
    
  • eamoneamon Member Posts: 40
    wow, thx for all that effort. i guess something related to some other mods mightve cause this issue :) will try again after watchers keep tho
  • BCaesarBCaesar Member Posts: 563
    edited July 17
    eamon wrote: »
    wow, thx for all that effort. i guess something related to some other mods mightve cause this issue :) will try again after watchers keep tho

    Also I looked in Terl's file once our mod was installed and I saw this:
    IF
        Global("_bRoseClara","GLOBAL",2)
        IfValidForPartyDialog("_bClara")  // Clara
        !See("_bClara")  // Clara
    THEN
        RESPONSE #100
            MoveToObjectNoInterrupt("_bClara")  // Clara
    END
    
    IF
        Global("_bRoseClara","GLOBAL",2)
        GlobalTimerExpired("_bSpawnTerlClara","GLOBAL")
        !IfValidForPartyDialog("_bClara")  // Clara
    THEN
        RESPONSE #100
            EscapeArea()
    END
    

    What that means is that If Clara is able to speak and Terl doesn't see her, he will move to her. But if Clara can't speak then Terl will leave. Looking back on it there was probably a more efficient way to code this, but it should work. We tested it a whole bunch with different party combinations in different places.
Sign In or Register to comment.