Creep Respawn ... how ?

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
I been trying to find out how the hero and RPG maps and such have respawning Creeps ... and i am wanting the same but im wanting to know if there is a simple way of doing this other then :hbut using a bunch of regions and unit groups and varables to know which unit group goes to which region and checking every min or so and bla bla blaaa :hbut

if anyone has info on how to do this or knows of a map that shows a good way of do this (unprotected of corse) thx ... because i am wanting to make a VERY large map and dont want to use to many triggers then needed

:shocked :shocked :shocked :shocked :shocked
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
You could have an array of different numbers. Each number will represent a different creep count. Now, every few seconds or minutes or whatever, create monsters using the numbers stored in the array.

I can't really load up WE to help you out, but I believe this might help you lead into the right direction.
 

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
You could have an array of different numbers. Each number will represent a different creep count. Now, every few seconds or minutes or whatever, create monsters using the numbers stored in the array.
Ya i know of a ways of doing it im wanting to know if theres a in game Constant that controls if the Creeps that get placed using the Random Units for neutral hostle will respawn a random unit from that group

but ya i know i could go throu all the hassle of creating a huge respawn trigger setup but i am hoping that blizzard put in an update to allow creeps to be flaged a respawning ..... i just disnt want to spend a lot of time on a trigger system if theres a way to do it already built into WE

Im assumeing no :(
but thx
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Yeah, but if you give them Reincarnation, you do not get experience or gold until the unit dies while it is in its cooldown state.
 

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
I have decided to just split the map into X number of big regions. then just spawn in a max of Y mobs and every few sec give them orders to attack move to a random point in the big region there spawned in and check to every 30 sec or so if the number of those mobs is below the max i want in and respawn the number that are missing.

Havent finished ironing out the bugs but when i do ill post what i get :grunt

But im still looking for a detailed list of all Game Constants too :D
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Yeah, I think I should write a guide on the constants this summer.

Watch it with the X and Y preset variables. I would use them for looping so just declare variables to store random numbers and generate creeps by those nums.
 

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
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 :)
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Nice job on figuring that out. I have been wondering about the same thing myself.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
That is why Map Devel is so amazing. Hell, I saw a bubble sort trigger and even the random hero function just by looking thru the boards.
 

NewPosts

New threads

Top