Script HELP PLEASE!

Post » Thu Feb 07, 2013 12:48 pm

Sorry for my bad english.


I have a quest with 2 references in Alias "Go tawern" with package "PettyGoTawernPAckage" and "GoSawmill" with "PettyGoSawmillPackage".


I want to do this:

When i choose dialog 1, My NPC Petty will start "PettyGoTawernPAckage"
When i choose dialog 2. My NPC Petty will start "PettyGoSawmillPackage"



here is th code:




Function GoToSawmill()
PettyGoSawmill.Forcerefto(Petty)
Petty.EvaluatePackage()
endFunction

Function GoToTawern()
PettyGTawern.Forcerefto(Petty)
Petty.EvaluatePackage()
endFunction


ReferenceAlias Property PettyGoSawmill Auto
ReferenceAlias Property PettyGoTawern Auto
Actor Property Petty Auto



With this code, everithing works fine! BUT ONLY ONES!

I mean if I choose dialogue 1, petty will start package "PettyGoTawernPAckage"
Then if I choose dialogue 2. petty will start package "PettyGoSawmillPackage"
but after that, if I choose dialogue 1, petty still will do the dialogue 2 Package...



How can i FIX this? PLEASE help!
User avatar
Esther Fernandez
 
Posts: 3415
Joined: Wed Sep 27, 2006 11:52 am

Return to V - Skyrim