Replacing Protagonist with the 6th NPC, Code |
The Black Wyrm's Lair Terms of Use | Help Search Members Calendar |
Replacing Protagonist with the 6th NPC, Code |
Jan 9 2009, 07:47 PM
Post
#1
|
|
Mod Developer Posts: 1399 Joined: 19-April 05 |
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. |
|
|
Jan 9 2009, 08:51 PM
Post
#2
|
|
Forum Member Posts: 146 Joined: 1-November 06 From: Saint-Petersburg, Russia |
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). This post has been edited by Ardanis: Jan 9 2009, 08:53 PM -------------------- aka GeN1e
|
|
|
Lo-Fi Version | Time is now: 14th November 2024 - 04:43 PM |