Jump to content


Photo

Selective inventory dump


  • Please log in to reply
2 replies to this topic

#1 Daeva

Daeva
  • Member
  • 26 posts

Posted 28 September 2005 - 03:46 PM

Is there any way to selectively dump a character's inventory? What I want to do is get a character to drop all their items except one, unmovable sword. I had assumed this would work fine, however, it essentially de-equips the sword and, since it's not movable, you cannot re-equip it.

I have tried the "Create Item in Slot" tag as well as the swap one (can't remember exactly how it goes but it is along the lines of swap item a for item b ). I have also tried EquipMostDamagingMelee. With the exception of the first, these all work, however the weapon does not appear in the quick-weapon slot when out of the inventory, so, if you de-equip it, you can never re-equip it. Is there a way around it, to either selectively dump equipment or to equip a weapon to *all* quick weapon slots?

Edited by Daeva, 28 September 2005 - 03:46 PM.


#2 Tris

Tris
  • Member
  • 10 posts

Posted 28 September 2005 - 03:59 PM

Not the most experienced coder, and I may have misinterpreted your post, but would either of these sequences do the trick?

DropInventory(ref)
PickUpItem(ref)
EquipItem(ref) [or] EquipMostDamagingMelee()

or, if 'equipitem' doesn't work to move an unmovable item from inventory to quickslot;

DestroyItem(ref)
DropInventory()
CreateItemInSlot(ref)
EquipItem(ref) [or] EquipMostDamagingMelee()

Sorry if this is unhelpful, but I had fun trying :).

Edited by Tris, 28 September 2005 - 04:02 PM.

It's just beeping at me. My friend thinks it's a memory problem, but it might be that I was screwing around with the BIOS.


#3 Daeva

Daeva
  • Member
  • 26 posts

Posted 29 September 2005 - 08:29 AM

DropInventory(ref)
PickUpItem(ref)
EquipItem(ref) [or] EquipMostDamagingMelee()

Thanks for replying, I have not tried the DropInventory(ref) comand (I will go try that now), however, the problem I was having was not moving an unmovable item to the inventory quick-slot, it was moving it to the on-screen quick-slot. For some reason, when I assigned the weapon to the quick-slot the fist icon remained on the on-screen quick-slot so, if you de-equipped the weapon, you could never select it again. All the same, I shall give the DropInventory(ref) command a try.

Cheers!