In my map, a worker does not need to return to the CC, Nexus or Hatchery to deliver minerals. Instead the minerals are added into the bank immediately when they are harvested. (I use the field "Resource Drop off" under every worker, and there I tick "Minerals" , to make it work)
I want a blue text message to appear above a worker whenever it drops off resources. (So players can see that this worker just gathered minerals)
This is the method I currently use, just to get it to work:
In SCV - Actor - Event:
Ability.SCVHarvest.Stop
Create AutomatedRefineryText4
(AutomatedRefineryText4 is a text actor that already exists within the game, and it displays a number above the SCVs head.)
The problem is that as soon as a SCV stops gathering, the text message will appear! (For example if it moves away from the mineral patch)
Is it possible to make the text message appear above a worker ONLY when a mineral is added to the bank?
I find no way to check for that, neither in the actors field or via triggers : /
I have built a trigger based on that. The trigger generates a blue text that says "+10" above the head of a Drone every time it returns minerals. Then I use a seperate but identical trigger for SCV and for Probe. All players will see the text that appears, but enemy players will only see it if they have vision of that area. (So they will not see the blue text appear in the darkness)
As far as I can tell, the trigger should work properly and I attach it as a picture, in case someone else in the future finds this thread and needs a similar solution.
2 questions about the trigger since I'm not a Triggerer and I don't have access to the editor. First, couldn't you use one trigger which checks when a player's mineral changes? Second, if that isn't possible, can't you merge all 3 triggers into one by putting multiple events into a trigger, in this case, the Cargo ability for each worker?
I am not very good at the trigger editor, so there are surely ways to make my trigger better.
"First, couldn't you use one trigger which checks when a player's mineral changes?"
Hm, not sure how to make that mineral change be connected to the individual worker, so the text knows where to be displayed.
"Second, if that isn't possible, can't you merge all 3 triggers into one by putting multiple events into a trigger, in this case, the Cargo ability for each worker?"
That should probably not be hard to do, I was just unsure how the trigger would need to be set up to work properly. (Otherwise the requirement becomes that the Drone, Probe AND Scv return cargo must be used to display the text?)
I just took the "safe" way and made three identical ones. (I just copy + pasted them so it was easy)
In my map, a worker does not need to return to the CC, Nexus or Hatchery to deliver minerals. Instead the minerals are added into the bank immediately when they are harvested. (I use the field "Resource Drop off" under every worker, and there I tick "Minerals" , to make it work)
I want a blue text message to appear above a worker whenever it drops off resources. (So players can see that this worker just gathered minerals)
This is the method I currently use, just to get it to work:
In SCV - Actor - Event:
Ability.SCVHarvest.Stop
Create AutomatedRefineryText4
(AutomatedRefineryText4 is a text actor that already exists within the game, and it displays a number above the SCVs head.)
The problem is that as soon as a SCV stops gathering, the text message will appear! (For example if it moves away from the mineral patch)
Is it possible to make the text message appear above a worker ONLY when a mineral is added to the bank?
I find no way to check for that, neither in the actors field or via triggers : /
How about doing a trigger with the event Unit uses Return Carge (SCV) ability?
Thanks.
I have built a trigger based on that. The trigger generates a blue text that says "+10" above the head of a Drone every time it returns minerals. Then I use a seperate but identical trigger for SCV and for Probe. All players will see the text that appears, but enemy players will only see it if they have vision of that area. (So they will not see the blue text appear in the darkness)
As far as I can tell, the trigger should work properly and I attach it as a picture, in case someone else in the future finds this thread and needs a similar solution.
2 questions about the trigger since I'm not a Triggerer and I don't have access to the editor. First, couldn't you use one trigger which checks when a player's mineral changes? Second, if that isn't possible, can't you merge all 3 triggers into one by putting multiple events into a trigger, in this case, the Cargo ability for each worker?
I am not very good at the trigger editor, so there are surely ways to make my trigger better.
"First, couldn't you use one trigger which checks when a player's mineral changes?"
Hm, not sure how to make that mineral change be connected to the individual worker, so the text knows where to be displayed.
"Second, if that isn't possible, can't you merge all 3 triggers into one by putting multiple events into a trigger, in this case, the Cargo ability for each worker?"
That should probably not be hard to do, I was just unsure how the trigger would need to be set up to work properly. (Otherwise the requirement becomes that the Drone, Probe AND Scv return cargo must be used to display the text?)
I just took the "safe" way and made three identical ones. (I just copy + pasted them so it was easy)
Why not get a Text actor to be created whenever the buff applied by the ability is removed?
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