Jump to content

Courier delivers message and key on startup


0xLordx0

Recommended Posts

To utilize the courier, you're interested in the Papyrus script WICourierScript -- you can find it in the Papyrus script manager.

 

I'm at work now, so don't have it in front of me, but as I recall there were various methods provided in there to have the courier deliver a reference, an alias, or even a base object, I think. Take a look at the Dawnstar Museum quest -- it's DA07Init or Intro or something like that -- for an example of how to use the courier.

 

The catch is that I don't think the courier can deliver multiple items (letter and key). That's easy enough to work around, though -- attach a script to your letter that uses the OnContainerChanged event to also add the key when it enters the player's inventory. (Should probably add a variable to make that run only once, otherwise the player could get swamped with keys if he/she e.g. puts the letter in a container and then takes it out again...) Also probably worth taking a look at whatever script it is that controls the courier delivering the letter and inheritance to you when a follower dies; I have no idea where this is, but it should show you how you can deliver multiple items from the courier.

 

I'm not sure what the delay is between calling this function and the courier actually delivering the item, but it's something I'm going to be using myself before long, so hopefully I'll have some more information then.

 

As for setting this all up on start up, you'll need to put your code inside the Init event. Or maybe it's something else, I'm now not finding any reference on the wiki to this event, but I could have sworn that's what it was...

Link to comment
Share on other sites

wow..

 

Lemme get the solution off of it...

 

 

 

---------

 

Well, I will try.

 

For an example go into the quest MS06.

 

You only need this line of code to use in your script "(CourierQuest as WICourierScript).AddItemToContainer(YOUROBJECTHERE)"

 

Make sure you add CourierQuest and your object to the properties window.

 

Getting him to say what you want requires a little more explanation.

 

Go into WICourier quest, look at the dialogue. Then right click (my example will be letter from a friend) and then you will see his default stuff. Make sure you add the right OR/AND configuration, and add your object to the list of conditionals, which will make him say that specific line when he delivers it.

 

Your welcome. :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...