Food Requirement?

Drabstar

New Member
Reaction score
2
Is it possible by chance that theres a way to make it so a unit is restricted from build unless a specifc food cap is reached

example

Grunt requires (w/e)/30 (must have 30) in order to build
Is there a way to do this?:confused:
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins construction
    Conditions
        ((Owner of (Triggering unit)) Food cap) less than 30
        ((Owner of (Triggering unit)) Food used) less than 30
        ((Owner of (Triggering unit)) Total gold gathered) less than 4444
    Actions
        Unit - Kill (Constructing Structure)
Integer Comparison
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Yup!
I bet if you were to add that fact in the extended tooltip (ie. FOOD CAP 30 NEEDED)
And then were to trigger as follows:

Event:
A unit begins training a unit
Condition:
Unit equal to Grunt
Action:
IF>Food Used for (owner of training unit) equal to less than 30
THEN>Cancel last trained unit (or something to that effect)
ELSE>Do nothing

That'll do it!
You'll need to do it for every unit, though... have fun! :D
 

Drabstar

New Member
Reaction score
2
I don't get it:confused:
Can you go into deeper instructions because I am new to the Editor

In events it ask me to select a unit or No Unit (Which makes no sence:nuts:)
I want it to be a player (playing the orcs) in which if he is less than 30 he cannot make a grunt if he is 30 or more to than he can make it

I need advanced instuctions if you could put please :]:cool:
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
There are several different "select a unit" - type options. Pick the one that's generic.
Then, in conditions, specify the unit-type (way down the list)
Then, in actions, use the "If/Then/Else (Multiple Functions)" command, which will basically be like a mini-condition and two separate actions, like a fork in the road.
Hope that clears it up for you!
 

Drabstar

New Member
Reaction score
2
Untitled Trigger 001
Events
Unit - A unit Begins construction
Conditions
(Unit-type of (Triggering unit)) Equal to Chopper Boy
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Else - Actions

What do I put in the IF THAN ELSE?
And is this good?
 
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