Une FAQ dédiée à l'éditeur chez Blizzard

JudgeHype | 10/09/2010 à 08h31 - 0

Blizzard propose sur les forums US une FAQ dédiée à l'éditeur. Celle-ci reprend diverses questions posées par les joueurs ces dernières semaines. Espérons que celle-ci sera traduite en français par Blizzard Europe.

Q. tai- Is there an easy way to call a unit in the map? For example, if in a trigger I want to have a condition "Triggering Unit == Marine," but not a marine that's already on the map or something that uses "unit in unit group," "last created unit," or some other function that does everything except have a general statement for any marine.

A. We're not entirely sure of what you're asking but we'll take a stab. If this doesn't help you out, please feel free to post again and provide a little more context so that we can pin point what it is you're trying to do.

If your trigger is intended to target a Marine that has just been created, then the 'issue order' to 'last created unit' is actually most likely the reference you are looking for to get that Marine. As an aside, you would want to use the 'issue order to unit group' and 'last created units' if you are spawning multiple Marines.

However if you're looking to avoid using 'last created unit', or it doesn't work for you based on how your triggers are structured, then you could use the "Unit enters region" event and set the region to "Entire Map". Combined with the "Triggering Unit == Marine" condition, that would cover any spawning cases.

If you are looking to get a unit that was spawned previously and is now necessary for something else, then you actually would want to use "Unit from Unit Group" and the "Units in Region Matching Condition" function to narrow it down to the specific unit. There isn't a running list of units on the map that you can simply pick from once things are in full swing; you have to filter it down somehow to get exactly the one you want or be able to get that marine off of a specific event.

We'd also recommend storing any unit that you want to find later to a global variable if it is important.


Aucun commentaire - [Poster un commentaire]


Chargement des commentaires...

Poster un commentaire

Vous devez vous identifier pour poster un commentaire.
Nombre de visites sur l'accueil depuis la création du site StarCraft II : 20.943.180 visites.
© Copyright 1998-2024 JudgeHype SRL. Reproduction totale ou partielle interdite sans l'autorisation de l'auteur. Politique de confidentialité.