- Joined
- Jan 14, 2005
- Messages
- 73
So I have a trigger that re-spawns my Creeps in their original locations, I'm using Skirks Trigger thats here > http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/creep-respawn-gui-65987/
It does the re-spawning fine. However I don't want the Same Creeps to spawn all the time, so I decided to have multiple levels of each type of creep. Kind of like the Diablo 2, (Common, Uncommon, Rare, Etc)
What I would like to have help with is modifying Skirks Spawning system, so that when it re-spawns said unit, that unit has a chance to be One of the more Rare Types. For example
I have 3 Creeps all called Wolf (I have already made Multiple Units for this)
Wolf (Common)
Wolf (Uncommon)
Wolf (Rare)
I want it to spawn the Common wolf 90% of the time, uncommon 9% of the time and rare 1% of the time. How can I accomplish this and still be able to easily encorporate it into a drop system.
I would also like to setup my variables in this way:
Set Creature_Type[0] = Wolf (Common)
Set Creature_Type[1] = Wolf (Uncommon)
Set Creature_Type[2] = Wolf (Rare)
Set Creature_Type[3] = Bird (Common)
Set Creature_Type[4] = Bird (Uncommon)
Set Creature_Type[5] = Bird (Rare)
I Know this is fairly complicated, As such Im asking for some help or Ideas. I have one But Im not sure its very Effecient,
When Creep is Spawned, Generate random Number, If that Number = 1to90 out of 100 and Creep Spawned is != Common then Kill Creep and Spawn Common. (if its 91 to 99 then spawn uncommon Else spawn Rare)
The problem with that is then I would have to be constantly Storing newly Created Creatures inside Skirks Variables and not only that but I believe it would be slower then it needs to be.
If anyone has any questions on what I want please post so that I Know where this is more confusing lol.
Thanks In advance for any help.
It does the re-spawning fine. However I don't want the Same Creeps to spawn all the time, so I decided to have multiple levels of each type of creep. Kind of like the Diablo 2, (Common, Uncommon, Rare, Etc)
What I would like to have help with is modifying Skirks Spawning system, so that when it re-spawns said unit, that unit has a chance to be One of the more Rare Types. For example
I have 3 Creeps all called Wolf (I have already made Multiple Units for this)
Wolf (Common)
Wolf (Uncommon)
Wolf (Rare)
I want it to spawn the Common wolf 90% of the time, uncommon 9% of the time and rare 1% of the time. How can I accomplish this and still be able to easily encorporate it into a drop system.
I would also like to setup my variables in this way:
Set Creature_Type[0] = Wolf (Common)
Set Creature_Type[1] = Wolf (Uncommon)
Set Creature_Type[2] = Wolf (Rare)
Set Creature_Type[3] = Bird (Common)
Set Creature_Type[4] = Bird (Uncommon)
Set Creature_Type[5] = Bird (Rare)
I Know this is fairly complicated, As such Im asking for some help or Ideas. I have one But Im not sure its very Effecient,
When Creep is Spawned, Generate random Number, If that Number = 1to90 out of 100 and Creep Spawned is != Common then Kill Creep and Spawn Common. (if its 91 to 99 then spawn uncommon Else spawn Rare)
The problem with that is then I would have to be constantly Storing newly Created Creatures inside Skirks Variables and not only that but I believe it would be slower then it needs to be.
If anyone has any questions on what I want please post so that I Know where this is more confusing lol.
Thanks In advance for any help.