I am trying to set up a skill that works similar to an item, the reason being that the item is only useable by a certain class; not sure if this would require scripting or not.
Class A has a skill known as "Bombs". When skill is selected, the player can select from a menu of 12 different bombs {event needs to check if (bomb type) is in inventory, if not option needs to be greyed out and not useable}
When a bomb is selected from use, it does a set amount of damage (unless enemy has a weakness to that kind of bomb) then decreases amount available by 1
{Psuedocode explaination}
Check inventory for item (bomb)
if true
allow choice to be selected
if false
disallow choice
endif
if choice is selected
deal specific damage, less target has weakness
then subtract 1 (bomb) from inventory
endif
Apoligies for use of code here, it just seemed the easiest way to spell it out
Problems:
the conditional trigger not working; regardless of conditonal branch trigger, it continues with event.
damage for skill is showing twice, 1) for skill use [showing up as 0] and 2) specified damage in event
{Not currently working with any other events/scripts}