Custom Values

Discussion in 'Maps, Patches, and Mod Archives' started by Icedragon, Mar 24, 2009.

  1. Icedragon

    Icedragon BattleForums Addict

    Joined:
    Aug 2, 2002
    Messages:
    836
    Likes received:
    0
    Trophy points:
    0
    From:
    The Swiming Pools
    Does a Unit's custom value start at something Like 0 or if i want to use it to compare something should i set it to 0 when the unit spawns?

    Right now my triggers look like this so i know it works but i was wondering if the first trigger is a bit redundant

    Leveltimer Expires
    No Conditions
    Spawn Units
    Set units custom value to 0

    Unit enters reg 3
    No Conditions
    Set custom value to 1
    move to reg 1

    Unit enters reg 1
    if unit custom value > 1 then move to reg 2
    if unit custom value < or equal to 1 move to end