So I have this trigger that removes a charge every time you reload. Problem is it sets your charges to nobody knows, and turns the item grey. Well the problem is the triggers can still run. How do you destroy an item?
Also. The check box for destroy when depleted, doesnt work because of the trigger I use.
.riney on Discord.
Riney on Steam (
Steam)
@RineyCat on Twitter
Sure I didn't pop off on SCBW like I wanted to, but I won VRChat. Map maker for life.
Have a variable keep track of it. Since you are probably doing all additions/subtractions through triggers have a variable that stores how many charges they have. If you are removing charges through an ability then have a trigger which runs when a unit receives an order to use the ability and subtract from your variable.
There might be a better way, I don't have the editor right now to check it out.
None.
I ment an action that removes the item from the unit inventory.
.riney on Discord.
Riney on Steam (
Steam)
@RineyCat on Twitter
Sure I didn't pop off on SCBW like I wanted to, but I won VRChat. Map maker for life.
You can use the kill/remove unit action
None.
Had a feeling that might work. Good thing theres only one instance of this item type in the player inventory at all times.
.riney on Discord.
Riney on Steam (
Steam)
@RineyCat on Twitter
Sure I didn't pop off on SCBW like I wanted to, but I won VRChat. Map maker for life.
Got around to finally testing it and it worked perfectly. This topic can be closed.
.riney on Discord.
Riney on Steam (
Steam)
@RineyCat on Twitter
Sure I didn't pop off on SCBW like I wanted to, but I won VRChat. Map maker for life.