Change Lumber Into Minutes and Food into Seconds

X

xxwhitelinex

Guest
Okay.. I Asking for "How To Change Lumber Into Minutes and Food into Seconds ? " Example is on DotA...
I can change Lumber Icon.. Tooltip.. But i can't change it into Game Real Time.. Like Hour.. Minutes and Seconds??

Can someone help me??
 

lindenkron

You can change this now in User CP
Reaction score
102
Every 1 sec

if -
lumber less then 60
then
add 1 lumber to player 1 red
else
set player one red lumber to 1
add 1 gold to player 1 red

(This is Gold = Minutes, Lumber = seconds)

couldnt be bothered changing it to food, (just go look at the triggers. :)
 

Evoroth

New Member
Reaction score
11
It's excactly the same thing with food. Food is treated as a resourse too, which can be manipulated freely in the same way.
 

lindenkron

You can change this now in User CP
Reaction score
102
It's excactly the same thing with food. Food is treated as a resourse too, which can be manipulated freely in the same way.

Not exactly the same, since food is changed with "food used" "food cap" etc, so he has to find out how to do that. But he can do that himself, that's what I ment :)
 
X

xxwhitelinex

Guest
Every 1 sec

if -
lumber less then 60
then
add 1 lumber to player 1 red
else
set player one red lumber to 1
add 1 gold to player 1 red

(This is Gold = Minutes, Lumber = seconds)

couldnt be bothered changing it to food, (just go look at the triggers. :)

Wow very special thanx for this logic..
Do you have any Time Icon xP ???
LoL...
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Trigger:
  • Initiation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in inGamePlayers and do (Actions)
        • Loop - Actions
          • Player - Set (Picked player) Current lumber to 0
          • Player - Set (Picked player) Food used to 0
          • Player - Set (Picked player) Food cap to 0
          • Player - Set (Picked player) Food max to 0

Trigger:
  • Ticker
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in inGamePlayers and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) Food used) Equal to (==) 59
            • Then - Actions
              • Player - Add 1 to (Picked player) Current lumber
              • Player - Set (Picked player) Food used to 0
            • Else - Actions
              • Player - Add 1 to (Picked player) Food used

Icon I use is attached:
Use the path "UI\Feedback\Resources\Clock.tga".
 
X

xxwhitelinex

Guest
It's Work On Me...
Lumber As Minutes and Food As Seconds..
I create 2 trigger (it's more easy)

Trigger:
  • Time
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add 1 to (Picked player) Food used


Trigger:
  • Time Trigger
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Detik Greater than or equal to 60
        • Then - Actions
          • Set Detik = 0
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Player - Set (Picked player) Food used to 0
              • Player - Add 1 to (Picked player) Current lumber
        • Else - Actions
          • Set Detik = (Detik + 1)


NB : Detik = Seconds Menit = Minutes ( I'm Indonesian xD )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top