Jump to content

Protagonist can die


Blash2

Recommended Posts

I think i was one of the ones that originally requested something like this (or it was that mod to auto resurrect if ressurect is available, end game if not). Pity about the dialog bugs, i was expecting biff the understudy to take over without problems.

 

I wonder if the feature can be brought into the EE engine.

Edited by SCO
Link to post

Is this mostly safe to use if you keep in mind that you shouldn't "finish" a battle with CHARNAME dead? I mean, if they die and are resurrected before a cutscene happens, things will be okay? You can just reload a save either way, but I'd like to get rid of those annoying "about to win and then oops, charname dies accidentally and it's game over" type of defeats.

Link to post
On 7/29/2017 at 8:29 PM, K4thos said:

What the tweak currently does:

1. sets bit4 flag to all ARE files:


COPY_EXISTING_REGEXP GLOB ~^.+\.are$~ ~override~
    READ_BYTE 0x14 "flags"
    WRITE_BYTE 0x14 ("%flags%" BOR BIT4)
BUT_ONLY

2. Adds code to global script that triggers Game Over normally if tweak is disabled, player1 is chunked or whole party dies:


IF
  Global("K#DISABLE_PC_CAN_DIE","GLOBAL",1)
  StateCheck(Player1,STATE_REALLY_DEAD)
THEN
  RESPONSE #100
    GameOver(19377)
END

IF
  OR(3)
    NumInPartyAlive(0)
    StateCheck(Player1,STATE_EXPLODING_DEATH)
    StateCheck(Player1,STATE_FROZEN_DEATH)
THEN
  RESPONSE #100
    GameOver(19377)
END

@K4thos to remove point 2 ("2. Adds code to global script that triggers Game Over normally if tweak is disabled, player1 is chunked or whole party dies:"), how do I have to modify the tp2 file?

Edited by Blash2
Link to post
Posted (edited)

Hello everybody.

Thanks to @K4thos for the original tweak, to the suggestions gathered, to me bothering everyone (lol) but most of all to @Roxanne completing the job, we have a new "Protagonist can die" tweak.

The new tweak:
- is compatible with the 2.5 releases and of course EET;
- makes the game end ONLY when everyone in the party is dead, regardless of charname's condition.

Just to better explain, my game didn't end even with charname chunked. I could revive him in a temple and of course I had to modify his appearance with EEKeeper. 

Enjoy! 

https://www.dropbox.com/s/ar7egyefm39m8o2/Protagonist_Can_Die_V93.zip?dl=1

 

EDIT: Charname can be petrified, imprisoned (level 9 wizard spell), mazed (level 8 wizard spell) etc.: gameover cutscene does not play, ever.

Edited by Blash2
Link to post
Guest Gregson

Hello, unfortunately it works only with new game, don't work on saves in already started campaign.

Link to post
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...