• 🏆 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!

[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