1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] Pick Every Unit And Do Action

Discussion in 'Triggers & Scripts' started by Crepuscular, May 31, 2013.

  1. MasterTrainer

    MasterTrainer

    Joined:
    Apr 14, 2012
    Messages:
    2,768
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Spells:
    1
    Resources:
    3
    Okay I tested it and maybe the reason it does not work is you turn off the first trigger and the second trigger, but you never turn them on again.
     
  2. Crepuscular

    Crepuscular

    Joined:
    May 31, 2013
    Messages:
    19
    Resources:
    0
    Resources:
    0
    they are looped : first starts second and turns itself off then second turn on first and turns itself off
    the problem is i dont know meaby in the way it counts units which are using supplies. about that trigger checking maaaan... it will take hours... btw thx for the info about CnP didnt knew bout it

    Edit: i add new map with updated triggers it does work but! if you kill a unit and reach cap it counts dead as using supplies and so trigger runs even though you are not short on food
    and that might be problem on my map becuase i have spawning units etc... counting is wrong

    Edit 2: i tested it on my map and it seems it runs every time i even have 1 food in use... if dont have i doesnt run. so... wth ?

    Edit 3: is there a way to fix CnP bugs ? or i have to edit older versions and do it all over again ?
     

    Attached Files:

    Last edited: Jun 1, 2013
  3. Crepuscular

    Crepuscular

    Joined:
    May 31, 2013
    Messages:
    19
    Resources:
    0
    Resources:
    0
    everything works fine now. it was all CnP bug i wasnt aware of. problem is solved ;)
     
  4. MasterTrainer

    MasterTrainer

    Joined:
    Apr 14, 2012
    Messages:
    2,768
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Spells:
    1
    Resources:
    3
    I knew it; it was a problem in the importing after all.

    I'm glad you solved your problem :)
     
  5. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,512
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    See? Its a problem in the CnP....... good thing I explained it clearly in some of my posts..... *sigh*

    Nice work on solving it. =)
     
  6. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    You can use [hidden=Triggers][/hidden] tags to hide triggers so they won't stretch the page.

    Triggers

    • Melee Initialization
      • Events
        • Map initialization
      • Conditions
      • Actions
        • Melee Game - Use melee time of day (for all players)



    And a pro tip, wrap all that in [stable][/stable] tags to make it even neater.

    Triggers

    • Melee Initialization
      • Events
        • Map initialization
      • Conditions
      • Actions
        • Melee Game - Use melee time of day (for all players)


     
  7. Crepuscular

    Crepuscular

    Joined:
    May 31, 2013
    Messages:
    19
    Resources:
    0
    Resources:
    0
    ill keep that in mind on later posts ;)
     
  8. MasterTrainer

    MasterTrainer

    Joined:
    Apr 14, 2012
    Messages:
    2,768
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Spells:
    1
    Resources:
    3
    ^ Apply it now to your trigger post using the [​IMG] Button
     
  9. Crepuscular

    Crepuscular

    Joined:
    May 31, 2013
    Messages:
    19
    Resources:
    0
    Resources:
    0
    problem is solved so why bothering ;P
     
  10. MasterTrainer

    MasterTrainer

    Joined:
    Apr 14, 2012
    Messages:
    2,768
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Spells:
    1
    Resources:
    3
    It's a good practice; but eh. Your thread, your rules.