[Deleted]

[Deleted Thread For Personal Reasons]

If you want to remove permadeath entirely, use the casual mode patch and turn on flag 0xB0 at the start of the game.

In your case, do you want any stats/exp the generics have gained to carry over into the next chapter?

A) Carry over stats if they did not die.
Use CHECK_ALIVE and if true, do nothing, otherwise DISA them to kill them off and reset stats when you next load them.

B) Always carry over stats.
Use the patch UNCM and the event command UNCR to remove the status DEAD of each generic at the end of each chapter.

C) Reset stats each chapter.
Use DISA on each char at the end of each chapter to kill them off properly.

1 Like

I want to carry over stats only if they survive the chapter. However if they die than they will lose all stats.
I used casual mode patch and it’s working, now I only need to figure out how CHECK_ALIVE and those ID Condition works…
Thanks for the help!

If you are using Casual Mode you do not need to do anything else as all player units will always be undeployed when killed instead of marked as dead. Their stats will always carry over and you can use that character again in each new chapter.

Eg. Seth dies in chapter 1 and you can use him again in chapter 2.

Edit:
Example of A)

Before loading units, we erase any units that have died.

First, we erase unit id 0x2, who is Seth.
image

I put this CHECK_ALIVE into a separate event so that you can recycle code, rather than writing the same 5 lines over and over again for every generic unit.

You could write another unit id to memory slot 2 and call the event for each generic unit ID before loading your units.

Usually when player units die, they are not erased, but instead marked as “dead” so that they won’t be loaded. What I’ve done here just erases a player unit if they are marked as “dead” so that when you try loading them, it will be a freshly made unit.

2 Likes

Thank you so much… I did what you said and worked it!

1 Like