Whenever a building is during its construction period, whenever it is canceled it destroys the currently constructing building. However, it displays a note telling you how much of the resources are refunded for that building.
However, the problem is that the note displays the default amount of resources refunded for a regularly priced structure. For example, canceling an Armory structure would refund around 115 minerals and 75 gas. This is not the case for most customized structures as I have changed the initial value of the resource requirement of that structure.
Currently my customized Armory structure is priced around 125 minerals, but no gas. The note continues to display it refunding at 115m and 75g, yet it does not actually refund this amount.
Has anyone else encountered this problem? Does anyone know where I could change this?
For the armory i found it in the actor "ConstructionCancelTextTerranArmory". There is "UI: Text" where you change the numbers and colors and whatever :)
Correct each refund has a Text type actor associated with it. There is some way you can get it to display some logic function of a field value but that is beyond my grasp of computing.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
You can change the refund amount in ur workers build ability. So for the scv u can go to the ability SCV - Buil (SCV) and in Cost:Refund Fraction+ u can change how much u get if cancel
Whenever a building is during its construction period, whenever it is canceled it destroys the currently constructing building. However, it displays a note telling you how much of the resources are refunded for that building.
However, the problem is that the note displays the default amount of resources refunded for a regularly priced structure. For example, canceling an Armory structure would refund around 115 minerals and 75 gas. This is not the case for most customized structures as I have changed the initial value of the resource requirement of that structure.
Currently my customized Armory structure is priced around 125 minerals, but no gas. The note continues to display it refunding at 115m and 75g, yet it does not actually refund this amount.
Has anyone else encountered this problem? Does anyone know where I could change this?
For the armory i found it in the actor "ConstructionCancelTextTerranArmory". There is "UI: Text" where you change the numbers and colors and whatever :)
Correct each refund has a Text type actor associated with it. There is some way you can get it to display some logic function of a field value but that is beyond my grasp of computing.
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
@DrSuperEvil: Go
Could be done with triggers if u wanted that
Why use the extra computational cycles. Of course that only matters if lag might be involved.
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
@LaxSalmon: Go
Hmm I wasn't able to find that UI:Text category in the actor. Does it involve actor events?
Check your editor is set to the standards.
http://www.sc2mapster.com/forums/general/wiki-discussion/20995-info-data-editor-fieldnames/#p1
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
@DrSuperEvil: Go
I already have all of those checked and unchecked correctly. :)
@Vietman: Go
But u can find the actor? it should be in there then
@LaxSalmon: Go
I'm not sure where it could be. I checked all the right categories in the editor not finding the UI: Text you mentioned :/
Are you sure it doesn't involve actor events?
@Vietman: Go Actor tab, ConstructionCancelTextTerranArmory, UI: Text
It's not in an actor event
@LaxSalmon: Go
Ohhhh, I read that wrong :/
Forgot to put the "Text" in ConstructionCancelTerranArmory
Thanks! :)
Does anyone know the exact percentage of resources refunded though, on any structure?
75%
@Vietman: Go
You can change the refund amount in ur workers build ability. So for the scv u can go to the ability SCV - Buil (SCV) and in Cost:Refund Fraction+ u can change how much u get if cancel
@LaxSalmon: Go
Thanks.