Talk:Bethesda Tutorial Basic Quest Scripting
Help
Starting 1 compile threads for 1 files... Compiling "GDQRobesScript"... c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\GDQ01.psc(7,13): script property GDQ01 already defined c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\GDQ01.psc(7,13): script variable ::GDQ01_var already defined c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\GDQ01.psc(7,13): script property GDQ01 already has a get function defined c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\GDQ01.psc(7,13): script property GDQ01 already has a set function defined c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\GDQRobesScript.psc(3,13): cannot name a variable or property the same as a known type or script No output generated for GDQRobesScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on GDQRobesScript
What?!
Errors during compiling with the given script for amulet. The actual code is copy paste from what's given in the bottom section.
Starting 1 compile threads for 1 files...
Compiling "GSQAmuletScript"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQAmuletScript.psc(6,9): SetStage is not a function or does not exist
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQAmuletScript.psc(6,9): cannot call the member function SetStage alone or on a type, must call it on a variable
No output generated for GSQAmuletScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GSQAmuletScript —The preceding unsigned comment was added by 22:55, 22 February 2012 (talk • contribs) Kroama
- That sounds like you've specified the wrong type for your GSQ01 property. You expect a section of a script to compile on its own. Did you follow all the steps in this tutorial?
- -- Cipscis 23:01, 22 February 2012 (EST)
There were no errors in anything up until this point, other scripts compiled properly as well. The quest in game works as it should, minus the fact that getting the amulet does not progress the quest further. I'll post the code i have in the script.
Scriptname GSQAmuletScript extends ObjectReference
Quest Property GSQAmu Auto
Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)
if (newContainer == Game.GetPlayer())
GSQ01.SetStage(30)
endif
EndEvent