Need help with triggering

Discussion in 'StarCraft 2 Maps, Replays, Modding' started by Daemonicus, Sep 6, 2010.

Need help with triggering

  1. Daemonicus

    Daemonicus New Member

    Joined:
    Aug 10, 2010
    Messages:
    57
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australia
    I have hit a wall in my limited knowledge of triggering and need some help. :wacko:

    I want an event that deal 10 damages to the unit.

    here's what i have:

    Trigger:
    - Any unit is selected

    condition:
    - Unit owned by player 3

    Event:
    - set unit property (life to...)

    i cant work out how to change the life to "current life - 10"
    i can make it change to 10, but that's not what i want to do...
     
  2. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Set Unit Property Life to Arithmetic: Integer (Unit Property: Triggering Unit Current Life - 10). This is like setting X to X-10. X is simply the triggering unit's current life.
     
  3. Daemonicus

    Daemonicus New Member

    Joined:
    Aug 10, 2010
    Messages:
    57
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australia
    okay... i will try that and get back to u

    Thanks