View Single Post
Old 03-17-2008, 10:39 AM   #2 (permalink)
Chris
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,604
Re: Random Roshan-like spawns ?

If you have a Unit array, just have an iterator integer start at 0.

If the Unit at index 0 gets killed, capture that event by adding 1 to the iterator. Then peform a wait for a certian period of time, then spawn the unit at index iterator. Keep going until the iterator is at the maximum size of the Array - 1 (since 0 is an index). At this point spawn the super unit in the middle.

If you want to randomize the order, you would need to random a number between 0 -11. Then randomize the number again if the Roshan at Unit[randomed number] is dead or not.

I am sorry I can't post triggers for it, but I am thinking at the top of my head. Also, I don't really operate by giving out triggers sometimes, its more beneficial to figure it out the coding yourself.
__________________


The Purpose of DTD is not to show off how good you are.
But to do an insane flying move and landing at 3000 km/h.
Hopefully, without crashing into something or flying off in the process.


Kurisu - Zy-el Sorceress - Level 41 of 10000

NezMod Server Forums - The Mod lives on!
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote