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

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?
 
Level 3
Joined
Apr 24, 2005
Messages
61
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.
 
Level 6
Joined
Feb 7, 2009
Messages
162
Can you atleast change the icons when you go to purchase something from a tree to something else?
 
Level 6
Joined
Feb 7, 2009
Messages
162
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"
 
Level 6
Joined
Feb 7, 2009
Messages
162
Ah thank you very much. And there is absolutely no way you can use food as a type of resource?


EDIT: +rep btw
 
Level 4
Joined
Mar 23, 2008
Messages
90
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)
 
Level 6
Joined
Feb 7, 2009
Messages
162
  • ((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
 
Level 4
Joined
Mar 23, 2008
Messages
90
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.
Top