Ive been trying to create this for a bit and cant figure it out
so basically i want a building to produce minerals every 10, 15, etc. seconds and with a progress bar. So theres the progress bar where it usually goes and when its up it restarts itself and theres the blue +1 over the building and you gain a mineral
and sub question, how do you make it so that a upgrade can only be reaearched once? i asked htis before but i tihnk i forgot the answer. basically for one if my researches i can research ti as many times as i want and it wont disapeer from command card
The way to do this in data is to create a Behavior of the Buff Type. Untick the Coutdown flag and give the behavior the duration you desire between gaining resources, then you must tick on the sides you want to be able to see the count down in the UI:Display Countdown, next you must create three effects, a modify player that gives the player the amount of resources. an apply behavior effect that applies the Buff and a set effect that combines the two. place this in the expire effect of the Behavior so that when it expires it casts its self on the host and gives that player the amount of minerals. the last thing is to create a text actor that shows how much resource is given each time the behavior expires, there is an actor that can move the text but i dont know enough about it to describe how to use it. I hope this helps
I would have a hidden buff that periodically applies the second buff that on expire uses the modify unit effect.
Most text kickers work the same. It creates the Text actor as an attachment to a Site (Mover) like the colossus impact uses which is ordered to move north before fading and destroying.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Ive been trying to create this for a bit and cant figure it out
so basically i want a building to produce minerals every 10, 15, etc. seconds and with a progress bar. So theres the progress bar where it usually goes and when its up it restarts itself and theres the blue +1 over the building and you gain a mineral
and sub question, how do you make it so that a upgrade can only be reaearched once? i asked htis before but i tihnk i forgot the answer. basically for one if my researches i can research ti as many times as i want and it wont disapeer from command card
The way to do this in data is to create a Behavior of the Buff Type. Untick the Coutdown flag and give the behavior the duration you desire between gaining resources, then you must tick on the sides you want to be able to see the count down in the UI:Display Countdown, next you must create three effects, a modify player that gives the player the amount of resources. an apply behavior effect that applies the Buff and a set effect that combines the two. place this in the expire effect of the Behavior so that when it expires it casts its self on the host and gives that player the amount of minerals. the last thing is to create a text actor that shows how much resource is given each time the behavior expires, there is an actor that can move the text but i dont know enough about it to describe how to use it. I hope this helps
I would have a hidden buff that periodically applies the second buff that on expire uses the modify unit effect.
Most text kickers work the same. It creates the Text actor as an attachment to a Site (Mover) like the colossus impact uses which is ordered to move north before fading and destroying.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@illidans911: Go To make the upgrade disappear make sure the requirement has a "Not -> Count Upgrade YourUpgrade Queued or Better" in the show field.
Thanks guys!
One last problem though (easy one)
How do i set text to display when you mouse over something?
hard to explain but easy to do.. like you know if u mouse over an allies unit will say the name of the ally? i want to do that except with custom text
Could always use a text actor that is created on cursor when the unit is selected like the flyer circle helper.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg