• 0.94221785099582

    posted a message on How to Zoom the camera in on a hero?

    Hi, Ray,


    Do check out OneTwo's 3rd person RPG tutorial on this issue. I believe it will be helpful to you, especially the 2nd part of the tutorial.




    Posted in: Triggers
  • 0.955092221331195

    posted a message on A number of questions about Trigger related issues

    In reply to sc2ggamer:

    Unit Is Created can also be used for when you specify the action - Create Units in your trigger. This means any action - Create Units that you have created in separate triggers or actions, you can specify that unit using the Trigger event - Unit Is Created, by adding a condition - Created Unit == The Unit that is created through the action - Create Units.


    Say for example, 


    Trigger A

    Event - Map Initialization

    Action - Create Units With Default Facing - Hero A at Point...


    Trigger B

    Event - Unit Is Created

    Condition - Created Unit == Hero A

    Action - Here, you specify the actions for Hero A. Eg. Execute Effect A to Target Unit (Hero A) from Caster Unit (Hero A).


    If, for example, your unit is created through data and not through Triggers, e.g. through a train ability.


    Then, you will need to create a dummy effect which you can use via triggers. 

    Put the dummy effect under the Unit : Effect (Birth).


    Next, create a trigger with Effect Used Event specifying the dummy effect.

    Create a global variable which serves to mark the Unit.

    Under the Effect Used Event Trigger, set the global variable == Triggering Effect Unit (Caster).


    This means that during the Unit : Effect (Birth) event when the unit is created through the train ability, the following actions runs and so on.


    Lastly, another alternative is to use Data Tables where you can save a Unit into a string and later use it in your trigger.


    I hope that explains.




    Posted in: Triggers
  • To post a comment, please or register a new account.