How do I add a stolen item to the player?

Post » Thu Aug 25, 2011 7:13 am

I'm trying to make it so that I activate an item, and it gives me another. However, I want the item that's being given to me to be stolen. Is this possible?
Here's the script if you need to see it:
ScriptName AkaviriTantoScriptBegin OnActivateplayer.additem trfarSwordSunbladeShortSword 1Disable SunbladeShortswordActivatorEnd

User avatar
leni
 
Posts: 3461
Joined: Tue Jul 17, 2007 3:58 pm

Post » Thu Aug 25, 2011 11:34 am

Try placing an object in the game world, make it persistent and then owned by someone. Then add that item using a reference variable instead of the base object.
User avatar
Charlotte X
 
Posts: 3318
Joined: Thu Dec 07, 2006 2:53 am

Post » Thu Aug 25, 2011 11:46 am

English please ;)
I made an activator, first because I wanted the dagger to show up with it's scabbard (cause it looks cool) and so it doesn't have any physics attached to it. Is it even possible to add an item to the player with the stolen flag on it? I mean, the activator is owned by someone else...
User avatar
Shianne Donato
 
Posts: 3422
Joined: Sat Aug 11, 2007 5:55 am

Post » Thu Aug 25, 2011 8:14 am

Place the real dagger item in the cell somewhere, where the player can't see or reach. Give that dagger an ID, and make it persistent. Then make the dagger have the ownership of someone else (the emperor or something). You can then try and use the dagger's ID in the AddItem script as opposed to using the base item.
User avatar
Manuela Ribeiro Pereira
 
Posts: 3423
Joined: Fri Nov 17, 2006 10:24 pm


Return to IV - Oblivion