Couple questions about trying to keep things persistent

Post » Mon Mar 25, 2013 10:58 pm

1) Is there anyway to detect if an actor as a temporary ID (ex: ff000000). In my mod I let the player "pick up" corpses. When this happens the actor is resurrected, moved to a holding cell, and forced into a reference alias. It works fine, except in my test play-through where I encountered a bandit with a temp ID and I couldn't recall the bandit back to my position (by using its reference alias). The actor must have been cleaned up somehow despite being held in a ref alias. If there could be some way to detect this I think I could "duplicate" the actor through GetLeveledActorBase and PlaceActorAtMe.

2) I'm having problems with keeping SetAV being permanent. So in my mod the player can remove the flesh of a corpse. This spawns a skeleton at the player's location, adjusts the skeletons actor values (onehanded, block, etc) based upon the corpse, and then the corpse is moved to a cell for clean up. Then the player can pick up the skeletal corpse using the method above. Somehow, the actor values can get reset to the defaults. In my play-through test. I went through one cave and obtained a skeleton. Then after going to a different cave, when I dropped the skeleton the stats were reset. In between these two instances there were saves/reloads, exiting Skyrim it self, and plenty of in-game time passed. However, I can't seem to recreate the bug easily. I didn't actually replay the game, but I just used the console to change locations, sleep, and I tried reloading saves/Skyrim and nothing seems to work. Anyone know what the cause of this problem could be or if there are any simple solutions?

My only idea would be to add a spell to the actor which stores the AV's i need in floats, and then reassign the actor values using some sort of event such as a cell/location change.

Thanks!

Edit - Maybe I could just change all corpses picked up to spawn a duplicate actor instead (if GetLeveldActorBase() will actually grab an identical copy), but that still leaves the issue of why the AV's are resetting for spawned actors even though they actor should be kept persisent.
User avatar
rebecca moody
 
Posts: 3430
Joined: Mon Mar 05, 2007 3:01 pm

Return to V - Skyrim