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.
  • 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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