detect if NPC have been killed by player or by script

Post » Fri May 13, 2011 8:40 pm

im making a mod to fix savegames after the tenpenny tower quest have been completed by choosing the peacefull solution

when the quest is over, a time machine apear in the basemant,
you can use it to go kill Roy Phillips in the past, when you come back all the residents are back and alive.

but i have no way to tell witch NPC was dead before the Tenpenny quest is completed
because that damn MS12fin Quest Script kill all of them

is there a way to detect who killed a NPC ?



i also have another question : is there a way to reset a vendor inventory ?
before i made that mod, i unlocked the armory and took all the items
now, chief gustavo won't sell anything and his caps are at 0
i try using the AddItem and ResetInventory commands on him and on the armory, but it do not works.
User avatar
electro_fantics
 
Posts: 3448
Joined: Fri Mar 30, 2007 11:50 pm

Post » Fri May 13, 2011 4:55 pm

Why does it matter who killed an NPC before the quest kills them all? Just run your own quest script before they get killed by the TenPenny quest and check if they are dead (using GetDead) and store that info, then when you resurrect the residents, just don't resurrect the ones that were killed before the TenPenny quest killed them.

I don't know why he won't sell anything, his vendor chest is set to respawn - which should happen every 3-4 days.
User avatar
Quick Draw
 
Posts: 3423
Joined: Sun Sep 30, 2007 4:56 am

Post » Fri May 13, 2011 3:59 pm

http://geck.gamesas.com/index.php/IsKiller Use the same reference as the quest uses to kill them off, so if it's 1 then they died of sudden script-related illness.
User avatar
Red Bevinz
 
Posts: 3318
Joined: Thu Sep 20, 2007 7:25 am

Post » Fri May 13, 2011 4:52 am

Why does it matter who killed an NPC before the quest kills them all? Just run your own quest script before they get killed by the TenPenny quest and check if they are dead (using GetDead) and store that info, then when you resurrect the residents, just don't resurrect the ones that were killed before the TenPenny quest killed them.

I don't know why he won't sell anything, his vendor chest is set to respawn - which should happen every 3-4 days.

its too late to use GetDead, my last save before the quest ended is way too old and im not starting a new game.

i already try waiting 2 days but it did not work, im going to try 4-5 days

i also noticed that there is a linked ref on the armory ref, i don't know what is that for or how it works
im going to try adding items to that container, its in a cell with a lot of other containers.
User avatar
Richard Dixon
 
Posts: 3461
Joined: Thu Jun 07, 2007 1:29 pm

Post » Fri May 13, 2011 12:12 pm

http://geck.gamesas.com/index.php/IsKiller Use the same reference as the quest uses to kill them off, so if it's 1 then they died of sudden script-related illness.

thanks, i will try it now
i think it will work, i checked it in the GECK manual http://geck.gamesas.com/index.php/IsKiller


*** EDIT ***
ok i waited 5 days and now he selling things again

*** EDIT 2 ***
"IsKiller player" did not work
when the quest script disable them the IsKiller is reset back to 0
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm


Return to Fallout 3