Papyrus fragment help

Post » Thu Oct 29, 2015 12:18 am

I am trying to set up dialog where the NPC gives the player a few items.

- My dialog is created and in.

- I put in quest stages 0 and 10

- I put this script in the Topic Info Form 'GetOwningQuest().SetStage 10' and it compiles fine.

- Now I am trying to add a fragment in Papyrus Fragment Box in Quest Stage 10. I put in the box...

; adding stuff
Actor PlayerRef = Game.GetPlayer()
PlayerRef.AddItem(Gold001, 500)
PlayerRef.AddItem(Basket03)
PlayerRef.AddItem(FoodSweetroll, 3)

Now I am a little confused, how do I set the properties of this to point to those items?

User avatar
Jade MacSpade
 
Posts: 3432
Joined: Thu Jul 20, 2006 9:53 pm

Post » Wed Oct 28, 2015 2:31 pm

Go to the Script tab and double click the quest script and then add the properties.

User avatar
Matthew Barrows
 
Posts: 3388
Joined: Thu Jun 28, 2007 11:24 pm

Post » Thu Oct 29, 2015 2:43 am

Thanks for the reply. Unfortunately I can't get that far, right now I can't get a compile on either script or access to add the properties on the Quest Stage script...

http://i110.photobucket.com/albums/n99/Shezrie/ScriptError2_zpsfqseb2is.jpg

http://i110.photobucket.com/albums/n99/Shezrie/ScriptError1_zpsfa1p0h9v.jpg

User avatar
Teghan Harris
 
Posts: 3370
Joined: Mon Mar 05, 2007 1:31 pm

Post » Wed Oct 28, 2015 5:23 pm

setStage(10) and not setStage 10

:)

User avatar
Damned_Queen
 
Posts: 3425
Joined: Fri Apr 20, 2007 5:18 pm

Post » Thu Oct 29, 2015 1:14 am

ON your second error: put a ; before any PlayerREF instruction then compile and then add the properties.

After that remove the ;

User avatar
Alessandra Botham
 
Posts: 3440
Joined: Mon Nov 13, 2006 6:27 pm

Post » Thu Oct 29, 2015 2:14 am

Did it exactly as you said and it works perfectly now! Thank you so much! I have been struggling with that one for too long now. :)

User avatar
ezra
 
Posts: 3510
Joined: Sun Aug 12, 2007 6:40 pm

Post » Wed Oct 28, 2015 9:53 pm

You're welcome :)

User avatar
Misty lt
 
Posts: 3400
Joined: Mon Dec 25, 2006 10:06 am


Return to V - Skyrim

cron