In my game, when the player clicks on an inventory item, I want him to succeed a test before he can equip. Because of this, I can't use the "Use" default action in my inventory menu, since the item can't be always equipped (i.e. the player fails the test). Because of this, I tried to use the Game Event default action, but I realized that when I do that, the inventory item is no longer deactivated when it does not meet the equip requirements of the item in question. I'd like to have both Game event action AND the item availability display. Is that possible?
Also, when I use a game event as the default action, I have to specify the body part where I want to equip the item. However, this is dependant on every item. For example, a shield will equip on the left hand, while a sword will equip on the right hand. However, I don't know how to distinguish an item type in a selected data (because the item is set as a selected data named "action"). The only workaround I found is to use a custom event on the item and call that custom event from the selected data. Is that the best/only way to proceed?
Thanks!
In the equip/unequip game events, the equipment is available as selected data via the action key, the combatant who's equipping/unequipping as Starting Object actor.
As for equipping - usually, equipping without a specific part will equip it on the first part it can be equipped on. E.g. if your shields are set to only equip on left hand, that's where it'll be equipped on.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
When you talk about equipment's equip game event, what do you refer to exactly? In the weapon settings, I have a custom event and in the inventory menu, I have the default event, which I set to Game event. I'm not sure which one you talk about.
As for equipping, I currently use the Change Equipment node and I have to specify a body part. Is there another way to specify I just want to equip this item on the first available body part?
Ah, yeah, the Change Equipment node only allows for fixed equipment parts. I don't think there's currently another way in the event system.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
As for the new option you plan to add, this is a great idea!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If not, I guess I could use the Equip event in the weapon settings and, from there, use a call function node with the weapon name I got from action selected data as a parameter... I’d miss the body part however...
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!