Ok, new request:
Seems there is no way to access container objects ingame from script.
All of the game-object ids in
general appear not be implemented for See, Detect, etc.
This action:
CopyGroundPilesTo(A:Area*, P:Point*)
Already must be finding the dynamic (piles) containers in a area at runtime.
It's
almost useful to autoloot.
However
1) it only copies the items, not moves them, and into the ground, not into a inventory.
2) it copies all of the items in the area
3) no way to set the location dynamically. [0.0] is relative to the area, not the current object
So i wish for 3 actions like:
MoveVisibleGroundPilesTo(P:Point*)//point relative to the current object, not area, only visible dynamic containers
PickUpItems(O:Object*)//would use object ids like [0.WEAPON.SWORD.0.MAGIC]
PickUpItemsTo(O:Object*,S:Item*)
The first is a specialization of CopyGroundPilesTo. It would joint all loot piles in
LOS and place then next to or under the object given. However it would not move them if there is only one (there's no need, and it would interfere with only using 1 hotkey for both 1 && (2||3) )
The second doesn't exist. But is inspired by PickUpItem where instead of scripting name and only one object, it would try to pick up categories. PickupItem also has the problem it picks up items on locked containers, and not trigger the
npc's noticing. Maybe disallow locked containers and try to open before (for the
npc's noticing/traps)?
It would move to and attempt to move all objects of type in the nearest unlocked
untrapped visible container into the inventory of the current object. If it is full, drop them. If it doesn't find it in nearest, search for the next nearest.
The third would try do the same as 2, but would instead of putting in inventory, try to find the container "Item" in the inventory and try to move the item there (user should make sure the container accepts it). It should noop if the container is not in the inventory.
The first could be used to aggregate the near piles into a single one (already useful).
The second would actually filter things and move into inventory. As said before, if they also worked with normal containers (not piles) with some restrictions they'd be more useful.
Third same as second but more useful yet.
Anyway, that's a
wish, i'm aware that's unlikely to be granted
Edit2: refined request again
Edit3: and again!
Edited by i30817, 20 December 2011 - 03:32 PM.