MoveTo scripting Problems during scene.

Post » Tue Aug 13, 2013 12:10 pm

Hello!

New here and fairly new to scripting, I've learned what I have from the Creation Kit Wiki and reading posts and other tutorials. I don't know a whole lot but I'm grasping the basics!

My problem is getting the MoveTo() to work. I'll explain my dillema. I have a scene set up in a quest where an actor says a line of dialouge and then another actor says a line of dialouge back. During the second actors line of dialouge I want him to appear behind the first actor and say the line.

I attempted putting this in the in the fragment box begin under his line of dialouge editing window.

objectReference property XMarkerHeadingThiefScene01 autoakspeaker.MoveTo(XMarkerHeadingThiefScene01)

This is the compile log for that. (It failed to compile)

Starting 1 compile threads for 1 files...Compiling "TIF__01007554"...D:\Steam 2\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__01007554.psc(9,0): no viable alternative at input 'objectReference'D:\Steam 2\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__01007554.psc(9,25): no viable alternative at input 'XMarkerHeadingThiefScene01'No output generated for TIF__01007554, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__01007554

I've read that no viable alternative at input means a a malformed line or missing parts. I can't figure out what I am missing.

Also I've look through the forums for a little while and couldn't find my situation anywhere. I attempted to take other peoples MoveTo() problem fixes and change them for my situation but to no avail.

Thank you ahead of time for any help!

User avatar
Strawberry
 
Posts: 3446
Joined: Thu Jul 05, 2007 11:08 am

Post » Tue Aug 13, 2013 3:58 am

Fragments can be a pain in the you know what, so I've taken to doing things the long way around, but I usually don't have the frustration of property errors. Here's what I do:

Put a simple ";" in the fragment box and kit compile. That should create the tif for you. It's not a bad idea to completely exit the dialog utility ans save your plugin at this point.

Then select the fragment and create an object reference property named "XMarkerHeadingThiefScene01". If that's the name of your reference, it should auto-fill as evidenced by the little pencil looking thing. Then you can put your MoveTo fragment in the box and it should compile now.

User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm

Post » Mon Aug 12, 2013 11:32 pm

I put this in the fragment box

;

Compiled and then put this

;ObjectReference Property XMarkerHeadingThiefScene01 autoakspeaker.MoveTo(XMarkerHeadingThiefScene01)

I believe that is what you told me to do, correct me if I'm wrong!

This is the failed compile log

Starting 1 compile threads for 1 files...Compiling "TIF__01007554"...D:\Steam 2\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__01007554.psc(10,17): variable XMarkerHeadingThiefScene01 is undefinedNo output generated for TIF__01007554, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__01007554
User avatar
nath
 
Posts: 3463
Joined: Mon Jan 22, 2007 5:34 am

Post » Tue Aug 13, 2013 11:48 am

Ok ignore that last post! I went into the actual script and defined a objectReference Property and filled it with my marker.

Then I put this into the fragment box

[;akspeaker.MoveTo(XMarkerHeadingThiefScene01)

I will see if it works in game in a little while!

User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am


Return to V - Skyrim