SC2Mapster Forums

Development > Triggers

Setting Research Progress Not Working

  • 10 posts
    #1 Jan 31, 2013 at 20:15 UTC - 0 likes

    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

    #2 Jan 31, 2013 at 20:42 UTC - 0 likes
    Quote from KrayzBlu: Go

    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.

    My Projects:
    Malum Ruina: SC2Mapster
    Eternal Exile: SC2Mapster
    Spine Crawler Madness: SC2Mapster
    Xeno Crisis: SC2Mapster

    #3 Jan 31, 2013 at 23:22 UTC - 0 likes

    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?

    Last edited Jan 31, 2013 by rtschutter
    #4 Jan 31, 2013 at 23:44 UTC - 0 likes

    @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...

    Last edited Jan 31, 2013 by KrayzBlu
    #5 Feb 01, 2013 at 05:05 UTC - 0 likes

    @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?

    #6 Feb 01, 2013 at 06:45 UTC - 1 like

    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.

    #7 Feb 01, 2013 at 16:11 UTC - 0 likes

    @rtschutter: Go

    Thanks a lot! That's exactly what I wanted to do.

    #8 Feb 02, 2013 at 02:52 UTC - 0 likes

    Glad I could help!

    #9 Feb 02, 2013 at 04:12 UTC - 0 likes

    @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!

    #10 Feb 02, 2013 at 12:40 UTC - 0 likes

    @KrayzBlu: Go

    Excellent discovery!

  • 10 posts

You must login to post a comment. Don't have an account? Register to get one!