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 The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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