Avenger Posted May 27, 2007 Share Posted May 27, 2007 Thank you, i guess i'm the most grateful for this detailed info. Btw, i guess no one will growl loudly if i use the top-down method and won't fill the magic weapon slot for npcs Link to comment
devSin Posted May 27, 2007 Share Posted May 27, 2007 You might have to do something to preserve the "can't get that item back" behavior (you're not supposed to be able to get most taken items back through thievery or killing, and they don't all run DestroyItem() after taking stuff). Luckily, the invalid magically-created weapon doesn't fuck with their normal weapon (it really is there and persists across reloads, but they'll still wield the correct weapon). It does render them unable to switch between weapons (e.g., EquipRanged()), however. All the TakePartyItem() behaviors apply to TakePartyItemNum(). I don't care about the 2DA one (not enough to check it, at least), but a very (very) brief test seems to suggest that PickUpItem() and CreateItem() (!!!!!!) also behave the same. Running DestroyItem() after the item call is sufficient to free the magically-created weapon slot. GiveItem(Create)() is safe. Link to comment
Nythrun Posted May 28, 2007 Share Posted May 28, 2007 - When assigning an item to a slot, NPCs running TakePartyItem() fill bottom-up (starting with the magically-created weapon slot). This is so lame. In lieu of writing two actions in a block Bioware just irreperably fudged one of the two actions. ActionOverride(Actor,DestroyItem("Item")) GiveItemCreate(Myself,"Item") it is, then Link to comment
devSin Posted May 28, 2007 Share Posted May 28, 2007 It still needs more testing. CreateItem() does fill from the bottom-up (it's almost never used in the default game -- and certainly not really anywhere that would break -- so big deal), but the item is dropped when the creature dies (and is stealable; only the Take() calls set the unstealable bit). But referring specifically to Simyaz taking the silver blade (which I couldn't ever get back without cheating his DLG to DestroyItem("MISC8U") CreateItem("MISC8U",0,0,0) ), the item is never retrievable (even if you kill him, it still doesn't drop). I guess it's possible they check the stealable flag and use that to determine if it was a TakePartyItem() fill (and never let it leave the CRE file if that's the case), but it just seems so wrong. I really don't need this shit. Link to comment
Nythrun Posted May 28, 2007 Share Posted May 28, 2007 If GemRB departs from the IE enough that taken items aren't immediately stuffed into the actor's private black hole iff the actor hasn't used a create magical weapon spell, I'm not going to growl loudly. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.