While using the trigger menu, I'm finding it very hard to figure out how to target a specific unit for anything, a unit that isn't in a unit group nor attached to a region or point. I want it so when a unit moves to the specified region, a neutral Zealot is rescued and given to the player. I don't know how to get it so a singular unit is targeted. Not just for rescuing, but for anything. Please help.
I believe there's two versions of the rescue unit action. One for individual units and one for unit groups. If not, there's an action to convert a singular unit into a unit group.
In many instances, reference to a specific unit usually refers to the triggering unit of the said Trigger Event.
For example, assuming that you have a region as Region001, and you want it as such when say, a marine enters the said region (Region001), the neutral zealot will be converted/given to the player. You might need the following trigger :-
Event: Any Unit Enters Region (Region001)
Local Variable: Player = Owner of Triggering Unit <Integer>
Condition: (Unit Type Of (Triggering Unit)) = Marine
Action: Change Ownership of Zealot [127.85, 129.63 - The X & Y Point of the Zealot as placed in the map] to player Player and change color.
You can refer to the attached demo map for further clarification. Thanks.
I have updated the demo map to include the condition whereby once the marine enters the region, the zealot will automatically follow the marine everywhere it goes to or moves. I think this suites the idea of a rescue system. The demo map updated as attached above.
Btw, William, would you mind answering another question for me?
I've created an upgrade which works flawlessly, however the upgrade can be researched multiple times at once (it only works once), and it doesn't disappear from the Engineering Bay's Command Card. How do I fix this?
however the upgrade can be researched multiple times at once (it only works once),
I don't get this, what do you mean by the upgrade can be researched multiple times (unless you have multiple upgrades on the samebutton, is this what you are trying to imply?)
Maybe try looking into the weapon upgrades or armor upgrades in the Terran Armory (whereby weapon upgrades level 1, 2 and 3 for example, were on the same command button.)
Btw, William, would you mind answering another question for me?
I've created an upgrade which works flawlessly, however the upgrade can be researched multiple times at once (it only works once), and it doesn't disappear from the Engineering Bay's Command Card. How do I fix this?
You'll need to add a requirement to the upgrades research ability. Take a look at other upgrades for examples.
For your first question you can have a buff on the unit with a damage response when fatal that reduces incoming damage to 0 and uses a dummy effects your trigger responds to.
For the second question give the Research ability a requirement that counts how many times it has researched the upgrade.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Greetings.
While using the trigger menu, I'm finding it very hard to figure out how to target a specific unit for anything, a unit that isn't in a unit group nor attached to a region or point. I want it so when a unit moves to the specified region, a neutral Zealot is rescued and given to the player. I don't know how to get it so a singular unit is targeted. Not just for rescuing, but for anything. Please help.
I believe there's two versions of the rescue unit action. One for individual units and one for unit groups. If not, there's an action to convert a singular unit into a unit group.
There is a version to rescue a singular unit, yet I don't know how to specify it for THAT unit, like select that unit to be rescued.
How do you convert a singular unit into a unit group? I don't know what action your talking about.
In reply to JeSuisUnEspion:
Update:
I have updated the demo map to include the condition whereby once the marine enters the region, the zealot will automatically follow the marine everywhere it goes to or moves. I think this suites the idea of a rescue system. The demo map updated as attached above.
Damn, you went through a lot of effort just to answer a simple question. Definetly appreciate it. Thanks!
Btw, William, would you mind answering another question for me?
I've created an upgrade which works flawlessly, however the upgrade can be researched multiple times at once (it only works once), and it doesn't disappear from the Engineering Bay's Command Card. How do I fix this?
For your first question you can have a buff on the unit with a damage response when fatal that reduces incoming damage to 0 and uses a dummy effects your trigger responds to.
For the second question give the Research ability a requirement that counts how many times it has researched the upgrade.
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