- Joined
- Jun 15, 2018
- Messages
- 195
I prepared 2 triggers. System is based on 2 items:
Mana Shield ON
Mana Shield OFF
When Mana Shield ON is used, it is replaced with Mana Shield OFF and Hero is ordered to use this item. Axiualy Mana Shield ON is doing nothing because it is removed from equipment after useage and it's effect will disapear. So I had to order Hero to use Mana Shield OFF, which axiualy turns it on.
There is another Trigger, which replaces Mana Shield OFF with Mana Shield ON (it causes effect of Mana Shield disapears) But you can easy see that they are mutually exclusive because Mana Shield OFF "has two uses". I had to add exception handling, I mean I turn second Trigger OFF before I order Hero to use Mana Shield OFF in first Trigger. After this usage second Trigger is turned on back.
Well, what is the problem? When Hero is using Mana Shield OFF normally (not in order event) it is not recogenized as Item Usage because it was used before in order event. So second trigger is not working because item usage is not detected.
Extra Info: Both items are based on Wand of the Wind if it matters. I tryed to add second effect to the item, I mean effect of healing potion (which could result in the use of the item would be detected) But it doesn't work.
Do you have any ideas to fix it? Thanks in advance.
First Trigger:
Second Trigger:
Mana Shield ON
Mana Shield OFF
When Mana Shield ON is used, it is replaced with Mana Shield OFF and Hero is ordered to use this item. Axiualy Mana Shield ON is doing nothing because it is removed from equipment after useage and it's effect will disapear. So I had to order Hero to use Mana Shield OFF, which axiualy turns it on.
There is another Trigger, which replaces Mana Shield OFF with Mana Shield ON (it causes effect of Mana Shield disapears) But you can easy see that they are mutually exclusive because Mana Shield OFF "has two uses". I had to add exception handling, I mean I turn second Trigger OFF before I order Hero to use Mana Shield OFF in first Trigger. After this usage second Trigger is turned on back.
Well, what is the problem? When Hero is using Mana Shield OFF normally (not in order event) it is not recogenized as Item Usage because it was used before in order event. So second trigger is not working because item usage is not detected.
Extra Info: Both items are based on Wand of the Wind if it matters. I tryed to add second effect to the item, I mean effect of healing potion (which could result in the use of the item would be detected) But it doesn't work.
Do you have any ideas to fix it? Thanks in advance.
First Trigger:
Second Trigger: