• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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