05-19-2019, 03:07 PM
Depending on how you've set up the first step, you could cheat by having two items.
KeyItem(a) and KeyItem(b).
KIa and KIb are identical in everything, except that KIa is not usable, KIb is.
In the event that is wanting you to use KI, have a conditional branch check if you have KIa in your inventory. If you do, just before you open your item selection window, add KIb to your inventory and remove KIa.
Thus when you enter the item menu, you are now allowed to use KIb and activate it's switch/trigger/function and have it be consumed.
Make a fail-save too, if the player uses the wrong item or backs out of the selection. If KIb is not used and still in your inventory and it's switch not activated, remove KIb from inventory and replace it with KIa.
If the item is not consumed and stays in your inventory, you can just use the switch alone to determine whether or not you should have KIa or KIb.
KeyItem(a) and KeyItem(b).
KIa and KIb are identical in everything, except that KIa is not usable, KIb is.
In the event that is wanting you to use KI, have a conditional branch check if you have KIa in your inventory. If you do, just before you open your item selection window, add KIb to your inventory and remove KIa.
Thus when you enter the item menu, you are now allowed to use KIb and activate it's switch/trigger/function and have it be consumed.
Make a fail-save too, if the player uses the wrong item or backs out of the selection. If KIb is not used and still in your inventory and it's switch not activated, remove KIb from inventory and replace it with KIa.
If the item is not consumed and stays in your inventory, you can just use the switch alone to determine whether or not you should have KIa or KIb.
Friendship is born at that moment when one person says to another: "What! You, too? Thought I was the only one." (C.S. Lewis)
For the time you're laughing, there's nothing wrong in the world. (Colin Mochrie)
If it's funny, make sure people laugh. If it's not funny, make it funny (unless it's actually really serious). (silvercheers)
Please don't spell my name "Yamina-chan". It's all small. Thank you =D
For the time you're laughing, there's nothing wrong in the world. (Colin Mochrie)
If it's funny, make sure people laugh. If it's not funny, make it funny (unless it's actually really serious). (silvercheers)
Please don't spell my name "Yamina-chan". It's all small. Thank you =D