• 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.

-ap & -ar

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hiya, I was wondering how it comes random heroes for players when player red writes -ar, and you can choose yourself when he writes -ap
Would appreciate help ::cool:
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
well if you want -ap just make a normal hero selection system with altar or whatever, if you want it random then use sth like this:

  • Events
    • Player 1 types -ar as an exact match
  • Conditions
  • Actions
    • for each integerA from 1 to 8 do action
    • set chance random number between 1 and 10
    • if chance equal to 1 then create hero 1 for player(integerA)
    • if chance equal to 2 then create hero 2 for player(integerA)
    • if chance equal to 3 then create hero 3 for player(integerA)
    • ...

this is for 8 with 10 different heroes just change the numbers accoding to your needs

Edit sry, didn't notice i left the german expressions
 
Last edited:
Status
Not open for further replies.
Top