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

[General] Mass Variables

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
460
Okay I'm currently working on a Hero Defense map, and I'm making 20 total legendary items, and i want the drop rate to be 10%. So I now know that I need a total of 200 possible outcomes, and since I'm only doing this on bosses, I am going to simply make an action for it and put a random intgr between 1 and 200 for the item, but do I have to set 200 items? Or just the 20 in random Intergers and then pull at random?
 
Level 5
Joined
Jan 29, 2010
Messages
75
you only must do
if integer == 1

if integer == 23

if integer == 17

etc.

you don't must do it 200 times lol. only 20 times
 
Status
Not open for further replies.
Top