• 🏆 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] 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,337
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