Replacing Protagonist with the 6th NPC

Started by Vlad, January 09, 2009, 07:47:02 PM

Previous topic - Next topic

Vlad

About 8 years ago, when I started modding, I solved the problem of removing your protagonist from the game and replacing him/her with another NPC. I'd like to put this code here by memory, so if someone wants to make this trick, he/she can do this. Just please don't forget to mention that this code is mine, and not yours. The first script block codes whichever trap or trigger, which triggers this script:

IF
  IsOverMe(Player2)
THEN
  RESPONSE #100
      StartCutScene("RemProt")
END

The following block removes Protagonist (kills him/her instantly) and replaces him/her with Player 2, for example Imoen. Then you'll have an empty spot for the sixth NPC. Just a note, if you have some romances, don't try this.  ;)

RemProt.bcs:

IF
  Global("VP_Kill_Protagonist","GLOBAL",0)
THEN
  RESPONSE #100
     CutSceneId(Player2)
     SetGlobal("VP_Kill_Protagonist","GLOBAL",1)
     ActionOverride(Player1,PlayDead(0))
     FadeToColor([20.0],0)
     ForceSpell(Player1,SKIN_DANCER_RESTORE)
     ActionOverride("TR...01",DestroySelf())
     FadeFromColor([20.0],0)
     EndCutSceneMode()
END

"TR...01" - is a death variable of the Skin Dancer creature who reveals himself in Trademeet. I don't rememebr by heart, but you can find it in NI.

Ardanis

#1
I remember reading about it a couple of years ago here on BWL. Was quite surprised to know that was possible.

For a little more detail - the replacement is carried out by the "151 - replace creature" opcode (which is being used by the SKIN_DANCER_RESTORE spell).
aka GeN1e

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview