Scriptname CourtshipMeet01Script extends ObjectReference {Advances quest when player sits at the bar.}Quest Property CourtshipMeetQuest Auto Event OnActivate(ObjectReference CourtshipChairPlayer) if GetOwningQuest().GetStage < 20 if GetOwningQuest().GetStage > 10 GetOwningQuest().SetObjectiveDisplayed(20) GetOwningQuest().SetStage(20) EndIf EndIfEndEvent
When I try to compile it in Notepad++ it has the following errors:
D:\ProgramFiles\Notepad++>"D:\Games\Steam\steamapps\common\Skyrim\Papyrus compil
er\PapyrusCompiler.exe" "CourtshipSitSCRIPT.psc" -f="TESV_Papyrus_Flags.flg" -i=
"D:\Games\Steam\steamapps\common\Skyrim\Data\Scripts\Source" -o="D:\Games\Steam\
steamapps\common\Skyrim\Data\Scripts"
Starting 1 compile threads for 1 files...
Compiling "CourtshipSitSCRIPT"...
D:\Games\Steam\steamapps\common\Skyrim\Data\Scripts\Source\CourtshipSitSCRIPT.ps
c(14,11): no viable alternative at input 'CourtshipMeet01'
D:\Games\Steam\steamapps\common\Skyrim\Data\Scripts\Source\CourtshipSitSCRIPT.ps
c(0,0): filename does not match script name: courtshipmeet01script
No output generated for CourtshipSitSCRIPT.psc, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on CourtshipSitSCRIPT.psc
D:\ProgramFiles\Notepad++>pause
Press any key to continue . . .
Back when I was doing programming for university, understanding the error messages was always the hardest part for me, so perhaps I would know where to go from here or how to get it to work if I understood what the output was. So I guess, if anyone can explain what the various error messages likely relate to, and if I'm going about making the chair activation progress the quest the right way that would be really helpful, thanks!