Jump to content

UseContainer()


Avenger

Recommended Posts

That's a good question, i didn't test the code, just read it.

I don't know where the items go, but they should be:

 

1. movable and critical (as in itm flags)

2. not undroppable (as in inventory flags)

3. not equipped (inv slot is between 15 and 33)

Link to comment

Meh, this was a fluke. :party:

 

What i reported was DropInventory()

 

In any case, LeaveParty does call DropInventory().

 

I'll report back if i find what UseContainer() actually does!

 

[edit]

 

Ok, UseContainer and UseDoor crash because they never look for the target (container or door).

It is highly likely these actions are called by the GUI and the target is already parsed for them.

Link to comment

Well, i knew it needs more testing :party:

 

The part about dropping only inventory and skipping critical items is controlled by flags.

And those flags are set to 0 in DropInventory and LeaveParty too.

So, they will simply drop all movable equipment, it seems.

 

But i'm sure somewhere they use those flags...

 

And back to LeaveParty: it drops the items only under rare circumstances, i don't even imagine why they needed it to do that. (The actor is technically dead but not frozen or petrified nor below -10 hp).

 

Feel free to delete this thread :)

Link to comment
UseContainer() expects the (container) object id in int1, so I bet it's used internally.

 

Any idea if the same applies to UseDoor? We steal two NIDSpecial actions right now for internal GemRB use so that the GUI can make "use container" and "use door" actions, would be nice if we could just use those two original ones!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...