| 07-17-2006, 07:50 PM | #1 |
Here I am again ( yea yea i know I will get better but really, tried everything I can find) Geez been searching this forum for spawn triggers but no one unfortunately fits my type of spawn trigger( of what I've seen ) Trigger idea: A unit enters a location, then creeps spawn. If the unit stays in the location the creeps will keep spawning but if the unit leaves, the creeps stop spawning until another unit enters location. Think I got everything there. Will appreciate all help, yet again this forum rocks |
| 07-17-2006, 08:27 PM | #2 |
Well if you're attempting to only create creeps when a unit is in a region, yes that would work. Normally for most creep spawns in most maps they do a periodic timer that has a condition that checks if the unit spawner is alive, then spawns creeps if it is. |
| 07-17-2006, 08:28 PM | #3 |
You do it with a stating a timer when a unit enters the rect and pause the timer when it leaves. I attached an example. |
| 07-17-2006, 08:57 PM | #4 |
oh, forgot one thing >.< now that Rising Dusk mentioned it, the spawns should also only spawn when all the creeps in the location is dead. I've tried making a trigger, but it doesnt work perfect, it got some flaws. Trigger: Trigger: Trigger2: Trigger: Trigger3: Trigger: Appreciate all help |
| 07-17-2006, 10:27 PM | #5 |
Look into a periodic trigger. I havent had a chance, but check out Fireeye's test map, he may explain the periodic bit to you. Basically it should look like this: |
| 07-18-2006, 04:41 PM | #6 |
Thanks guys, didnt have time to try fire eyes map until now but its great. |
| 07-18-2006, 05:36 PM | #7 |
Trigger: Will the timer start again if a unit enters the region again and the condition isn't fulfilled? |
| 07-18-2006, 05:48 PM | #8 |
Uhm..., why did you write the pause trigger? When you want to know if the timer will be runned again, you should post the start trigger. |
| 07-18-2006, 05:56 PM | #9 |
Oh sry >.< Trigger: Fibula PS initialization
Trigger: but these triggers won't work either =/ |
| 07-18-2006, 06:26 PM | #10 |
This set Timer[1] is un-needed and the turn off trigger can not work, because a unit have to enter and in that moment trigger 1 will also be runned. As i can see you want only to create Units when there are less than 5 units, right? I'll rewrite the triggers Trigger 1: Trigger: Trigger: Trigger: I hope i didn't forgot anything |
| 07-18-2006, 08:24 PM | #11 |
Wow, really nice and thx alot. Thats the biggest flaw in my map. Sure you got everything there ;) +rep definitely |
