• 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] All Random trigger need fix pls help!

Status
Not open for further replies.
Level 13
Joined
Mar 21, 2014
Messages
893
I've made this All Random like system
  • All Random
    • Events
      • Player - Player(Red) types -ar as an exact match
    • Conditions
    • Actions
      • If Random Interger between 1 to 5 equal to 2 And Then Create 1 Eredar for Player(Red) at Region 1
      • -------- And then I put this 5 times differently --------
The problem is now! When I type and took a look at it and IT CREATES 3 HEROES!!! Help!!
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
If you're just toying around, your other option is to set an integer variable to a random number, then run through each case, e.g.

set integer x = Random integer between 1 and 5
if x == 1 then
Create Archmage hero
if x == 2 then
Create Ereder hero
etc.
 
Status
Not open for further replies.
Top