Jump to content

schlusmans

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by schlusmans

  1. Thanks for the tip, IsharaMeradin, the script in the follower quest has been very instructive :-) So it seems there is a "SetOutfit" function, but strange enough there doesn't seem to be a "GetOutfit" or any other function to "read" what items the deceased victim had equipped. (a GetOutfit function does seem to exist in SKSE, but I don't want to go there) I think the "naked" problem arises because during gameplay the player has taken items from the followers inventory that belonged to the defaultoutfit, and exchanged them for better ones. After resurrection the follower tries to change back into his defaultoutfit, but those items are gone, so he ends up naked. So right now I just check in the scrtipt if the target of the resurrection belongs to the PlayerHousecarlFaction or PotentialFollowerFaction and give them the default Housecarloutfit to wear after resurrection. akTarget.SetOutfit(PlayerHousecarlOutfit) So now they're not naked any more (yay!) plus any precious items they received from the player remain in their inventory (thanks to the switch chest trick), even if they still won't equip their best items till we walk through a door. But hey, at least they're alive again, so they shouldn't complain too much! I'll keep you posted if I find a more precise way to restore the equipped items. thanks again
  2. Wow, this is so great ! I'v been struggling for DAYS with this "NPC's in underwear" problem. I felt I needed resurrecting powers in Skyrim, after the sweet old couple that lives at Salvius farm accidentally got killed in a dragon attack as I was passing by. I used the console cheat to resurrect them, and they happily trotted off to their garden, peacefully working together again. Bliss... :-)So I thought it would be nice to have a spell to do just that. (what's the use of being the Dragonborn if you can't even save people ?) Actually the spell works quite nicely now, it will even resurrect enemies you had no intention to kill (plus make them run away from you for 30 seconds, so you don't have to kill them again, and can safely get out of the premises).Then I thought it could also be useful to resurrect followers, and that's where I ran into the "underwear" problem. Actually I did manage to have followers keep their complete inventory (thanks to the "switch chest" trick), but they won't equip their outfit, until I walk into a city with them, where they will finally change into more fitting clothing. Somewhere I read I could use Reset() and MoveTo the player coordinates to simulate entering a city, but that doesn't seem to work either (?). So now I feel the solution is at hand, thanks to Formlists for equipped gear!There's just one problem I can't work out: the code that IsharaMeradin proposes here seems meant to be attached to a specific actor. But there are plenty of potential followers in the game. So must I put a script on each of them, to update their formlist with what goes in and out of their inventory ? Right now, my script is attached to the MagicEffect of the spell (Scriptname.... extends ActiveMagicEffect).And to access the NPC I'm using the target of the effect: Event OnEffectStart(Actor target, Actor caster) target.Resurrect() etc. So, would there be way to "read" the equipped items of this target, just before resurrection, and put them in a Formlist? Any tips would be greatly appreciated !
  3. Hi MofoMojo, This is really awesome! Thanks for this precious tool. I loved your Oblivion script dumper too :-) Just a question: Is it also possible to dump esp files to psc files with this tool, as was the case with the Oblivion tool ? So far, I've only managed to dump Skyrim's original source files.
×
×
  • Create New...