Scripting errors what do this mean

Post » Mon Nov 19, 2012 11:19 am

This is my first attempt at scripting and am folowing the creation kit quest tutorial quest
my code is

Event OnDeath(Actor killer)
HammeroftheGods.SetObjectiveDisplayed(20)
HammeroftheGods.SetStage(20)
EndEvent


When i save im given an error compelation failed and when i compil i get this


Starting 1 compile threads for 1 files...
Compiling "HammeroftheGods"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\HammeroftheGods.psc(1,0): mismatched input 'Event' expecting SCRIPTNAME
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\HammeroftheGods.psc(0,0): error while attempting to read script HammeroftheGods: Object reference not set to an instance of an object.
No output generated for HammeroftheGods, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on HammeroftheGods

can someone tell me what im doing wrong
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm

Post » Mon Nov 19, 2012 4:51 am

from what i can se, and with my limited knowledge of scripting you forgot to do one key thing.
Set the Object Reference.

the wiki on it is http://www.creationkit.com/Bethesda_Tutorial_Basic_Quest_Scripting

I might be wrong, but i cant se that in your script.

And for furture scripting, please enclose your scripts and/or logs in the spoiler/code tag, makes it alot easyer for the rest of us to help you :)
User avatar
Schel[Anne]FTL
 
Posts: 3384
Joined: Thu Nov 16, 2006 6:53 pm

Post » Sun Nov 18, 2012 11:56 pm

That error means your script doesn't have a ScriptName declaration. The wiki has a page on http://www.creationkit.com/Script_File_Structure that can serve as a useful reference.

If you're new to Papyrus, I've written a http://cipscis.com/skyrim/tutorials/beginners.aspx tutorial that you might find helpful

Echoing Treeki's request for you to use spoiler and code tags, please take a quick look at the stickied http://www.gamesas.com/topic/1347469-how-to-ask-for-scripting-help/page__view__getnewpost thread. You've done most of it right, but that includes instructions on how to get the formatting to work.

Cipscis
User avatar
Rob Davidson
 
Posts: 3422
Joined: Thu Aug 02, 2007 2:52 am


Return to V - Skyrim