• 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.

Is there a Foodcap (Confidtion)?

Status
Not open for further replies.
Level 11
Joined
Nov 1, 2008
Messages
828
Wow thanks guys =D,
Although Kobas, your testmap, i don't think it will work? Because doesn't it need a condition saying,
if foodmax has been reached, say to user, You can not blah blah. Do nothing.

Would this be fine?
  • ((Owner of (Triggering unit)) Maximum Food Used) Equal to 20
 
I just showed you function :)
It's up to you how will you use it.

example:
set i = function_call
food[player_number] = food[player_number] + i
if food[player_number] > 100 then
remove unit bla bla bla etc etc etc
food[player_number] = food[player_number] - fi
else
return (do nothing)
endif

Sorry for fail code, but I think that you get the point.
 
Status
Not open for further replies.
Top