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.

easy funtion question

Discussion in 'Triggers & Scripts' started by T. D. W., Sep 26, 2013.

  1. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    O_?
    I was at school when i replied about your post.. I haven't time to test it... + the explanations you gave weren't very detailed on how to do it...
     
  2. Kanadaj

    Kanadaj

    Joined:
    Oct 18, 2008
    Messages:
    1,584
    Resources:
    2
    Icons:
    2
    Resources:
    2
    Mate, this is just like raping GUI :p
     
  3. ngkn92

    ngkn92

    Joined:
    Oct 28, 2012
    Messages:
    78
    Resources:
    0
    Resources:
    0
    What can I say, it is raping GUI.
    Beatbox mode.:ogre_datass:
     
  4. mikagami

    mikagami

    Joined:
    Aug 9, 2012
    Messages:
    112
    Resources:
    0
    Resources:
    0
    by the way if

    trigger 1
    if condition true
    called trigger 2,

    then trigger 2
    after all process
    can it makes the trigger 1 skip the remaining action? before trigger 2 ends and back to trigger 1
     
  5. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    You mean like this ?
    • Trigger 1
      • Events
        • Map initialization
      • Conditions
      • Actions
        • Game - Display to (All players) the text: hey
        • Trigger - Run Trigger 2 <gen> (ignoring conditions)
        • Skip remaining actions
        • Game - Display to (All players) the text: delilah


    • Trigger 2
      • Events
      • Conditions
      • Actions
        • Game - Display to (All players) the text: there


    Trigger above will only display "hey" and "there" - "delilah" won't be shown because it has been skipped ?

    I can't quite understand what you are trying to ask.
     
  6. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    @Mikagami, here is how what you want should work:

    • Untitled Trigger 001
      • Events
        • Time - Every 2.00 seconds of game time
      • Conditions
      • Actions
        • Set temp_boolean = false
        • Game - Display to (All players) the text: TEST 1
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Whatever) Equal to True
          • Then - Actions
            • Trigger - Run Untitled Trigger 002 <gen> (checking conditions)
          • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (temp_boolean) Equal to True
          • Then - Actions
            • -------- Continue the process HERE --------
            • Game - Display to (All players) the text: TEST Complete
          • Else - Actions
    • Untitled Trigger 002
      • Events
      • Conditions
      • Actions
        • Game - Display to (All players) the text: TEST 2
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Random integer number between 1 and 10) Less than 5
          • Then - Actions
            • Set temp_boolean = true
          • Else - Actions

    ^ This will if the random number is lower than 5, make the trigger 1 continue the process where the comment is and if it is higher than 5, nothing will happen
     
  7. mikagami

    mikagami

    Joined:
    Aug 9, 2012
    Messages:
    112
    Resources:
    0
    Resources:
    0
    @defskull no... thts not what I mean, I mean run trigger 2 from trigger 1 then within trigger 2.... its make the rest of trigger 1 skip remaining action.... so if trigger 1 dont activated trigger 2, then its still have trigger/line to go....

    @jad aaah thts it, I can passed condition, create var value and when the function back to trigger 1 I can set the condition to make it skip or not...

    GOt it, thx
     
  8. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    You're welcome