Scripting help (beginner)

Post » Wed Jun 20, 2012 6:03 am

You have not defined the alias for GSQTulys.

Go to the Quest Aliases Tab, and create an Alias named "GSQTulys" - assign that to your NPC either by picking it in the render window where you placed it, or by name.
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am

Post » Wed Jun 20, 2012 6:33 am

Looks to me like your actor reference is akSpeakerRef. Defined as an actor in akSpeaker.

akSpeaker.StartCombat(Game.GetPlayer())
User avatar
Hot
 
Posts: 3433
Joined: Sat Dec 01, 2007 6:22 pm

Post » Wed Jun 20, 2012 3:29 am

Looks to me like your actor reference is akSpeakerRef. Defined as an actor in akSpeaker.

akSpeaker.StartCombat(Game.GetPlayer())

Better to use an alias...get him to start using Best Practices, rather then trying to read the fragment code and set his variables that way.
User avatar
louise hamilton
 
Posts: 3412
Joined: Wed Jun 07, 2006 9:16 am

Post » Wed Jun 20, 2012 12:13 am

Starting 1 compile threads for 1 files...
Compiling "TIF__010100AA"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,0): variable Alias_GSQTulys is undefined
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,15): none is not a known user-defined type
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,24): none is not a known user-defined type
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(16,15): cannot name a variable or property the same as a known type or script
No output generated for TIF__010100AA, compilation failed.

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

Done, same error.
User avatar
Justin
 
Posts: 3409
Joined: Sun Sep 23, 2007 12:32 am

Post » Wed Jun 20, 2012 11:54 am

In order to make the alias "take", you will need to temporarily comment out the line that uses it, save the quest, then go back in and uncomment the line.


This is why it's best to make your aliases before you use them.
User avatar
Jeneene Hunte
 
Posts: 3478
Joined: Mon Sep 11, 2006 3:18 pm

Post » Wed Jun 20, 2012 4:31 pm

Ok I deleted the script, saved file, went back in and typed it again, and SAME ERROR! Is my alias right? All I have in the alias window is Name: GSQTulys, and Unique Actor Checked off, and selected GSQTulys.
User avatar
Love iz not
 
Posts: 3377
Joined: Sat Aug 25, 2007 8:55 pm

Post » Wed Jun 20, 2012 2:20 am

In order to get it into the fragment script, there MUST be at least one fragment, even if it's a comment. Thus my suggestion to comment it out, NOT delete it. Put a semicolon in front of the line, THEN exit the quest, THEN go back in and uncomment it. The fragment script will not compile if there are no fragments.
User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm

Post » Wed Jun 20, 2012 2:07 pm

So should I open the fragment script and put a ; on everything?
User avatar
Matthew Warren
 
Posts: 3463
Joined: Fri Oct 19, 2007 11:37 pm

Post » Wed Jun 20, 2012 3:45 pm

So should I open the fragment script and put a ; on everything?

No, just the one line in the actual fragment. The one that uses the alias. The fragment script has comments that say "Don't edit anything between this comment and the other one" and that's important to make sure you don't do that.

You need to do this so that the fragment code will successfully compile, and pull in the alias from the alias tab. If it doesn't compile, it won't pull in the alias, and until it pulls in the alias, the line that uses the alias won't compile.
User avatar
Mark
 
Posts: 3341
Joined: Wed May 23, 2007 11:59 am

Post » Wed Jun 20, 2012 12:04 am

Still nothing. I changed the script so it looked like this:
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__010100AA Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0;BEGIN CODE;Alias_GSQTulys.GetRef().StartCombat(Game.GetPlayer());END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentQuest Property GSQ01  Auto Quest Property MyFirstQuest  Auto Int Property NewProperty  Auto Quest Property FirstQuest  Auto 
Still get an error:
Starting 1 compile threads for 1 files...
Compiling "TIF__010100AA"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,0): variable Alias_GSQTulys is undefined
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,15): none is not a known user-defined type
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(9,24): none is not a known user-defined type
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__010100AA.psc(16,15): cannot name a variable or property the same as a known type or script
No output generated for TIF__010100AA, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__010100AA
User avatar
Tyrone Haywood
 
Posts: 3472
Joined: Sun Apr 29, 2007 7:10 am

Post » Wed Jun 20, 2012 9:45 am

Didn't I just TELL you not to edit the fragment script? you edit the FRAGMENTS, not the script itself. You've messed it up so badly it doesn't know what's supposed to be going on. It has an Endfunction, but no function start, for example.


I've told you a number of times how to fix it, but you just ignore my advice and just do random stuff...

You'll probably have to just delete the quest and start over with a clean slate. But try this: Remove the fragment script from the quest in the scripts tab to force it to make a new one. Make sure you've got the alias set up in the alias tab with your NPC selected in your render window, and that the FRAGMENT on your Topic End has the line

;Alias_GSQTulys.GetRef().StartCombat(Game.GetPlayer())


and NOTHING ELSE, ANYWHERE. Don't edit the fragment script, don't add any other fragments anywhere, we just want to get it to make a fresh script that hasn't been tampered with by commenting out random lines in the area between these lines:

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment

and

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

don't EVER edit ANYTHING between those lines. It WILL break your quest. It's automatically generated from the fragments in various places in your quest, and tampering with it WILL mess things up.
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Wed Jun 20, 2012 8:37 am

This thread is a joke, that's kinda why I stopped posting...

Didn't I just TELL you not to edit the fragment script? you edit the FRAGMENTS, not the script itself. You've messed it up so badly it doesn't know what's supposed to be going on. It has an Endfunction, but no function start, for example.


I've told you a number of times how to fix it, but you just ignore my advice and just do random stuff...

You'll probably have to just delete the quest and start over with a clean slate. But try this: Remove the fragment script from the quest in the scripts tab to force it to make a new one. Make sure you've got the alias set up in the alias tab with your NPC selected in your render window, and that the FRAGMENT on your Topic End has the line

;Alias_GSQTulys.GetRef().StartCombat(Game.GetPlayer())


and NOTHING ELSE, ANYWHERE. Don't edit the fragment script, don't add any other fragments anywhere, we just want to get it to make a fresh script that hasn't been tampered with by commenting out random lines in the area between these lines:

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment

and

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

don't EVER edit ANYTHING between those lines. It WILL break your quest. It's automatically generated from the fragments in various places in your quest, and tampering with it WILL mess things up.
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Previous

Return to V - Skyrim