• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

CurrencyQuestionnnnn

Status
Not open for further replies.
Level 6
Joined
Feb 7, 2009
Messages
162
Does anyone know a way to make it so instead of buying items with gold you can buy them with lumber or food?
 
Does anyone know a way to make it so instead of buying items with gold you can buy them with lumber or food?

I'm guessing you'd need to make a mercenary camp and give the units sold names after items.
When players buy the units trigger it so that they're given the item they bought and have the actual units have a scaling value/selection scale/shadow of 0.001 and give them locust and invul.

But this is only if you really want the food thing, otherwise use the regular items with lumber cost, which can be set as Djinn said.
 
Not the icons at the top Ive already changed those. The ones actually on the items. Where it has a pictures of a tree and says something like "Requires 1 tree to purchase"
 
Ah thank you very much. And there is absolutely no way you can use food as a type of resource?


EDIT: +rep btw
 
maybe these triggers

  • Food item cost
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Buying unit)) Food used) Less than ((Owner of (Buying unit)) Food cap)
        • Then - Actions
          • Unit - Create 1 Food Dummy for (Owner of (Buying unit)) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
          • Item - Remove (Sold Item)
 
  • ((Owner of (Buying unit)) Food used) Less than ((Owner of (Buying unit)) Food cap)
is that an integer comparison?

And how would I make a item comparison at the top like (Item Sold)=Ring of Protection
 
yep that is an integer comparision
and the other thing is like this
  • (Item-type of (Sold Item)) Equal to Ring of Protection +5
a item type comparision
 
Status
Not open for further replies.
Back
Top