Incredibly stupid script issue.

Post » Fri May 13, 2011 6:36 pm

I have this line in the result script of a dialog line:

SetObjectiveDisplayed TCQ1 15Set DannyKaelRef.HelpDanny to 1Player.AddItem TCQ1DannyKey 1


Now, when I go to close the quest, it says that result script fails to compile. It also won't work ingame, prooving it so. Does anyone see anything wrong in there? This must be an incredibly stupid error on my part, I have spent the better part of an hour trying to figure out what's wrong with that little block of code, but I can't. I have a quest which has a ID of TCQ1. I have an NPC with a script on him. There is a declared Short variable called HelpDanny. The ref of the placed NPC is DannyKaelRef. I made a key which has an ID of TCQ1DannyKey. I checked these things as I typed each one to make sure. I ran it through Cipscis's script validator just incase, and no errors came of it. What is wrong with the script? It shouldn't be a typo, I have retyped it only about 40 times. All those objects/ref's/variables exist in the proper place, so that's not it. What else could be wrong? Please someone help me this is killing me. T.T :P

Thanks to anyone who can help me figure it out!!!

Gunmaster95
User avatar
Gill Mackin
 
Posts: 3384
Joined: Sat Dec 16, 2006 9:58 pm

Post » Fri May 13, 2011 11:41 am

And you double- checked that Danny's script is selected in the NPC object?
User avatar
luke trodden
 
Posts: 3445
Joined: Sun Jun 24, 2007 12:48 am

Post » Fri May 13, 2011 1:28 pm

Yeah, it is selected. But even if it wasn't, that wouldn't explain why it says 'Script fails to compile' and then it won't run.
User avatar
sarah
 
Posts: 3430
Joined: Wed Jul 05, 2006 1:53 pm

Post » Fri May 13, 2011 9:20 pm

Writing scripts without using geck powerup is needlessly painful. Get it from newvegasnexus, and then geck will show you the actual error message and line number.

Your problem is coming because setobjectivedisplayed takes one more argument than what you are giving it. But, with geck powerup, you would know that.
User avatar
Nina Mccormick
 
Posts: 3507
Joined: Mon Sep 18, 2006 5:38 pm

Post » Sat May 14, 2011 12:21 am

Writing scripts without using geck powerup is needlessly painful. Get it from newvegasnexus, and then geck will show you the actual error message and line number.

Your problem is coming because setobjectivedisplayed takes one more argument than what you are giving it. But, with geck powerup, you would know that.

Doooooooooooooh! :facepalm:

THANK YOU!!! Thats what it is. Oh man, I have used that command at least 50 times in my mod so far, how did I miss that. T.T

I will look into geck powerup since I hate the lack of error detail or existance. Thanks alot davidallen!!

G95

EDIT: I changed it and got everything working as planned! I really did name this topic appropriately didn't I?
User avatar
Peetay
 
Posts: 3303
Joined: Sun Jul 22, 2007 10:33 am


Return to Fallout: New Vegas