Building Limit

Yoshii

New Member
Reaction score
74
I fixed the fact you could not build any building at all but I didnt have enough gold to build more than 2.
basically its exactly what I explained earlier you are using "unit type of triggering unit" in your condition pick all unit matching; you need to replace every single one of "triggering unit" to "matching unit" because you are using "matching condition bla bla bla"

I took a glance at your other trigger and found you dont seem to use loop and end up repeating alot of line for nothing
like this
Trigger:
  • wood Copy
    • Events
      • Time - Elapsed game time is 1200.00 seconds
    • Conditions
    • Actions
      • Game - Display to (All players) the text: You got more lumber...
      • Player - Add 1 to Player 1 (Red) Current lumber
      • Player - Add 1 to Player 2 (Blue) Current lumber
      • Player - Add 1 to Player 3 (Teal) Current lumber
      • Player - Add 1 to Player 4 (Purple) Current lumber
      • Player - Add 1 to Player 5 (Yellow) Current lumber
      • Player - Add 1 to Player 6 (Orange) Current lumber

this can be writen as
Trigger:
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Player - Add 1 to (Player((Integer A))) Current lumber
 

Yoshii

New Member
Reaction score
74
its working fine you just need to do what I explained earlier; I cant build more than 7
there is no need for me to link it I just changed the condition to
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Generic Factory (red)) or (((Unit-type of (Matching unit)) Equal to Tier 1 Caster (red)) or (((Unit-type of (Matching unit)) Equal to Tier 2 Caster (red)) or (((Unit-type of (Mat and do (Actions)
 

Yoshii

New Member
Reaction score
74
nope; your map take like 5min to load on my comp so its hard to test small change -_-
 

Avaleirra

Is back. Probably.
Reaction score
128
oh..... sorry :p it is quite big


So...... I change the condition to what you have above and what do I change the unit group thing to?
 

Tyman2007

Ya Rly >.
Reaction score
74
uhh, I think it's suppost to be
"If you have a problem after your first one was solved that is unrelated/hardly related to make a new post"
keeps thread count down, but gawd just look how many posts are in here. (People waltzing into this topic thinking "Oh building limit? that's easy")
By the looks of it yoshii you're the only one actively helping this person. why don't you guys just use an instant messenger or an IRC?

Just speakin my mind here :p
 

Yoshii

New Member
Reaction score
74
oh..... sorry :p it is quite big


So...... I change the condition to what you have above and what do I change the unit group thing to?

nothing the unit group is working fine you just need to change the condition.
and to the above poster well I already answered and the thread should be history now.
 

RedOrb

You can change this now in User CP.
Reaction score
14
In some situations, you can take shortcuts. For example, if your map has limited units, then you can control the amount of buildings you can build with food cost - by increasing the food required to build a certain building.
 

Solu9

You can change this now in User CP.
Reaction score
216
This thread is from 2009

Edit: I just got your comment Imp Midna ;)
 

Valtarian

Member
Reaction score
3
If you have JassNewGen, there should be a trigger to limit the number of units.
It's not complicated-honestly it's quite simple. You'll be surprised...

It makes them available/unavailable automatically.

Here is the trigger that I use:



Code:
Thunder Rod Limit
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Player - Limit training of Thunder Rod to 3 for (Picked player))

Good luck!


Edit: Crap... this post is 3 years old
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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