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

Reduce food cost upgrade

Status
Not open for further replies.
Level 5
Joined
Apr 26, 2009
Messages
92
Hey!
I was wondering if theres a way to make it when some one gets an upgrade that the food cost for a certain unit goes down by one. Can be object editor or Trigger i dont really care. Thanks in advance.. P.S i sorta wana avoid having to use 'replace' becuase the unit is a resorce gatherer with the abilty 'gather' and i think it would make them come off the tree... that would be annoying...
P.P.S starting food cost for this unit is 5 so make it so food cost would end at 0. <--- captain obvious!:spell_breaker:
 
Level 7
Joined
May 3, 2007
Messages
210
Why don't you attempt to use Chaos, or the berserker upgrade.

The only way to affect the food cost of a unit, is by changing its unit type, so your only options are replace, chaos, or berserker upgrade.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
maybe use
natural building - remove type of unit (that costs normal food)
natural building - add type of unit (that costs less food)

i am not sure that you can use "natural building - remove type of unit" if he was not added by triggers

but im sure you could do this

YOUR SHOP - units trained
FOOTMAN (3) - cost 3 food
FOOTMAN (2) - cost 2 food
FOOTMAN (1) - cost 1 food

trigger 1

MAP INITIALIZATION
actions
pick every player in (All Players) and do action
-disable tanning of unit type (FOOTMAN (1)) for picked player
-disable tanning of unit type (FOOTMAN (2)) for picked player

trigger 2

when your unit finishes your upgrade

actions
if upgrade lvl equal to 1 (you have this condition at integer>player)
disable tanning of unit type (FOOTMAN (3))
enable tanning of unit type (FOOTMAN (2))
if upgrade lvl equal to 2 (you have this condition at integer>player)
disable tanning of unit type (FOOTMAN (2))
enable tanning of unit type (FOOTMAN (1))
 
Status
Not open for further replies.
Top