Jump to content

[not an issue] Kangaxx and Protection from Undead scrolls


Recommended Posts

There is the popular tactic for fighting Kangaxx by using "Protection from Undead" scrolls on party members to protect themselves.

However, that strategy is flawed, as his combat script expects at least one party member to be "visible" for the transformation into the demi-lich form to succeed. If that condition isn't met, then Kangaxx will stay in his original lich form indefinitely (or until protection runs out).

I propose to add an additional check for this case, so that his transformation can always succeed. To keep changes to a minimum I'd suggest to change his combat script (HLKANG.BCS) to this:

Spoiler
IF
  HP(Myself,1)
  Global("KangaxxHurt","LOCALS",0)
  See([PC])   // <-- added
THEN
  RESPONSE #100
    SetGlobal("KangaxxHurt","LOCALS",1)
    StartDialogueNoSet([PC])
END

// Special case: Party is protected from Undead
IF
  HP(Myself,1)
  Global("KangaxxHurt","LOCALS",0)
  !See([PC])
THEN
  RESPONSE #100
    SetGlobal("KangaxxHurt","LOCALS",1)
    SetGlobal("cd_change","LOCALS",1)
    SetGlobalTimer("KangaxxHurtTimer","LOCALS",3) // <-- give the player time to read Kangaxx overhead line
    // Reusing a line from his dialog:
    DisplayStringHead(Myself,56234)   // You have truly freed me, and the world will be burned to ash for your sin!
END

IF
  Global("cd_change","LOCALS",1)
  !GlobalTimerNotExpired("KangaxxHurtTimer","LOCALS")   // <-- added
THEN
  RESPONSE #100
    ReallyForceSpell(Myself,ZOMBIE_SICKNESS)
    ScreenShake([5.5],5)
    ReallyForceSpell(Myself,LICH_REPLACE_SELF)
    SetGlobal("cd_change","LOCALS",2)
END

 

I'm aware that this issue is known almost as long as the game itself and almost expected by the players to work like this. Would it be worth fixing it in EEFP?

Edit: Seems to be fixed in recent EE patches, so no fix is needed.

Edited by argent77
Link to comment

I can't reproduce this on EE: even if my test PC is protected from undead, Kangaxx still initiates dialog with her at 1hp. And that seems to fit what the IESDP says about StartDialogueNoSet - if the target is invalid it defaults to Player1.

(But possibly I'm missing something?)

Link to comment

Well, that tactics is (was) imo a little bit different. In order for Kangy to "see you" you casting protection from undead on all but one party member on which (main damage dealer using something like Carsomyr) you cast protection from magic scroll. Kangaxx can see him and will transform but he can't do shit to him and will die. It was like that in original game (some people used to kill Kangaxx like 10 minutes after leaving Irenicus Dungeon) but maybe Beamdog has changed it?

Link to comment
On 6/7/2022 at 7:06 PM, argent77 said:

Looks like you're right. I first tried with a party from an existing save which didn't trigger the dialog no matter how long I attacked. Trying again with a fresh party from scratch triggered the dialog correctly.

This topic can be closed.

I just fought Kangaxx with 2.6.6 and the EEfixpack, and I ran into the no dialog trigger bug when using PfU on all characters. I needed to have one character not under PfU so Kangaxx initiate his dialog and changed to demi lich.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...