Problem with cursed items

Post » Tue Jun 19, 2012 6:04 am

I'm trying to make an cursed item after an Oblivion project I started.
Basically the code it

Event OnEquipped(Actor akActor)
Actor.EquipItem(self, true)
endevent

however it don't work, I get the debug message but can easy unequip even equip something who replace it.
Any tips?
User avatar
Rach B
 
Posts: 3419
Joined: Thu Mar 08, 2007 11:30 am

Post » Tue Jun 19, 2012 5:31 pm

One workaround might be to set it as an quest item so it can not be dropped and do equipitem if onunequiped is called.
However I don't find an way to turn the quest item flag on and off, has to exist as it's done many times in the game.
User avatar
Genocidal Cry
 
Posts: 3357
Joined: Fri Jun 22, 2007 10:02 pm

Post » Tue Jun 19, 2012 6:28 am

Just click "Can't drop" while editing the item. That is the Skyrim-version of Quest Item. Or at least I think so!
User avatar
jaideep singh
 
Posts: 3357
Joined: Sun Jul 08, 2007 8:45 pm

Post » Tue Jun 19, 2012 5:27 pm

However I don't find an way to turn the quest item flag on and off, has to exist as it's done many times in the game.
Is in here: http://www.creationkit.com/Quest_Alias_Tab look for "Quest Object" and as you can see it provides aditional functionality. Didn't test myself, just noticed it.
User avatar
Leticia Hernandez
 
Posts: 3426
Joined: Tue Oct 23, 2007 9:46 am


Return to V - Skyrim