loot procedure needed workaround very welcome :-)

Post » Sun Nov 18, 2012 7:02 am

i have actor A kill actor B via packages (works fine), but then i'd need actor A to loot all inventory items except clothing and a book from actor B, and i'd be happy about any advice about how to best do this.

apparently, there's no "loot"-procedure for packages (regrettably), and the one package-driven way to do the above i could figure out so far was a combination of a find- and an acquire-procedure, requiring an insane amount of object lists and what not, that cracks my brain just thinking about it and i'm not even sure would actually work.

the second way i could think of was have killer just activate body per package, and add an onActivate event on the killed actor's script, that moves the required items to the killer's inventory, but this somehow seems, i don't know, weird.

any better ideas please?
User avatar
Céline Rémy
 
Posts: 3443
Joined: Sat Apr 07, 2007 12:45 am

Post » Sat Nov 17, 2012 10:45 pm

Not really a better way ... however you decide to iterate through the inventory of DeadGuy you just need to do a Remove-From (DeadGuy) and AddTo (LiveGuy) for each applicable item ... no clever way as far as I know.
User avatar
c.o.s.m.o
 
Posts: 3419
Joined: Sat Aug 12, 2006 9:21 am

Post » Sun Nov 18, 2012 1:56 am

Not really a better way ... however you decide to iterate through the inventory of DeadGuy you just need to do a Remove-From (DeadGuy) and AddTo (LiveGuy) for each applicable item ... no clever way as far as I know.
ok, thanks.
i'm currently trying to get it to work with find-/acquire-procedure, but couldn't quite get it to fire yet (the find procedure is quite arcane to use, no idea if it accepts actors/containers as locations at all)
User avatar
Star Dunkels Macmillan
 
Posts: 3421
Joined: Thu Aug 31, 2006 4:00 pm


Return to V - Skyrim