Max Number of Units with Properties????

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
How does the computer know that i have created the maximum number
of units "with properties" ????

i started getting this warning as i was doing my triggers.
i dint' add any units to the map itself.... im sure im under the 1,000+ units
allotted.

is this a legit warning??

=LIFT=
 

-Azrael666-

BattleForums Senior Member
Joined
Jan 19, 2005
Messages
2,986
Reaction score
3
Yes, it is. You can only use so many "Create Units With Properties" actions in your triggers. Ways to get around this are by creating the units without properties and then setting the properties. Example:

C:
Always.

A:
Create 1 Protoss Scout at Location 1 for Current Player.
Enable Invincibility for all Protoss Scout at Location 1 for Current Player.
Preserve trigger.

That would constantly create invincible scouts at the location for you, without actually using the "Create Units With Properties" actions. It is a legitimate problem, and you need to correct it by removing some of your "Create Units With Properties" actions, or simply not using any more for the rest of your triggers.

If you try to make any more of those actions, you get that warning for a reason, and that reason is that it will not apply any properties to the unit it's creating.
 

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
invincibility isn't what im using up... it's the burrowed.. cuz i need space
in the creation locations... i dotn' want that damn "can't create unit" warning
ingame. *SIGH*
do you know the max number of these units we can make?

=LIFT=
 

-Azrael666-

BattleForums Senior Member
Joined
Jan 19, 2005
Messages
2,986
Reaction score
3
It isn't the number of units you're making, it's the total number of times you use the "Create Units With Properties" action. I'll test it really quick and find out what the limit is.

The limit is 64 "Create Units With Properties" actions. It doesn't matter how many players you have the trigger set for, it just matters how many times "Create Units With Properties" shows up in your actions. 64 is the limit, after that it disables your properties box (click "Apply Properties" on one of your new "Create Units With Properties" actions and you'll notice you can't change anything).
 

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
heh... you answered my next Q about "if it matters how many players i set the
trigger for"....
YOU DAH MAN AZZIE!

i went back and editted out 5 "invincible" properties... now... i need like.. maybe...
3 more.. and i should be ok (at least ok for one day). HAH.


=LIFT=
 

-Azrael666-

BattleForums Senior Member
Joined
Jan 19, 2005
Messages
2,986
Reaction score
3
Yeah, I found this out the hard way myself :p What's a real pain is when you run out of locations, because there's no way to get past that unless you can figure out ways to use the exact same location to do multiple tasks. To those who would bring it up, yes I know it's possible to do, like making 1 location bounds, I'm just saying it isn't a pleasant task.

Anyways, happy as always to be of assistance :)
 

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
hmmm.... that last comment about the "one location bounds" got me thinking...

im not making anything like a bound map.... but... hmmm... perhaps i can
reduce my number of locations and just use invincible Placed objects.
all i have to do is to have certain locations differentiated by sizes. hmmmm....
interesting thought process.... hmmmm....
(a whole new world)

=LIFT=
 

Heimdal

Member!
Joined
Jul 4, 2003
Messages
342
Reaction score
0
If a lot of your actions use the same properties you can use Starforge to make those triggers use the same slot because it indexes by number. I'd recommend doing this only when you're done with terrain though.
 

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
heimdal... what do you mean "use the same slot" and "indexes by number"?

do you mean for example:
Condition: Always
Action: Create 1 Marine at Location1; apply properties

then... SF2.2 saves the above action indexed to a number
so if i use that same EXACT Action then it will not count against
the overall 64 iterations?
 

Heimdal

Member!
Joined
Jul 4, 2003
Messages
342
Reaction score
0
Not the same action, but the same number. I never got around to actually letting you change the unit properties, so all you can change is the slot number. When you make a trigger in SE and then open it in SF, you'll see something like this:

CreateUnitWithProperties(1, Marine, Location 1, P1, 5);
5 is the "slot number." When you use the same number you will get the same properties. You only have room for 64 slots in the map, but you can have as many actions use the same slot as you want.
 

=LIFT=

Member!
Joined
Oct 10, 2003
Messages
81
Reaction score
0
Website
Visit site
so all i have to do is make my map with SE... then at some point, convert
to SF real quick... and readjust my slot numbers??? or does SF
automatically adjust my slot numbers for me?

=LIFT=
 

Heimdal

Member!
Joined
Jul 4, 2003
Messages
342
Reaction score
0
SF will use whatever slot numbers SE made, so if you already made all your triggers you'll have to go back and change them all. That's why, if you're not comfortable with SF's terrain editor, you should finish the terrain in SCXE and then write the triggers with SF. There is a "unit properties slot editor" that will let you change the values for each of the slots on staredit.net. I've never used it, so I couldn't tell you how useful it is.
 

NewPosts

New threads

Top