• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Random Heroes GUI Help

Status
Not open for further replies.
Level 7
Joined
May 23, 2011
Messages
179
Guys is there something wrong with this because i think it wont work....
  • Command All Random
    • Events
      • Player - Player 2 (Blue) types a chat message containing -ar as An exact match
      • Player - Player 2 (Blue) types a chat message containing -allrandom as An exact match
    • Conditions
      • GameMode Equal to MODE_Normal
    • Actions
      • Set GameMode = MODE_AllRandom_AllPick
      • Quest - Display to Players the Secret message: All random mode ena...
      • Player Group - Pick every player in Players and do (Actions)
        • Loop - Actions
          • Set Random_Hero = (Random integer number between 1 and RandomTotal_All)
          • Unit - Create 1 Heroes_All[RandomData_All[Random_Hero]] for (Picked player) at ((Picked player) start location) facing Default building facing degrees
          • Quest - Display to (All enemies of (Picked player)) the Hint message: (A player has randomed + (Name of (Last created unit)))
          • Set Player_Already_Picked[(Player number of (Picked player))] = (Player_Already_Picked[(Player number of (Picked player))] + 1)
          • Player Group - Pick every player in Players and do (Actions)
            • Loop - Actions
              • Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
          • Set RandomData_All[Random_Hero] = RandomData_All[RandomTotal_All]
          • Set RandomTotal_All = (RandomTotal_All - 1)
      • Quest - Display to Players the Secret message: All random mode ena...
Help guys.....
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
A simple allrandom mode:
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Hero[1]=Bloodmage
    • Set Hero[2]=Knight
    • Set Hero....
  • Events
    • Player - Player 2 (Blue) types a chat message containing -ar as An exact match
    • Player - Player 2 (Blue) types a chat message containing -allrandom as An exact match
  • Conditions
  • Actions
    • Trigger - Turn off (other mode triggers)
    • Set R = Math random number between 1 and (number of heroes)
    • Player Group - Pick Every player in game and do multiple actions
      • Unit - Create 1 Hero[R]......
 
Status
Not open for further replies.
Top