Food Limit.

ballzdeep85

New Member
Reaction score
0
I am looking to set a Food limit for all players.
have this happen right when the map is loaded.

i will not be creating farms so i need the limit set to 0/150 starting the game.

thankyou,

ballzdeep85.
 

Necrach

You can change this now in User CP.
Reaction score
62
I think it is in

Advanced > Gameplay Constants

doesn't have editor on this computer so cannot check for sure
 

Azrooh

New Member
Reaction score
5
Create a dummy unit (there are lots of tutorials on this, so I won't explain here)
Give it 150 food
Spawn one for all players at map initialization.
 

ballzdeep85

New Member
Reaction score
0
what is it under?
how do i give food to a unit taht dosnt use up the limit but gives me 0/250
food?
lives?

what words should i be looking for?

thankyou,
ballzdeep85
 

Neoz

New Member
Reaction score
0
Im not totally sure but you could try:
Event
Time elapsed 1 second
cond
none
Action
(player- set property- food cap 150)

then change all farm like buildings u are going to use in the object editor so that they wont make more space for units ( more food cap)
Hope this helps:)
 

futeki

Active Member
Reaction score
4
what is it under?
food?
lives?

what words should i be looking for?

thankyou,
ballzdeep85

Code:
Gameplay Constants > Upkeep - Food Levels
P.S. It's at the bottom, use the scroller.

Create a dummy unit (there are lots of tutorials on this, so I won't explain here)
Give it 150 food
Spawn one for all players at map initialization.

@ballzdeep85 I prefer to use buildings, but if you need this stat too it's in:
Code:
Object Editor > Your Object > Stats - Food Produced
P.S. You might want to adjust Food Cost if you're adding a new unit so it doesn't take away from the food limit.
 

ballzdeep85

New Member
Reaction score
0
how do i get it so that the unit with the units produced modified, dosnt take up a food value?

thankyou,
ballzdeep85
 

futeki

Active Member
Reaction score
4
how do i get it so that the unit with the units produced modified, dosnt take up a food value?

thankyou,
ballzdeep85

Code:
Stats - Food Cost
But use that very carefully and make sure you control their unit numbers or else your map is going to lag really bad. One of the ways to do that is make the units at least cost something (i.e. gold, lumber, etc.).
 

ballzdeep85

New Member
Reaction score
0
how do i make it so that i cant spawn more units then i have food.
i gave my building a food value of 200 and i can keep spawning units.

-just if you are wondering i am making a golem wars type map.
--so i spawn units when i go into the region i set up that is over a circle of power.
--and i would like so my selctor can stay in the reagion but i wont go over my food cap.
-- and i want it so that i have a unit cap and a message that comes up and tells each player that has reached the cap that ''they are caped.''

how do i do this.

thankyou,
ballzdeep85
 

Neoz

New Member
Reaction score
0
Ok, well the only reason i can think of why they go over the food limit is because you create the units?
Do you have a trigger that says: Create [#] units at [region] for player [#]? If you do. this is your problem. because creating doesnt care about food limits.

So if this is your problem. Make a trigger to train a unit instead of creating. This will care about food limits.
If you need help with this ill help you later on:)
 

ballzdeep85

New Member
Reaction score
0
spwan.jpg
This is What i have is spawning but it still goes over the cap.

i am wondering;;;;
how would the right trigger cattegory look so i dont go over the limit?

i cant find the right trigger category.

i need it so that when my golem piece enters a circle of power with a region in it automatically "trains"/ spawns a unit at my tower.

the reason i say train is because i need it so that the units that are spawning obey the food limit.

any help would be great.

thankyou,
ballzdeep85.
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
maybe im missing something important, probably through my skimming of reading, but why cant you just throw an integer condition of w/e player your spawning for's food? or even a lil' boolean =o

who is that? player one?

i dont have the editor on this computer, nor does that computer has t3h intrawebz but i would just use a simple integer or boolean condition in the trigger :rolleyes: seems so much simpler than all these so far D:

essentially, your trigger would look nearly the same as the one you have there... just with a condition either in the mid part or that if then else thing you got going on :p

edit : balls D: im on the second page...


Make a trigger to train a unit instead of creating.
-- never tried that :] sounds interesting. idk if you could spawn them without making a unit and possibly making it invisible where you wanted the unit... but it would be fun to try out ^^

edit 2 : sorry, just reading over things again, and i realised how unclear i was with my approach D:
in the actions, right after you create your units, set an (integer variable) = (integer variable +1)
then use a condition that checks to see if that integer is however high you want it, and when it gets to a certain point... it stops spawning... though the trigger keeps running D: if that makes sense. so, as you kill one, if free's one space up...

but, anywho, if you didnt want a manual count, you could always set that variable to the food used by the player controlling the spawned units. that way you could have however much food you wanted to on a unit, but it wont ever spawn too many....

edit 3 : =o didnt realize i wrote that much...
 

ballzdeep85

New Member
Reaction score
0
thanx for the heads up.
but yeah off topic.

trying to get help not a grammer lesson.

thankyou,
ballzdeep85.
 

ballzdeep85

New Member
Reaction score
0
ok here is the skinny.

i am new to map making so i kinda need to actually see the setup of the trigger i cant understand anyone who explains it into words.

sorry i have no idea where to start to find what you are saying.

the messed up thing is i am almost done with this map too.
i just kept hammering and put way to many triggers in till things worked.

so if you can set up picture of how it looks would be great.

thankyou,
ballzdeep85.
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
im sorreh D: hmm..... ill go make it on my other computer and use a drive or something :/ i need to know though:

1.) how do you want it to count the units?
---a) by how many units are there (which means you can have so many units, you specifically deciding)
---b) by the food they use (so that some units will have a value greater than others)

2)well... i forgot what the second one was >.>''' oh well.... guess thats it :D
 

ballzdeep85

New Member
Reaction score
0
i am spawning different units from different circle of power/regions.
my food cap is 150.
i want to be able to spawn all the different units and not go over the cap. and then if one dies it will be replaced with a unit if i am still on the region that is making a unit spawn.

is that clear?

thankyou,
ballzdeep85
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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 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