by Gez » Thu Nov 07, 2019 3:37 pm
The issue here is that the gamesim has absolutely no awareness of the UI, and "selected inventory item" is a purely UI-side concept.
When you use an item, the UI doesn't tell the gamesim "player used selected item", it tells it "player used item X", and there's no difference whether it's by selecting the item and hitting the use key, or it's by a command for directly using that item, like the backspace key for using a tome of power in Heretic.
The issue here is that the gamesim has absolutely no awareness of the UI, and "selected inventory item" is a purely UI-side concept.
When you use an item, the UI doesn't tell the gamesim "player used selected item", it tells it "player used item X", and there's no difference whether it's by selecting the item and hitting the use key, or it's by a command for directly using that item, like the backspace key for using a tome of power in Heretic.