I use Simple Needs 4.5 (http://www.fallout3nexus.com/downloads/file.php?id=3769) by trebtreb and want to merge the playerbed script from it with the bed from Portable Camp (http://www.fallout3nexus.com/downloads/file.php?id=2356) by diernayr so that I get the sleep benefits of using a dropped cot.
Here is the script from Simple Needs:
scn PlayerBedSCRIPT
short playerSleep
begin onactivate
if isActionRef player == 1
; set playerBed ref variable to me
set playerSleep to 1
endif
Activate
end
begin menumode
; player has activated me and is sleeping
if playerSleep == 1 && IsPCSleeping == 1
set playerSleep to 2
endif
end
begin gamemode
if playerSleep > 0
if playerSleep == 2
; player has actually slept in this bed
; give player Well-Rested spell and then clear variable
player.CastImmediateOnSelf WellRestedSpell
;=======================================
if ( Player.IsSpellTarget SimpleNeedsSleep == 1 )
Player.RemoveSpell SimpleNeedsSleep
ShowMessage SimpleNeedsFatigueOFFMESG
EndIf
Set SimpleNeedsSleepQuest.SleepVar to 100
set SimpleNeedsSleepQuest.LastSleepDay to GameDaysPassed
;=======================================
endif
; clear variable
set playerSleep to 0
endif
end
And here is the one from Portable Camp:
scn aapsbedscript2
begin onactivate
if player.issneaking == 1
player.additem "aapsbedbook" 1
disable
markfordelete
else
activate
endif
end
Any help would truly be welcome. I think that the Simple Needs script needs to be part of the Portable Camp script, but I'm not sure.
Thank you in advance for your assistance.