• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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