I'm trying to set a research progress of a unit (which only has one research ability) to 50% via trigger. I am successfully starting the research ability via trigger, however, when I use the "Set Progress of Unit Slot # to Percent" function, nothing happens.
I am using slot 1, but I'm not too sure what the slot # refers to. Anyone have any advice?
I'm trying to set a research progress of a unit (which only has one research ability) to 50% via trigger. I am successfully starting the research ability via trigger, however, when I use the "Set Progress of Unit Slot # to Percent" function, nothing happens.
I am using slot 1, but I'm not too sure what the slot # refers to. Anyone have any advice?
Thanks
Try using slot #0 instead. My guess is that the slot # only matters when you have a unit which produces two or more things at once, like a barracks with a reactor.
Slot 1 should be correct, at least that's whats working in my map. There must be some other kind of problem with your trigger, are you certain the action is targeting the correct unit?
Yes, the same unit variable is used to order the unit to start the research.
Is there some setting that needs to be correct, a flag on the research ability or upgrade, perhaps? I think I've tried all combinations, but no success...
I am still not quite sure what you are trying to do, but I made a little map that has a bunch of armories researching some upgrades, with little dialogs that pop up when you click them which allow you to change the progress of the current research for that unit.
Hello,
I'm trying to set a research progress of a unit (which only has one research ability) to 50% via trigger. I am successfully starting the research ability via trigger, however, when I use the "Set Progress of Unit Slot # to Percent" function, nothing happens.
I am using slot 1, but I'm not too sure what the slot # refers to. Anyone have any advice?
Thanks
Try using slot #0 instead. My guess is that the slot # only matters when you have a unit which produces two or more things at once, like a barracks with a reactor.
Slot 1 should be correct, at least that's whats working in my map. There must be some other kind of problem with your trigger, are you certain the action is targeting the correct unit?
@rtschutter: Go
Yes, the same unit variable is used to order the unit to start the research.
Is there some setting that needs to be correct, a flag on the research ability or upgrade, perhaps? I think I've tried all combinations, but no success...
@KrayzBlu: Go
What I'm trying to do in the end is have an adjustable 'progress' bar above a bunch of units. Would there be a better way to go about this?
I am still not quite sure what you are trying to do, but I made a little map that has a bunch of armories researching some upgrades, with little dialogs that pop up when you click them which allow you to change the progress of the current research for that unit.
Here is the map.
Hope this helps.
@rtschutter: Go
Thanks a lot! That's exactly what I wanted to do.
Glad I could help!
@KrayzBlu: Go
So for those who are curious, I figure out the problem.
The unit in question has to have one of the QUEUE abilities. Otherwise, nothing will happen!
@KrayzBlu: Go
Excellent discovery!