- Joined
- Jun 15, 2018
- Messages
- 195
Theory:
In Warcraft 3, orb effects are unique meaning they cannot stack with other orbs and only one of them can be active at a time. The priority of the orb used depends on which slot it is in (The orb from the slot with a higher priority will be used). If an attacking unit has several orbs, only one of them can be active. All orbs have the same priority. If there are several orbs in the inventory, their position determines which one is active.
Request:
I need to create a system that will make my Orb work like other orbs = it will be unique. I have created a trigger that is responsible for the effect of my orb. Now I would like my orb to act like other orbs. This can be achieved by adding a condition in my trigger that checks whether the orb should work or not (depending on the setting of orb type items in the inventory). My orb should only work if it has the highest priority (i.e., there are no other orb type items with higher priority in the hero's inventory). If the orb is in the first slot then there is no problem because we know that no other item can have a higher priority. If the hero doesn't have any other orb-type item there is no problem either, the orb should work because it is the only one of its kind. The problem arises when we have other orb-type items in the inventory, then we should check if my orb has a higher priority than those. If the orb should not work because the other orbs have a higher priority then you should make a variable (semaphore) that will make the trigger responsible for the orb's action not trigger. Does anyone have an idea how to do this or could create such a system? I have too many dilemmas when it comes to how to store variables and how to make an implementation. I would be very grateful
In Warcraft 3, orb effects are unique meaning they cannot stack with other orbs and only one of them can be active at a time. The priority of the orb used depends on which slot it is in (The orb from the slot with a higher priority will be used). If an attacking unit has several orbs, only one of them can be active. All orbs have the same priority. If there are several orbs in the inventory, their position determines which one is active.
Request:
I need to create a system that will make my Orb work like other orbs = it will be unique. I have created a trigger that is responsible for the effect of my orb. Now I would like my orb to act like other orbs. This can be achieved by adding a condition in my trigger that checks whether the orb should work or not (depending on the setting of orb type items in the inventory). My orb should only work if it has the highest priority (i.e., there are no other orb type items with higher priority in the hero's inventory). If the orb is in the first slot then there is no problem because we know that no other item can have a higher priority. If the hero doesn't have any other orb-type item there is no problem either, the orb should work because it is the only one of its kind. The problem arises when we have other orb-type items in the inventory, then we should check if my orb has a higher priority than those. If the orb should not work because the other orbs have a higher priority then you should make a variable (semaphore) that will make the trigger responsible for the orb's action not trigger. Does anyone have an idea how to do this or could create such a system? I have too many dilemmas when it comes to how to store variables and how to make an implementation. I would be very grateful