Timer Window Show For Player

Status
Not open for further replies.
Level 5
Joined
Jan 5, 2008
Messages
145
Shouldnt This Work? Cause Its Not Hiding The Timer Window When Your Income Is 0
  • Timer Window Show
    • Events
      • Time - IncomeTimer expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TotalIncome[(Integer A)] Equal to 0
            • Then - Actions
              • Countdown Timer - Hide IncomeTimerWindow for (Player((Integer A)))
            • Else - Actions
              • Countdown Timer - Show IncomeTimerWindow for (Player((Integer A)))
 
I suggest that you add debug messages to figure out what the problem is.
  • Timer Window Show
  • Events
    • Time - IncomeTimer expires
  • Conditions
  • Actions
    • Custom Script: call BJDebugMsg("The trigger is running!")
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • TotalIncome[(Integer A)] Equal to 0
          • Then - Actions
            • Countdown Timer - Hide IncomeTimerWindow for (Player((Integer A)))
            • Custom Script: call BJDebugMsg("The income is 0!")
          • Else - Actions
            • Countdown Timer - Show IncomeTimerWindow for (Player((Integer A)))
            • Custom Script: call BJDebugMsg("The income is not 0!")
Now, if you see "The trigger is running!", that means that the trigger has properly started. You should see this no matter what.

If you see "The income is 0!", that means that the income IS 0. If it does show up, that means that the window just isn't hiding. You'll probably see all three messages if you see "The income is 0!"

If you see only the first and "The income is not 0!", then that means that the condition isn't being met. Or in other words, the income doesn't equal 0.

Report back with your results and it'll be easier for us to tell what the problem is. ;D
 
Level 5
Joined
Nov 22, 2009
Messages
181
First of all, when you started the timer did you set the timer variable = (last started timer) and the timer window variable = last created timer window) when you started the timer?
If you didn't it would help a LOT if you changed that. LOL! That actually sounds exactly like something I would do! :D
 
Status
Not open for further replies.
Top