• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

I need a "wood system"

Status
Not open for further replies.
Level 2
Joined
Oct 15, 2008
Messages
11
i am making a map that i want to have a system like in hlw roc every X number of gold you get wood i need help with making a wood systeam like it can anyone post here something that works like the one in hlw i really need one
 
  • Untitled Trigger 001
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) Current gold) Greater than 1000
            • Then - Actions
              • Player - Add -1000 to (Picked player) Current gold
              • Player - Add 1 to (Picked player) Current lumber
            • Else - Actions
 
Level 2
Joined
Oct 15, 2008
Messages
11
but how?

but how do i make it so when u ran out of gold wood works instead of gold and then turn into gold like in hlw that trigger works for making gold into wood but does not make wood work as gold when there is no gold left
 
Level 2
Joined
Oct 15, 2008
Messages
11
Look what I mean is everytime in the game i ran out of gold I want the lumber to convert it to gold like in hlw
 
Level 2
Joined
Oct 15, 2008
Messages
11
already try it but when i ran out of gold and i have lumber it just doesnt work.

What i exactly mean i want the lumber value to be X amount of gold so everytime u need to use lumber as gold it will work as gold

you as in hlw you can use lumber as gold
 
Level 5
Joined
May 23, 2008
Messages
148
Stupid treant!

If (Gold > 500000)
{
Lumber = Lumber + 1;
Gold = Gold - 100000;
}
Else If (Gold < 400000 and Lumber >= 1)
{
Gold = Gold + 100000;
Lumber = Lumber - 1;
}

Here 1 lumber = 100000 gold. Remember that you shouldn't put prices higher than 100000 gold. Make it cost 1 lumber more instead.
 
Level 9
Joined
Aug 1, 2008
Messages
453
i have 1 question do you need one for income so it auto changes?

  • Money to Lumber
    • Events
      • Player - Player 1 (Red)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 2 (Blue)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 3 (Teal)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 4 (Purple)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 5 (Yellow)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 6 (Orange)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 7 (Green)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 8 (Pink)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 9 (Gray)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 10 (Light Blue)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 11 (Dark Green)'s Current gold becomes Greater than or equal to 300001.00
      • Player - Player 12 (Brown)'s Current gold becomes Greater than or equal to 300001.00
    • Conditions
    • Actions
      • Player - Add -100000 to (Triggering player) Current gold
      • Player - Add 1 to (Triggering player) Current lumber
  • Lumber to Money
    • Events
      • Player - Player 1 (Red)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 2 (Blue)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 3 (Teal)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 4 (Purple)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 5 (Yellow)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 6 (Orange)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 7 (Green)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 8 (Pink)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 9 (Gray)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 10 (Light Blue)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 11 (Dark Green)'s Current gold becomes Less than or equal to 200000.00
      • Player - Player 12 (Brown)'s Current gold becomes Less than or equal to 200000.00
    • Conditions
      • ((Triggering player) Current lumber) Greater than or equal to 1
    • Actions
      • Player - Add -1 to (Triggering player) Current lumber
      • Player - Add 100000 to (Triggering player) Current gold

and you can change the amounts to fit the needs of your map & please +rep if helped
 
Level 4
Joined
May 20, 2008
Messages
89
Maybe this will help ?

  • Events:
  • Player - Player 1's Current gold becomes Equal to 0.00
  • Player - Player 2's Current gold becomes Equal to 0.00
  • Player - Player 3's Current gold becomes Equal to 0.00
  • Player - Player 4's Current gold becomes Equal to 0.00
  • Player - Player 5's Current gold becomes Equal to 0.00
  • Player - Player 6's Current gold becomes Equal to 0.00
  • Player - Player 7's Current gold becomes Equal to 0.00
  • Player - Player 8's Current gold becomes Equal to 0.00
  • Player - Player 9's Current gold becomes Equal to 0.00
  • Player - Player 10's Current gold becomes Equal to 0.00
  • Conditions: -
  • Actions:
  • Player - Set (Triggering player) Current gold to ((Triggering player) Current lumber)

What this does ?
When any of the players runs out of gold,it will transfer the amount of his lumber into gold.

If this helped , give me +rep :thumbs_up:
 
Level 2
Joined
Oct 15, 2008
Messages
11
actually Skore_sM that trigger doesnt help at all because you not always run your gold to 0 thats a problem you need to put it to a value like 100 so when u have less than that youi get the gold.

other thing is that if your current gold is changing to current lumber it will belike you have 2 lumber you will get 2 gold

sorry but your trigger doesnt help at all
 
Level 4
Joined
May 20, 2008
Messages
89
Nor does your grammar.
Everyone here is trying to help you but we cant even understand what you want.
And the fact that you cant even put the value 100 on a single line makes me think that you have absolutely no skill in triggers.
So please , first learn the basics so you could understand what I made here.

  • Events:
  • Player - Player 1's Current gold becomes Equal to 100.00
  • Player - Player 2's Current gold becomes Equal to 100.00
  • Player - Player 3's Current gold becomes Equal to 100.00
  • Player - Player 4's Current gold becomes Equal to 100.00
  • Player - Player 5's Current gold becomes Equal to 100.00
  • Player - Player 6's Current gold becomes Equal to 100.00
  • Player - Player 7's Current gold becomes Equal to 100.00
  • Player - Player 8's Current gold becomes Equal to 100.00
  • Player - Player 9's Current gold becomes Equal to 100.00
  • Player - Player 10's Current gold becomes Equal to 100.00
  • Conditions: -
  • Actions:
  • Player - Add ((Triggering player) Current lumber) to (Triggering player)'s Current gold
This should do the work.
Just put it in your map and you will see.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Actually you can just increase the Maximum gold limit (as I remember...)
or Shendoo2's way should work fine
 
Status
Not open for further replies.
Top