HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random?

04-20-2004, 12:12 AM#1
Cell
I need a stright out trigger...

Player brings footmen to Location X
kills footmen at location x
create random customize unit...

how do i do that? bring a unit somewhere and u crete a random unit...? i think i have 40+ customized units... pls help... am making a top secret game :)
04-20-2004, 01:00 AM#2
ThyFlame
VariableArray[1] = Unit-type Bob
VariableArray[2] = Unit-type Joe
...
VariableArray[40] = Unit-type Bill



Unit enters region whatever
Unit == Whatever
Kill entering unit
Create 1 VariableArray[math - random number from 1 - 40] in region whatever facing whatever degrees.


VariableArray is a unit-type variable.