CK says "property is undefined" even when it IS defi

Post » Tue Jun 19, 2012 6:24 am

Hopefully someone can shed some light on this.

I have a script in my quest. It has a scene attached to it as a property. http://i101.photobucket.com/albums/m43/danburite/aaaScreen1.png.
Now, I'm trying to get that scene to play, using a fragment on a quest stage. The idea is that the stage comes up, and the script plays the scene. I'm not a great scripter (ESPECIALLY with Papyrus), but as far as I can tell, I've done it right. But it brings up http://i101.photobucket.com/albums/m43/danburite/aaaScreen2.png.

So I probably haven't done it right. Can anyone help me?
User avatar
dean Cutler
 
Posts: 3411
Joined: Wed Jul 18, 2007 7:29 am

Post » Mon Jun 18, 2012 7:22 pm

Edit: Don't mind me for now.

Edit2: Mind me now. Your properties for the script don't transfer over to papyrus fragments. If you don't mind, could you post the script (inside code tags preferably)?

If the *only* thing your script does is start the scene then you can do that entirely in the fragment. You just need to add the scene as a property and then call start(). If there's more to your script than that, I can think of a few other ways of starting the scene...
User avatar
Dj Matty P
 
Posts: 3398
Joined: Sat Jun 09, 2007 12:31 am

Post » Tue Jun 19, 2012 10:59 am

Edit: Don't mind me for now.

Edit2: Mind me now. Your properties for the script don't transfer over to papyrus fragments.

That's really interesting to know. I never would've guessed. :)

If the *only* thing your script does is start the scene then you can do that entirely in the fragment. You just need to add the scene as a property and then call start(). If there's more to your script than that, I can think of a few other ways of starting the scene...

And yeah, that's the only thing the script does. So, I've tried doing it in the fragment instead, like this:
Scene Property Stage12 Auto
Stage12.Start()

But now I get this error:

Starting 1 compile threads for 1 files...
Compiling "QF_danMainQuest1_01003F83"...
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_danMainQuest1_01003F83.psc(33,6): no viable alternative at input 'Property'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_danMainQuest1_01003F83.psc(34,7): no viable alternative at input '.'
No output generated for QF_danMainQuest1_01003F83, compilation failed.

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

User avatar
Jeff Turner
 
Posts: 3458
Joined: Tue Sep 04, 2007 5:35 pm

Post » Mon Jun 18, 2012 7:42 pm

That's because fragments are treated slightly differently.

Go to the scripts tab (the one from your first picture). Select QF_danMainQuest1_01003F83 and then click on properties. From there, you should be able to add your scene as a property.
User avatar
jessica breen
 
Posts: 3524
Joined: Thu Aug 03, 2006 1:04 am

Post » Mon Jun 18, 2012 10:02 pm

That's because fragments are treated slightly differently.

Go to the scripts tab (the one from your first picture). Select QF_danMainQuest1_01003F83 and then click on properties. From there, you should be able to add your scene as a property.

Thanks for the help. It's not working perfectly yet (AI troubles), but you got rid of the errors I've been struggling with for nearly a week. Thank you so, so much. :D
User avatar
Frank Firefly
 
Posts: 3429
Joined: Sun Aug 19, 2007 9:34 am


Return to V - Skyrim