Difference between revisions of "Talk:Bethesda Tutorial Basic Quest Scripting"

Jump to navigation Jump to search
imported>Ulithium Dragon
imported>Kristjin
Line 55: Line 55:
:I'm having the exact same issue. I did notice that while the text looks fine on the wiki, when I past it "GSQ01.SetObjectivedisplayed(30)" is out of alignment with the if statement, approximately 2.5 spaces too far right. I can realign it by backspacing 3 times and pressing tab, but I get the same compiling error after doing so. What's going on here!? --[[User:Ulithium Dragon|Ulithium Dragon]] 17:20, 11 April 2012 (EDT)
:I'm having the exact same issue. I did notice that while the text looks fine on the wiki, when I past it "GSQ01.SetObjectivedisplayed(30)" is out of alignment with the if statement, approximately 2.5 spaces too far right. I can realign it by backspacing 3 times and pressing tab, but I get the same compiling error after doing so. What's going on here!? --[[User:Ulithium Dragon|Ulithium Dragon]] 17:20, 11 April 2012 (EDT)
:UPDATE: I'm actually getting failure to compile messages for every script I try on the GSQAmulet I created! It fails to compile the auto-generated code that gets attached to every property! (This didn't happen before I tried to paste and save the pre-made code off this wiki tutorial) --[[User:Ulithium Dragon|Ulithium Dragon]] 17:36, 11 April 2012 (EDT)
:UPDATE: I'm actually getting failure to compile messages for every script I try on the GSQAmulet I created! It fails to compile the auto-generated code that gets attached to every property! (This didn't happen before I tried to paste and save the pre-made code off this wiki tutorial) --[[User:Ulithium Dragon|Ulithium Dragon]] 17:36, 11 April 2012 (EDT)
== Also having same problem with script compiling when following tutorial to the letter ==
I've actually gone through the tutorials step by step twice to see if I could eliminate whatever mistake I made here, but no luck.  When trying to set up the script for Bendu Olo's death, to fail the quest, I get the errors which read:
Starting 1 compile threads for 1 files...
Compiling "GSQBenduOloScript"...
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQBenduOloScript.psc(3,15): cannot name a variable or property the same as a known type or script
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQBenduOloScript.psc(6,12): IsCompleted is not a function or does not exist
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQBenduOloScript.psc(6,12): cannot call the member function IsCompleted alone or on a type, must call it on a variable
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQBenduOloScript.psc(7,8): SetStage is not a function or does not exist
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\GSQBenduOloScript.psc(7,8): cannot call the member function SetStage alone or on a type, must call it on a variable
No output generated for GSQBenduOloScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GSQBenduOloScript
the script I am using:
Scriptname GSQBenduOloScript extends ObjectReference 
Quest Property GSQ01 auto
Event OnDeath(Actor akKiller)
if (!GSQ01.IsCompleted())
GSQ01.SetStage(200)
endif
EndEvent
This is just a cut and paste from the tutorial, and when trying to save, the error above shows.
Anonymous user

Navigation menu