1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Is there another way?

Discussion in 'Triggers & Scripts' started by KrigeKongen, Feb 13, 2009.

  1. KrigeKongen

    KrigeKongen

    Joined:
    Mar 25, 2008
    Messages:
    145
    Resources:
    0
    Resources:
    0
    • Dwarf Spawn
      • Events
        • Time - Every 90.00 seconds of game time
      • Conditions
      • Actions
        • Unit - Create 3 Dwarven Footman for (Owner of Dwarven Castle 0004 <gen>) at (Center of Dwarven Spawn <gen>) facing Default building facing degrees
        • Unit - Create 2 Rifleman for (Owner of Dwarven Castle 0004 <gen>) at (Center of Dwarven Spawn <gen>) facing Default building facing degrees


    This is the main trigger, but i dont want it to spawn units for neutral hostile or neutral passive so i made this side trigger
    • Dwarf Kill
      • Events
        • Unit - A unit enters Dwarven Spawn <gen>
      • Conditions
        • (Owner of (Triggering unit)) Equal to Neutral Passive
      • Actions
        • Unit - Remove (Triggering unit) from the game


    Is there another way doing this or is this the only way?
     
  2. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    If (Owner of Dwarven Castle 0004 <gen>) is not equal to Neutral...
     
  3. KrigeKongen

    KrigeKongen

    Joined:
    Mar 25, 2008
    Messages:
    145
    Resources:
    0
    Resources:
    0
    Eh i know that but the building starts with a neutral ownership, so there can be maximum players in my map.
     
  4. ZiggyMcjoney

    ZiggyMcjoney

    Joined:
    May 4, 2008
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I don't understand how that means that his solution will not work :p
     
  5. KrigeKongen

    KrigeKongen

    Joined:
    Mar 25, 2008
    Messages:
    145
    Resources:
    0
    Resources:
    0
    Neutral start with ownership of the building and i asked if there was a easier way to make it that there did not spawn neutral units, my trigger works perfectly but i'm asking if there is a easier/other way to do it than this. Hope you understand now^^
     
  6. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Ok...

    Dã?
     
  7. Soga-

    Soga-

    Joined:
    Jul 20, 2008
    Messages:
    374
    Resources:
    0
    Resources:
    0
    How the OP does not understand this is the solution to his problem is beyond me.