Jump to content

Multi Level MessageBox Minor Issue


DKong27

Recommended Posts

This is not the right thread to talk about the ways to remove items, but I'll answer it (only for this time!).

 

For the parameter, you could create a "DummyContainer" Object in your mod and pass it when you don't need a deposit/container. Then you simply check if container == DummyContainer.

 

As for the crash with RemoveAllItems, I know 2 possible causes:

- RemoveAllItems + Kill in the same frame

- RemoveAllItems when the actor has equipped an item with EquipItem and the "no unequip" flag. If an item can't be unequipped, it can't be removed either, so the command crash the game. To solve this, you need to call UnequipItem (or UnequipMe) on those items before calling RemoveAllItems. I don't know if this limitation apply only to this command, or apply to RemoveItem, RemoveItemNS, RemoveMe and RemoveMeIR. You should test it, but I think it won't hurt if unequip the item before removing it.

Link to comment
Share on other sites

Oops. You are right. And thank you. :) If DKong27 is still reading this, apologies. Hijacking the thread was not my intention, yet I somehow managed to end up doing it. Sorry.

 

And to return to the original 'issue', how is your MessageBox project doing, DKong27?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...