Spawning Issues

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
MasterCrusaderX
Newcomer
Posts: 24
Joined: June 7th, 2007, 11:02 pm
Title: Amateur Mapmaker
Location: Washington, USA

Spawning Issues

Post by MasterCrusaderX »

I'm working on practicing with making a tower defense and it has been going just fine thus far. After developing most of the object data and basic triggers I moved from a 32x32 map to a 64x64 and imported the triggers and object data; however, it has come to my attention that the creeps will NOT spawn as intended. I've been trying to spawn units, wait 15 seconds, and then spawn more of the same unit. I think has to do something with events.

Map is attached, download and try for yourself.

Also keep in mind that it's extremely basic and I know how I currently have it setup it's prone to memory leaks.

Edit: I have found out that "Unit - Create Units Face Angle" does not respond to "Time - Elapsed Game Time". I should probably reconsider my spawning methods.
You do not have the required permissions to view the files attached to this post.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Spawning Issues

Post by Ozzapoo »

Um.. maybe they're not spawning because they don't have any events associated with them..? And no wait action either..... It should be something like this:

Events

Time - Every 15.00 seconds of game time
Conditions
Actions

Unit - Create 6 Murloc Footy for Player 12 (Brown) at (Center of Enemy Spawn <gen>) facing Default building facing degrees

Doing this will make it so that every 15 seconds it will create 6 Murloc Footies..... You'll probably want to add different levels so you'll need to change that a bit.
Hope that helps!
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
MasterCrusaderX
Newcomer
Posts: 24
Joined: June 7th, 2007, 11:02 pm
Title: Amateur Mapmaker
Location: Washington, USA

Re: Spawning Issues

Post by MasterCrusaderX »

Well I know that works, what would you suggest for a decent spawning system with levels? I'm looking for a system where it'll spawn X amount of enemies and once all enemies have been slain it will countdown to a new set or next level?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Spawning Issues

Post by Ozzapoo »

MasterCrusaderX wrote:Well I know that works, what would you suggest for a decent spawning system with levels? I'm looking for a system where it'll spawn X amount of enemies and once all enemies have been slain it will countdown to a new set or next level?
Well I would suggest making 3 integer variables.
One for storing how many units that were spawned into the map VARIABLE A
One for how many units have reached the middle/killed VARIABLE B
One for storing lvl number VARIABLE C

When a unit reaches the middle or gets killed, B goes up one.
When A is equal to B then set C as the next level.

And you could also have another VARIABLE D as Unit-Type which stores the unit type for each level.
So it could be like this:

Unit - Create 6 C[lvlNo] for Player 12 (Brown) at (Center of Enemy Spawn <gen>) facing Default building facing degrees

Anyway that's just my suggestion
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
MasterCrusaderX
Newcomer
Posts: 24
Joined: June 7th, 2007, 11:02 pm
Title: Amateur Mapmaker
Location: Washington, USA

Re: Spawning Issues

Post by MasterCrusaderX »

Hmm, I'm new to the variables and how they work. All I know is that variables can reduce memory leaks.

If you wouldn't mind could you explain the variables a little?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Spawning Issues

Post by Ozzapoo »

MasterCrusaderX wrote:Hmm, I'm new to the variables and how they work. All I know is that variables can reduce memory leaks.

So what you're saying is make 3 integer variables. Say I want 24 to be killed or have reached the middle that would make A and B equal 24, no?

Then C would be the level number, but how would that work in the case of:

Unit - Create 6 C at point facing angle?

If C is the level variable, then how would D play into effecting anything?
Oh...well you REALLY have to get used to them... they're like the basics of triggers...
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
MasterCrusaderX
Newcomer
Posts: 24
Joined: June 7th, 2007, 11:02 pm
Title: Amateur Mapmaker
Location: Washington, USA

Re: Spawning Issues

Post by MasterCrusaderX »

Yeah I figured variables would be very important in terms of triggers and it would help me in getting my spawn triggers to work properly. Just need to learn about variables.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Spawning Issues

Post by Ozzapoo »

MasterCrusaderX wrote:Yeah I figured variables would be very important in terms of triggers and it would help me in getting my spawn triggers to work properly. Just need to learn about variables.
Ya you really do. Because you have to be able to use variables if you want to have a half decent map....
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!