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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. 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] All Random Trigger not working

Discussion in 'Triggers & Scripts' started by jokerman10000, Nov 21, 2018.

  1. jokerman10000

    jokerman10000

    Joined:
    Nov 3, 2010
    Messages:
    443
    Resources:
    0
    Resources:
    0
    Hey, can someone tell me where I get it wrong?

    • Aktionen
      • Spielergruppe - Pick every player in (All players) and do (Actions)
        • Schleifen - Aktionen
          • Video - Turn cinematic mode Aus for (All players)
      • Set HeroTypeCount = 15
      • Set HeroType[1] = Inquisitor
      • Set HeroType[2] = Wizard
      • Set HeroType[3] = Mountain Giant
      • Set HeroType[4] = Blackrock-Clan-Klingenmeister
      • Set HeroType[5] = Witch Doctor
      • Set HeroType[6] = Warlock
      • Set HeroType[7] = Lich
      • Set HeroType[8] = Vampire
      • Set HeroType[9] = Abomination
      • Set HeroType[10] = Gruftlord
      • Set HeroType[11] = Druid
      • Set HeroType[12] = Dämonenjäger
      • Set HeroType[13] = Wächterin
      • Set HeroType[14] = Feuerlord
      • Set HeroType[15] = Ranger
      • Spielergruppe - Pick every player in (All players matching (((Picked player) slot status) Gleich Spielt)) and do (Actions)
        • Schleifen - Aktionen
          • Spieler - Set (Picked player) Aktuelles Holz to 50
          • Set RandInt = (Random integer number between 1 and HeroCount)
          • Einheit - Create 1 HeroType[RandInt] for (Picked player) at ((Picked player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees
          • Set HeroType[RandInt] = HeroType[HeroTypeCount]
          • Set HeroTypeCount = (HeroTypeCount - 1)



    Thanks!
     
  2. pick-a-chew

    pick-a-chew

    Joined:
    Jul 15, 2007
    Messages:
    692
    Resources:
    4
    Icons:
    2
    Maps:
    2
    Resources:
    4
    Spielergruppe - Pick every player in (All players matching (((Picked player) slot status) Gleich Spielt)) and do (Actions)

    should be

    Spielergruppe - Pick every player in (All players matching (((Matching player) slot status) Gleich Spielt)) and do (Actions)
     
  3. jokerman10000

    jokerman10000

    Joined:
    Nov 3, 2010
    Messages:
    443
    Resources:
    0
    Resources:
    0
    Hey, thanks for your quick reply!
    Did that and tried it in the World Editor. Somehow blue also got a champ. Is that a WE bug or?
     
  4. pick-a-chew

    pick-a-chew

    Joined:
    Jul 15, 2007
    Messages:
    692
    Resources:
    4
    Icons:
    2
    Maps:
    2
    Resources:
    4
    If your player settings aren't fixed, then a second computer player will be present by default.

    To fix that, open up player settings and tick the 'fixed player settings' box and he shouldn't spawn (assuming player blue is going to be a fillable player slot for you)
     
  5. jokerman10000

    jokerman10000

    Joined:
    Nov 3, 2010
    Messages:
    443
    Resources:
    0
    Resources:
    0
    Wow! Thanks so much. It worked!