Difference between revisions of "Talk:Resurrecting the Player"
Jump to navigation
Jump to search
no edit summary
imported>Althir (New page: Try this one. It works fine for me. You have to put this script into the script window of the Base "player", which can be found under the "NPC" section. <code>ScriptName 000PlayerResu...) |
imported>Althir |
||
Line 34: | Line 34: | ||
;if they reach the 50 Points Threshold | ;if they reach the 50 Points Threshold | ||
;be sure that the HitPoints never fall below 50 Points | ;be sure that the HitPoints never fall below 50 Points | ||
if (GetActorValue Health < 51) | if (GetActorValue Health < 51) | ||
set CurrentHealth to GetActorValue Health | set CurrentHealth to GetActorValue Health | ||
if (CurrentHealth != 50) | if (CurrentHealth != 50) | ||
set FixHealth to (50 - CurrentHealth) | set FixHealth to (50 - CurrentHealth) | ||
Line 46: | Line 43: | ||
endif | endif | ||
;Stop the enemys from attacking the Player | |||
;Then set the Player to some kind of Death state by detracting his Fatigue | ;Then set the Player to some kind of Death state by detracting his Fatigue | ||
if (Death != 1) | if (Death != 1) | ||
StopCombatAlarmOnActor | |||
SetGhost 1 | SetGhost 1 | ||
ForceActorValue Fatigue -1000 | ForceActorValue Fatigue -1000 | ||
Line 70: | Line 69: | ||
set BaseFatigue to (GetBaseActorValue Fatigue) | set BaseFatigue to (GetBaseActorValue Fatigue) | ||
ForceActorValue Fatigue BaseFatigue | ForceActorValue Fatigue BaseFatigue | ||
set init to 0 | set init to 0 | ||
set Death to 0 | |||
endif | endif | ||
endif | endif |