Siretu
Starcraft 2 Editor Moderator
- Reaction score
- 293
Okay, dynamically might be the wrong word. Here's what I am trying to do:
A unit has an inventory. The items can give abilities that only show up if you have the item. The problem is that there will be a lot of items, more than there are slots on the command card so a button has to be able to appear in several places.
Now I could do this in several ways but all ways I can think of are incredibly messy and takes a lot of extra work.
First of all, I'm pretty sure I have to add the button of all abilities to all slots where they can appear. I then have to make sure I only show one of the buttons of the same abilities and only if the unit has that item.
If anyone could think up a good solution for this, I'd be grateful.
If you have a solution that includes triggers, that's fine too but I prefer data.
A unit has an inventory. The items can give abilities that only show up if you have the item. The problem is that there will be a lot of items, more than there are slots on the command card so a button has to be able to appear in several places.
Now I could do this in several ways but all ways I can think of are incredibly messy and takes a lot of extra work.
First of all, I'm pretty sure I have to add the button of all abilities to all slots where they can appear. I then have to make sure I only show one of the buttons of the same abilities and only if the unit has that item.
If anyone could think up a good solution for this, I'd be grateful.
If you have a solution that includes triggers, that's fine too but I prefer data.