Creep Respawn help

DarkSky

New Member
Reaction score
0
So I have a problem with a creep respawn trigger..and I don't understand why it isn't working. I followed the tutorial on it exactly, at least it seems like it to me.
Can anyone help me figure out my problem? I'd appreciate it.

Trigger 1
trigger1z.png


Trigger2
trigger2.png


Variables
variables.png


Oh, the problem is: the creeps don't respawn. IE: nothing happens.
 

KillingSpree

New Member
Reaction score
7
The creeps don't respawn because of the wait-action.
The world editor "forgets" what the triggering unit was after an wait-event.

Before the wait, set a unit-variable to Dying Unit, then add the wait,
and add the Create Unit action, creating a "unit-type of type (UnitVar)"

trigger:

Trigger:
  • Creep Respawn
    • Events
    • Conditions
    • Actions
      • Set YourUnit = (Dying unit)
      • Wait 35.00 seconds
      • Unit - Create 1 (Unit-type of YourUnit) for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees
 

avalya

New Member
Reaction score
37
If you'd do that, you'd have a pain with multiple units (it's creeps!) so making that MUI... I'd rather not, go with triggering unit, I couldn't find a problem in your trigger, but then again, I didn't look over it too much since I've gotta run to my next class in a couple of minutes. :p
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
If you've got some action there when reviving the unit, why not use the coordinates you saved? :p

It should look something like "create unit for some player at Point(CreepX, CreepY) with no offset". No offset is needed since you have the exact X and Y needed.
 

millz-

New Member
Reaction score
25
Actually, I may know why it does not respawn for you. I've see the same problem in my map before. If your "wait" duration is longer than your "bone decay" duration in your gameplay constants, your respawn will not work, if you used wait. Triggering unit works after waits, but it does not work if the unit is decayed before it is being used (this is as far as I know, because it happened to me).
 

DarkSky

New Member
Reaction score
0
If you've got some action there when reviving the unit, why not use the coordinates you saved? :p

It should look something like "create unit for some player at Point(CreepX, CreepY) with no offset". No offset is needed since you have the exact X and Y needed.

alright. I did that. while it doesn't help my problem, it makes sense that I didn't need an offset. I was just following the tutorial.
 

DarkSky

New Member
Reaction score
0
Actually, I may know why it does not respawn for you. I've see the same problem in my map before. If your "wait" duration is longer than your "bone decay" duration in your gameplay constants, your respawn will not work, if you used wait. Triggering unit works after waits, but it does not work if the unit is decayed before it is being used (this is as far as I know, because it happened to me).

aha! that's it. I had the decay time very low. so that would explain it. thank you very much; I've remade this trigger several times trying to figure out what was wrong.

testing with longer decay time.

EDIT: works now. thank you! and sorry for double post. got a tad excited.
 

LearningCode

New Member
Reaction score
24
Why not have a trigger that removes the "dead" body?
It decreases the lag, I believe

Like:
Trigger:
  • Trigger
    • Events
      • Unit owned by Player (Neutral Hostile) dies
    • Conditions
    • Actions
      • Wait 4.00 seconds
      • Unit - Remove (dying unit) from the game


That way, you don't have to set all the (potentially) thousands of creeps' decay time.
It'll be troublesome to fiddle with the object editor for all the creeps when there is an easier solution, no?
 

DarkSky

New Member
Reaction score
0
Why not have a trigger that removes the "dead" body?
It decreases the lag, I believe

Like:
Trigger:
  • Trigger
    • Events
      • Unit owned by Player (Neutral Hostile) dies
    • Conditions
    • Actions
      • Wait 4.00 seconds
      • Unit - Remove (dying unit) from the game


That way, you don't have to set all the (potentially) thousands of creeps' decay time.
It'll be troublesome to fiddle with the object editor for all the creeps when there is an easier solution, no?


Hmmm. I tried this, but they didn't revive...
 

Ayanami

칼리
Reaction score
288
It's because when you remove the dead unit, there is no "dead unit" for it to refer to in your revive trigger.
 

millz-

New Member
Reaction score
25
Because, in my map, I wanted the decay time to be much shorter than the respawn duration as well, so I wrote my own respawning system. I know it may be quite badly written, and uses a game cache (because in my map I use the same game cache to store loads of stuff). But anyways, if you ever wanna try it, here it is. Simply copy the only trigger in the map over to your map, and read the top (it's written in JASS). :cool:

What it does:
-Saves unit position
-Saves unit facing angle
-Respawn time can be a fixed number for every single creep, or based on its point value (set in object editor)
 

Attachments

  • CreepRespawn.w3x
    19.5 KB · Views: 194
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • 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 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