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

Gold/Wood Trigger Help

Status
Not open for further replies.

MiF

MiF

Level 1
Joined
Sep 2, 2005
Messages
1
I'm creating a tower defense that gives you income for creeps you spawn. But, since you are only allowed a max of 1,000,000 gold, I want to it to convert a players gold into 1 wood and keep adding on every time a player reaches 1 million gold. For example, if a player gets 1 million gold, i want his gold to go to 0 and wood to 1, and if it happens again, his wood will move up to 2 and so on. Also, if possible, is there someway to make it so that if a player only has 100 gold and 1 wood, and wants to create a creep that costs 200 gold, is there a way that it will convert the wood back to gold? so as the end result will be, 999900 gold? so it uses 100 gold from what he had and 100 gold out of the 1 million from wood? any help is appreciated =)
 
Level 3
Joined
Aug 25, 2005
Messages
13
MiF said:
I'm creating a tower defense that gives you income for creeps you spawn. But, since you are only allowed a max of 1,000,000 gold, I want to it to convert a players gold into 1 wood and keep adding on every time a player reaches 1 million gold. For example, if a player gets 1 million gold, i want his gold to go to 0 and wood to 1, and if it happens again, his wood will move up to 2 and so on. Also, if possible, is there someway to make it so that if a player only has 100 gold and 1 wood, and wants to create a creep that costs 200 gold, is there a way that it will convert the wood back to gold? so as the end result will be, 999900 gold? so it uses 100 gold from what he had and 100 gold out of the 1 million from wood? any help is appreciated =)

Maybe you should try something like this:
Event: Player property----->PLayer 1 (red´s)current gold becomes Equal to 1.000.000
Actions:
Player - Set player 1 (red´s) gold to 0.
Player - Add 1 to player 1 (red) current lumber.
 
Status
Not open for further replies.
Top