- Joined
- Mar 26, 2009
- Messages
- 301
I am planning to make a new creep spawn system that spawns random creeps based on random number between 0-100. The table is something like this:
I was planning to use If/Then/Else function to achieve what I want. But then, it occured to me that -for instance- using ... equal or greater than 34, it is going to spawn Ghouls as well as anything else above integer value 34. So how should I make this system? Is it possible to tell game engine to check if X integer fulfills following condition (in GUI?): 34 < x z 65 in
0-25 = Zombie
26-33 = Mutated Bat
34-65 = Ghoul
66-72 = Forgotten One
73-80 = Abomination
81-85 = Fiend
86-90 = Stalker
90-95 = Glowing One
96-100 = Dreadlord
26-33 = Mutated Bat
34-65 = Ghoul
66-72 = Forgotten One
73-80 = Abomination
81-85 = Fiend
86-90 = Stalker
90-95 = Glowing One
96-100 = Dreadlord
I was planning to use If/Then/Else function to achieve what I want. But then, it occured to me that -for instance- using ... equal or greater than 34, it is going to spawn Ghouls as well as anything else above integer value 34. So how should I make this system? Is it possible to tell game engine to check if X integer fulfills following condition (in GUI?): 34 < x z 65 in