Creep revival like dota?

waaaks!

Zinctified
Reaction score
256
i need a creep revival system like dota

or a creep revival system that dont revive creeps one by one, i want to make them revive in groups, like if i kill 1 unit in a creep camp then after 5 seconds i killed another one and after 10 seconds i kill the last creep

then wait for random 10 - 30 seconds then revive those creeps by group, that means in 10 - 30 seconds all of them must revive in the same time

i have a creep revival system, but it revives 1 by 1, and it makes my minimap messy, like wc3 will create 2 green dots on the minimap instead of just 1

and sometimes, creates 1 orange dot and 1 green at one location, because that location has 2 level 1 creep and 1 level 15 creep, and the reason why it has different green or orange dots because they revive 1 by 1

thanks in advance...
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Simply do something like:

E: Unit die
C: Number of units in (Creep group) that are live equal to 0
A: Wait 10 second and revive all creeps in that group.
 

emjlr3

Change can be a good thing
Reaction score
395
heres an option

go through your map, selecting the units in each camp, and add them to a group array

so say

group[1] = units in camp 1
group [2] = units in camp2

when a unit dies, get the group that unit was in, and check if all unts in that group are alive or dead, if they are all dead, receate al the units in the group, remove the old units from it and add the new ones


another option, and an easier one, but less exact, could be to, every x seconds, loop through creep camp regions, and if there are no creeps in it, create your creeps (this is the method that DotA uses)
 

Stefanman

Member
Reaction score
10
there is a tutorial that Tinki made ( i think he made it), tutorial saves X and Y positions of all creep units at map init,those X and Y are used after to revive creeps...i guess I don't need to explain further.
 

emjlr3

Change can be a good thing
Reaction score
395
as he xplained, that is the type he does not want, since they most often revive a creep x seconds after it has died, not x seconds after the camp is totally dead
 

Exide

I am amazingly focused right now!
Reaction score
448
Side-Note: The creeps seems to revive at a certain time. Morning and night are common times for them to revive. I think they revive more often than that, though. Like.. every 6th game-hour or something.
 

waaaks!

Zinctified
Reaction score
256
nevermine, ill just study on my own...

OFFTOPIC: i studied WE more than my physics subject
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top