I have one simple request, I need a script that will disable NPC's body after one game day since his death. I've tried to do this on my own, but I've failed (I've never tried real scripting, just very simple ones)
Thanks in advance!
begin mnmDisableAfterDeathScriptshort deathDayshort deathHourif ( GetDisabled ) returnendifif ( GetHealth <= 0 ) if ( deathDay == 0 ) set deathDay to Day set deathHour to GameHour endif if ( Day > deathDay ) if ( GameHour > deathHour ) disable endif endif returnendifif ( GetHealthGetRatio <= 0.04 ) set deathDay to Day set deathHour to GameHour ModCurrentHealth -10000 ; really kill me, ensuring GetHealth returns <= 0endifend[EDIT]added code section to GetHealth