Hi, I'm really new to modding (as in... I just started less than a week ago!) and I'm trying to figure out how to implement an inn into the small settlement I'm building. I thought I had followed this tutorial right, but it won't let me save the code, and gives me a "Script Publican_ToLTavern_Daisy', line 14: Script command "01OakInnDoor.unlock" not found" warning. So... which script command SHOULD I be using? Am I wrong for using the Reference Editor ID? If I am, what should I be using instead, and is there anything special I should be doing?
Scriptname Publican_ToLTavern_Daisy
short rent
short rentday
short cleanup
short setup
begin gamemode
if ( rent == 1 )
if ( setup == 0 )
set rentday to GameDaysPassed
set setup to 1
01OakInnDoor.unlock
01OakBed.SetOwnership
else
if ( GameDaysPassed != rentday )
set cleanup to 1
endif
endif
if Player.GetinCell 011ShadeOakInn == 0
if ( Cleanup == 1 )
set Cleanup to 2
endif
endif
if ( Cleanup == 2 )
;resets The Variables
set rent to 0
set setup to 0
set rentday to 0
set cleanup to 0
01OakInnDoor.SetOpenState 0
01OakInnDoor.lock 30
01OakBed.SetOwnership DaisyInn
endif
endif
end