HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Easy trigger but i am noob....

01-17-2004, 03:52 PM#1
ABM
Well in the past i did it, but i forgot how to do it....
please help...

i need to give something a percentage of chance to occure.

for example at position of starting units when the timer expire create randomly a units between 5 others.
ex: if 1 footman 2 knight 3priest 4sorceress 5griffin.
how to make this random number thing?
01-17-2004, 04:50 PM#2
Darimus
try setting an array

(unit type array)

yourUnit[1]=footman
yourUnit[2]=knight
... thru 5

then for creating it do

create unit-type of yourUnit[Math - random no. from 1 to 5] at blah blah for whoever facing default degrees
01-17-2004, 07:23 PM#3
Supra God CrK
^~~~ basically he said it all. just give each unit (or whatever) a number and than do pick a random number from whatever to whatever and do blank. lol i prob added nothing to this but hey you never know it may help.
01-28-2004, 08:31 PM#4
Zarniwoop
lol... actually had the same problem once... took me DAYS to figure out... ::gsmile: