Tutorial: Hyper Triggers [StarCraft]

Discussion in 'Maps and Replays' started by Imagine., Aug 5, 2007.

Tutorial: Hyper Triggers [StarCraft]

Discussion in 'Maps and Replays' started by Imagine., Aug 5, 2007.

  1. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    HYPER TRIGGERS:
    ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦
    Hyper triggers are the most useful method of utilizing wait actions, however what do they do and more importantly, how do I use them? Hyper triggers let your triggers fire off at a much faster rate than they normally would (12 times faster), which results in more complex and advanced triggers. Once you get the hang of hyper triggers, you will be glad you learned about it and you will be glad that you will implement what you have learned.

    So let us begin with the tutorial!

    Requirements:
    - StarCraft Campaign Editor (Or any other alternative)
    - * A Player without wait actions


    I will post more about hyper triggers soon.
     
    Last edited: Oct 16, 2008
  2. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    The most important is:
    I often heard noobs saying that their hypertriggers didn't work corectly... and that was because their computer player ran other triggers with waits in it..

    Also you might prefer a computer player over a human player even if this one has no wait triggers because if the human player isn't in the game, the hypers won't be there!
     
  3. Shadowdragon

    Shadowdragon New Member

    Joined:
    Jul 17, 2007
    Messages:
    507
    Likes received:
    0
    Trophy points:
    0
    I haven’t seen hyper triggers used on any of the maps I’ve ever played. Can you tell me an example map where it was used? Or better yet, show a trigger where it was needed?
     
  4. danhillman693

    danhillman693 Member

    Joined:
    May 23, 2007
    Messages:
    197
    Likes received:
    0
    Trophy points:
    16
    Yeah, I use hyper triggers whenever I make a map which plays a WAV when you lose, because if you don't, it will be too late, I don't know why, but it won't play if you just make the actions like:

    End scenario in defeat for current player
    Play WAV file
     
  5. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    You would not notice if hyper triggers are present, unless of course you view through the triggers and/or are the creator of the map. But to name a few maps that contain hyper triggers, there is Particle Arena, Laser Tag v3, numerous bounds, etc. etc.


    There is a wait block. That is usually the case when something fires off later.
     
  6. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    To Shadowdragon:

    I would suggest using hyper triggers in any map. really. and they are pretty much in every decent map.. in my book a map without hyper triggers is pure shit.

    for a good example of a trigger that NEEDS it to work, read my tutorial about grid system.

    another good example are the bound maps.. without hypertriggers they aren't working.
     
  7. ArchaicDrago

    ArchaicDrago Member

    Joined:
    Sep 24, 2008
    Messages:
    337
    Likes received:
    1
    Trophy points:
    18
    From:
    Vernon BC
    So if there are any wait triggers other than the hypertrigger.. The hypertrigger wont work?
     
  8. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Nope! The hyper trigger will be working but any other trigger with wait actions are delayed a lot. Say for example, you have a Wait for 1,200 milliseconds. That 1,200 milliseconds turns into an extremely long delay. I forget the math with this because Moogle was the one that showed me.
     
  9. ArchaicDrago

    ArchaicDrago Member

    Joined:
    Sep 24, 2008
    Messages:
    337
    Likes received:
    1
    Trophy points:
    18
    From:
    Vernon BC
    So i CANT add a hyper trigger to my RPG i made? :( cause i have wait timers.

    But its now 100% complete if u wanna take a look at it let me know ( i added a 7th class, Caster Class )
     
  10. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Well adding in hyper triggers after the fact that you already placed wait actions in other trigger will either make or break your RPG. Hyper triggers are volatile and its almost essential to pre-place them before anything else. You could try putting in hyper triggers and see how screwed everything becomes just to experiment with them.
     
  11. ArchaicDrago

    ArchaicDrago Member

    Joined:
    Sep 24, 2008
    Messages:
    337
    Likes received:
    1
    Trophy points:
    18
    From:
    Vernon BC
    Yeah i could do that lol..

    And how do i upload maps again? ............... i never do stuff like this.. so i forgot
     
  12. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    When you post a message, look just a little below the text input area and you will see a little button that says Manage Attachments. Click on that and it should open up a pop-up window with the File Upload form.
     
  13. ArchaicDrago

    ArchaicDrago Member

    Joined:
    Sep 24, 2008
    Messages:
    337
    Likes received:
    1
    Trophy points:
    18
    From:
    Vernon BC
    Mmkay. Hope this works.

    I fixed a few errors and all that in it too.. It runs really nice.

    The computer doesnt sit there n gather minerals and go DUrrrrrrrrrrrrrrrrrrrRRRrrrrrrrrrrrrr.......!!111111111111

    It actually does stuff now!
     

    Attached Files:

  14. marcmad

    marcmad New Member

    Joined:
    Feb 1, 2009
    Messages:
    166
    Likes received:
    0
    Trophy points:
    0
    I don't really understand the Hyper trigger...

    you just put wait 0millisecond 60 times? like I don,t really understand why
     
  15. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Ok. So basically, the triggers of a starcraft map cycle about every second. This means that the most times a trigger can be executed in one second is once. Hyper triggers reduce this once-per-second delay. If you set it to 0 milliseconds, it will have a delay of 0 milliseconds (theoretically). If you don't want the triggers to go quite so fast, you can change the wait to a different value. For example, if you want the triggers to cycle every half a second, set it to wait 500 milliseconds. (1 second = 1000 milliseconds).
     
  16. marcmad

    marcmad New Member

    Joined:
    Feb 1, 2009
    Messages:
    166
    Likes received:
    0
    Trophy points:
    0
    I tried it


    condition: Players 1 kill at least 1 protoss carrier

    Action: Modifie ressource for player 1 Add 1 minerals
    Preserve trigger
    wait 0 miliseconds
    wait 0 miliseconds
    wait 0 miliseconds
    wait 0 miliseconds
    (etc)

    It work way slower with all those wait 0 miliseconds and i filled completly action list.
    why is that slow?
     
  17. Imagine.

    Imagine. New Member

    Joined:
    Jun 24, 2007
    Messages:
    1,260
    Likes received:
    4
    Trophy points:
    0
    Leave the condition at ALWAYS and I will emphasize this... DO NOT PUT THE HYPER TRIGGERS IN PLAYER SLOTS THAT ALREADY HAVE WAIT ACTIONS!
     
  18. Arvendragon

    Arvendragon Member

    Joined:
    Oct 6, 2008
    Messages:
    578
    Likes received:
    0
    Trophy points:
    16
    From:
    Canada
    WOW
    JBl, ArachicDrago AND ImaGiNE
    OMG!

    As everyone had said. Hyper Triggers are nearly absolutely necessary. Any map which could have it should have it.

    And does anyone have the method for the Switch Hypertriggers?
     
  19. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Simply attach Hyper Triggers to a switch condition, then activate the switch whenever you want hyper triggers on?