• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Food trigger

Status
Not open for further replies.
Here is the trigger that i need
But before, i will introduce my map
There are 4 Large Field in the map
Each Large Field controlled by the team's captain will increases the food that field, farm, etc.. will give to the player.
Field = 2 food
Farm = 6 food
Here is what i need:
If player 1 has 1 Large Field, the amount of food of player 1, 2 and 3 will be increased by 1.5, of he has 2 Large Field, by 2, if it's 3, by 2.5, and if it's 4, by 3.
BUT, if an ennemy get a Large Field, the ammount of food of the team 1 will decreases (if they had a Large Field)
If you don't understand, please post back.
thanks :goblin_boom::goblin_boom:
 
Does the dummy unit will has its food increased for each field,farms,etc.. produced by the player?
What I need is this:
A field give 2 of food,
If player one has 1 field, he will have 2 food
If he has 1 field and 1 Large Field, he will have 3 food
If he has 2field and 1 Large Field, he will have 6 food
If he has 2 field and 2 Large field, he will have 8 food
You understand?
It's the field, farm, etc. that must have its food increased
 
Level 10
Joined
Apr 22, 2010
Messages
422
okay look, now it getting confusing, you said that 1 Field = 2 Food and 1 Large Field = 4 Food, so accoding to that, why is your post above saying 2 field+2 large field= 8 food when it should be 12?
if thats a simple typo, then i have the perfect solution, USE RAMZA'S idea, it works perfectly and only needs like 4 lines per fields in noob terms

dont understand? tell me and ill make a test map
 
lol, ok i will begin with the field example, farms example and then i will add Large Field, ok?
look:
1 Field = 1 x 2 food
1Farm = 1 x 6 food
2 field = 2 x 2 food
2 Farm = 2 x 6 food
1 field + 1 Large field = 2 + 50% = 3 food
1 field +2 large field = 2+ 100% = 4 food
1 field + 3 large field = 2 + 150% = 5 food
1 field + 4 large field = 2 + 200% = 60 food
1 farm +1 large field = 6 + 50% = 9 food
1 farm + 2 large field = 6 + 100% = 12 food
1 farm + 3 large field = 6 + 150% = 15 food
1 farm + 4 large field = 6 + 200% = 18 food
2 field + 1 large field = 2 x 2 +50% = 6 food
2 field + 2 large field = 2x2 + 100% = 8 food
2 field + 3 large field = 2x2 +150% = 10 food
etc..
You understand?

1 latrge field = +50% produced food to all food producer
2 large field = +100% """"
3 large field = +150%
4 large field= + 200%
 
Status
Not open for further replies.
Top