• 0

    posted a message on Unit Combination Region Trigger Help

    Thank you so much for the reply. The biggest issue I am running into now is finding a way to efficiently remove the units in the region. Do you have any advice for this? I can't seem to find a way to have them remove units of different types - The most I have been able to do is remove the triggering unit (of which there is only one).

    Posted in: Triggers
  • 0

    posted a message on Unit Combination Region Trigger Help

    Hello,

    I am trying to create a trigger that will combine two units into one.

    For instance, if player 1 puts a Siege Tank and Marauder onto the point, they are removed and player 1 gets a Thor.

    Currently I have a trigger that combines two Siege Tanks into a single Thor. The problem is creating a trigger that can combine units that aren't the same type. Any advice is welcome. My tank combine trigger posted below.

    • tank combine
    • Events
    • Unit - Any Unit Enters Region 001
    • Local Variables
    • Conditions
    • And
    • Conditions
    • (Count of units in Region 001 having alliance Ally with player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) > 1
    • (Unit type of (Triggering unit)) == Siege Tank (Tank Mode)
    • Actions
    • Unit - Create 1 Thor for player (Triggering player) at marine binding spawn using default facing (No Options)
    • Unit Group - Pick each unit in ((Unit type of (Triggering unit)) units in (Triggering region) owned by player (Triggering player) matching Excluded: Missile, * * Dead, Hidden, with at most Any Amount) and do (Actions)
    • Actions
    • Unit - Remove (Picked unit) from the game

    Edit #1: This particular trigger works. I can put two tanks into the region and they will be removed for me to get a Thor. However, I do not know how to make this trigger work with units of different types.

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