View Single Post
Old 04-28-2006, 01:51 PM   #8 (permalink)
Galmore
BattleForums Newbie
 
Join Date: Apr 2006
Posts: 11
I figured out a MUCH easyer way then the regions ...

Code:
Spawn Tester
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to False
        ((Triggering unit) is A structure) Equal to False
        ((Triggering unit) is Summoned) Equal to False
    Actions
        Game - Display to (All players) the text: ((String((Unit-type of (Triggering unit)))) +  is the type)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Triggering unit)) Equal to Frost Wolf Level 1
                        (Unit-type of (Triggering unit)) Equal to Frost Wolf Level 2
                        (Unit-type of (Triggering unit)) Equal to Frost Wolf Level 3
                        (Unit-type of (Triggering unit)) Equal to Frost Wolf Level 4
                        (Unit-type of (Triggering unit)) Equal to Frost Wolf Level 5
            Then - Actions
                Game - Display to (All players) the text: nooooooooooooooooooo
                Wait 10.00 seconds
                Unit - Create 1 Mobs_type[(Random integer number between 1 and 5)] for Neutral Hostile at (Position of (Triggering unit)) facing (Angle from (Position of (Triggering unit)) to (Position of (Killing unit))) degrees
            Else - Actions
The facing (Angle from (Position of (Triggering unit)) to (Position of (Killing unit))) is really needed but

This works its cool and so for each set of Creeps you want to spawn u can check to see if they die and if so spawn a nother from that set or even spawn the same one

hehe im so PROUD lol ... still hate i waste so much time on a region respawning system thou
Galmore is offline   Reply With Quote