Script fragment fails to compile.

Post » Mon Nov 19, 2012 10:43 am

Hello there.

I was deep into creating a follower with custom voice, until it came to the GenericFavorDialogue. I copied from the original quest this fragment, (pDialogueFollower as DialogueFollowerScript).SetFollower(akspeaker)
and it came up as having failed to compile the script, showing these two errors.


variable pDialogueFollower is undefined

cannot cast a none to a dialoguefollowerscript, types are incompatible

is there any reason why this particular script would not compile, but the fragments from the followerdialogue quest would? Is there any way to fix this??

Thanks in advance for any help you can provide.
User avatar
Brooks Hardison
 
Posts: 3410
Joined: Fri Sep 07, 2007 3:14 am

Post » Mon Nov 19, 2012 7:15 pm

pDialogueFollower is a property on the original fragment. Have you created and filled it on yours?
User avatar
Hope Greenhaw
 
Posts: 3368
Joined: Fri Aug 17, 2007 8:44 pm

Post » Mon Nov 19, 2012 10:34 am

thanks for the help,

the only problem is that it wont allow me to fill the property after i compile the script.
User avatar
Rodney C
 
Posts: 3520
Joined: Sat Aug 18, 2007 12:54 am

Post » Mon Nov 19, 2012 4:08 pm

Thanks for the help. It wont allow me to define the properties when I enter the fragment.
User avatar
Evaa
 
Posts: 3502
Joined: Mon Dec 18, 2006 9:11 am

Post » Mon Nov 19, 2012 5:30 pm

Put a semicolon in the fragment. Compile, and click OK on the window (topic, package, whatever). Now reopen it and you can edit the properties.
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am


Return to V - Skyrim