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

exchange wood

Status
Not open for further replies.

xplicitjohn

X

xplicitjohn

how do i make a trigger for exchanging wood for gold

100 wood = 100 gold.

Ive been trying to figure this out for an hour still cant find the correct trigger. help
 
Level 7
Joined
Mar 26, 2009
Messages
345
You have left out a major condition.

Conditions:
Player 1 (red)'s lumber greater than or equal to 100

Actions
Set player 1 (red)'s lumber...

You're right but that's why he said the trigger needs an event and some conditions. ;)

It will all depend on what the OP is trying to create...
 

xplicitjohn

X

xplicitjohn

You have left out a major condition.

Conditions:
Player 1 (red)'s lumber greater than or equal to 100

Actions
Set player 1 (red)'s lumber...


umm noob question :

how do i get that condition cant find it 0-0
 

xplicitjohn

X

xplicitjohn

Well, you didn't tell what triggers the event, but here goes:

  • Untitled Trigger 086
    • Events
    • Conditions
    • Actions
      • Player - Set Player 1 (Red) Current gold to ((Player 1 (Red) Current gold) + 100)
      • Player - Set Player 1 (Red) Current lumber to ((Player 1 (Red) Current lumber) - 100)
Add some conditions too...

The event is umm........ A unit starts the effect of an ability..
 

MU2

MU2

Level 3
Joined
Oct 13, 2009
Messages
24
If u dont want to use triggers ,u can actually just add a shop into your map and edit it in object editor so that it will be able to sell gold coins. Then just go to edit the gold coins item to sell for 100 lumber.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
you can make item that costs 100 gold and has ability to give 100 wood

with triggers

you can make upgrade that costs 100 gold

when unit finishes an upgrade

-give 100 gold to (owner of unit(researching unit))

........when something happens

-100 gold
+100 wood .....

that should be so easy.......
 
Level 10
Joined
Oct 22, 2006
Messages
599
If u dont want to use triggers ,u can actually just add a shop into your map and edit it in object editor so that it will be able to sell gold coins. Then just go to edit the gold coins item to sell for 100 lumber.

I suggest you do it this way, but if you still want triggers and still can't find the correct functions I could help you by providing you with a picture (as you asked) or you could upload your map to the Pastebin (Up-Left: News, Chat, Pastebin, Donations.... etc) and post the link here.
 
Status
Not open for further replies.
Top