I did search a lot but didnt found a good answer. The problem is simple:
I just want to display the ammo of my unit's weapon in the command card. Its not allowed any trigger.
This unit is used on melee game. Basicaly, it has 3 weapons charges and fires fast while it has ammo. When out of ammo, the fire rate slows down, so it must flee for a while, recharges the 3 ammo, and come back to the fight.
Please, no work arrounds nor triggers, I ust do this using only data and charges.
I tried using link from Weapon and Ability, but it didnot work. Did I something wrong?
Can you not just setup an ability with charges and then set it as a weapon the same way the warhound did it? Or do you mean you want to display the charges within the weapons icon?
There's definitely a way to do it via data, but if you're resticting yourself to no work arounds including even ones in data then your sol. For example a simple buff and manually changing the charges would work perfectly as an alternative. I can understand wanted to stay away from triggers and keeping it in data but turning a blind eye to any decent solution is an extremely stupid ideal.
Abvdzh, thanks so much. That is exactly what I was looking for. I see what I did wrong. I created the ability Reload, and linked the Weapon th "Abil/Reload" charges. But I see in your file that I sould create a new link, different from abilitie's natural.
I cant use Triggers because I'm creating a mod, with adds a custom race for melee games. So it's not a playable map, but a race that can be added to any melee map.
I have just one more question. The button in the unit's command card display perfectly the number of unit's ammo, and each attack takes 1 ammo, and the reload time is working perfectly. But the button is clickable. There is a way that I made the button just for display porposes, dont letting the user to click on it?
btw you can use triggers in a mod, just create a library. i would have created an label with layoutfiles right over the weapon to show a number there and update it with triggers.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I did search a lot but didnt found a good answer. The problem is simple:
I just want to display the ammo of my unit's weapon in the command card. Its not allowed any trigger.
This unit is used on melee game. Basicaly, it has 3 weapons charges and fires fast while it has ammo. When out of ammo, the fire rate slows down, so it must flee for a while, recharges the 3 ammo, and come back to the fight.
Please, no work arrounds nor triggers, I ust do this using only data and charges.
I tried using link from Weapon and Ability, but it didnot work. Did I something wrong?
@JacksonPS: Go
without triggers? not possible
Can you not just setup an ability with charges and then set it as a weapon the same way the warhound did it? Or do you mean you want to display the charges within the weapons icon?
There's definitely a way to do it via data, but if you're resticting yourself to no work arounds including even ones in data then your sol. For example a simple buff and manually changing the charges would work perfectly as an alternative. I can understand wanted to stay away from triggers and keeping it in data but turning a blind eye to any decent solution is an extremely stupid ideal.
izi
@abvdzh: Go
Abvdzh, thanks so much. That is exactly what I was looking for. I see what I did wrong. I created the ability Reload, and linked the Weapon th "Abil/Reload" charges. But I see in your file that I sould create a new link, different from abilitie's natural.
I cant use Triggers because I'm creating a mod, with adds a custom race for melee games. So it's not a playable map, but a race that can be added to any melee map.
Got It! Working perfectly now!
I have just one more question. The button in the unit's command card display perfectly the number of unit's ammo, and each attack takes 1 ammo, and the reload time is working perfectly. But the button is clickable. There is a way that I made the button just for display porposes, dont letting the user to click on it?
i already added dummy effect with validator that never happens to prevent player from clicking. Watch in my map. This is best you can do with it.
@JacksonPS: Go
btw you can use triggers in a mod, just create a library. i would have created an label with layoutfiles right over the weapon to show a number there and update it with triggers.