Placing an object in the world via script

Post » Mon Jun 03, 2013 4:27 pm

Hello creation kit forum,

My quest writer requests that I have the player activate a table, which causes a flute from his inventory to be placed on that table. I know there are occasions in Skyrim where this is implemented, but I can't think of any at the moment. What quest can I reference and/or which function should I use?

It's important because the player then has to strike the flute with a weapon (I'm going to assume that striking the table is close enough for the purposes of the quest).

User avatar
Yama Pi
 
Posts: 3384
Joined: Wed Apr 18, 2007 3:51 am

Post » Tue Jun 04, 2013 1:04 am

Make an activator around a *static* table with player activation only. Place an initially disable flute where you want to be positioned.

Then script the activator to:

1. Check if the player have the flute

1a. If not, show the failure message

1b. If yes, remove from the player's inventory the flute and enable the flute.

User avatar
Jennifer Munroe
 
Posts: 3411
Joined: Sun Aug 26, 2007 12:57 am

Post » Tue Jun 04, 2013 3:39 am

Thank you.

However, calling RemoveItem on a reference deletes it, no? I still need that flute afterwards so I'll temporarily put it on some other container.

User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Tue Jun 04, 2013 4:18 am

It doesn't all have to be the exact same flute ref as long as to the player it seems to be. No need to make your job harder for the sake of a refID that they'll never see (and changes between inventory anyhow)

- Hypno
User avatar
A Lo RIkIton'ton
 
Posts: 3404
Joined: Tue Aug 21, 2007 7:22 pm


Return to V - Skyrim