• 🏆 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!

[Trigger] Multiboard showing wrong result, why ??

Status
Not open for further replies.
Level 6
Joined
Jan 4, 2014
Messages
227
Good day !

why does this script : http://www.hiveworkshop.com/forums/pastebin.php?id=xyn1ll

EDIT : and this script also, which refresh the multiboard every one sec :
  • Refresh Multiboard
    • Events
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for AoS_Multiboard item in column 2, row ((Integer A) + 1) to Player_Names[(Integer A)]
          • Multiboard - Set the text for AoS_Multiboard item in column 3, row ((Integer A) + 1) to ((String(KDA_Kill_Count[(Integer A)])) + (/ + ((String(KDA_Death_Count[(Integer A)])) + (/ + (String(KDA_Assist_Count[(Integer A)]))))))
          • Multiboard - Set the text for AoS_Multiboard item in column 4, row ((Integer A) + 1) to ((String(Hero_Last_Hits[(Integer A)])) + (/ + (String(Hero_Denies[(Integer A)]))))
          • Multiboard - Set the text for AoS_Multiboard item in column 5, row ((Integer A) + 1) to (String((Integer((Remaining time for Hero_Revive_Timer[(Integer A)])))))
          • Multiboard - Set the text for AoS_Multiboard item in column 6, row ((Integer A) + 1) to 26
          • Multiboard - Set the text for AoS_Multiboard item in column 7, row ((Integer A) + 1) to 100
          • Multiboard - Set the text for AoS_Multiboard item in column 8, row ((Integer A) + 1) to 99999
          • Multiboard - Set the text for AoS_Multiboard item in column 9, row ((Integer A) + 1) to 120
showing wrongly the last raw , why ??
multiboard%20v2.jpg
 
Last edited:
Level 23
Joined
Apr 16, 2012
Messages
4,041
too lazy to retype it, so I will paste it in here:

[18-49-55] :user: edo494: kamyflex, why are there 99999 gold, when the script says 700?
[18-51-13] :user: edo494: kamyflex, it seems as if the last row got 99999 and 120 in the same column, instead of placing 120 into the other column
[18-53-29] :user: edo494: kamyflex, are you sure its correct code? because for instance it should show farms in the first row, but it doesnt show anything. Also the numbers are different
 
Level 6
Joined
Jan 4, 2014
Messages
227
@edo, here is the refreshing script :
  • Refresh Multiboard
    • Events
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for AoS_Multiboard item in column 2, row ((Integer A) + 1) to Player_Names[(Integer A)]
          • Multiboard - Set the text for AoS_Multiboard item in column 3, row ((Integer A) + 1) to ((String(KDA_Kill_Count[(Integer A)])) + (/ + ((String(KDA_Death_Count[(Integer A)])) + (/ + (String(KDA_Assist_Count[(Integer A)]))))))
          • Multiboard - Set the text for AoS_Multiboard item in column 4, row ((Integer A) + 1) to ((String(Hero_Last_Hits[(Integer A)])) + (/ + (String(Hero_Denies[(Integer A)]))))
          • Multiboard - Set the text for AoS_Multiboard item in column 5, row ((Integer A) + 1) to (String((Integer((Remaining time for Hero_Revive_Timer[(Integer A)])))))
          • Multiboard - Set the text for AoS_Multiboard item in column 6, row ((Integer A) + 1) to 26
          • Multiboard - Set the text for AoS_Multiboard item in column 7, row ((Integer A) + 1) to 100
          • Multiboard - Set the text for AoS_Multiboard item in column 8, row ((Integer A) + 1) to 99999
          • Multiboard - Set the text for AoS_Multiboard item in column 9, row ((Integer A) + 1) to 120
 
Level 6
Joined
Jan 4, 2014
Messages
227
Solved : by reducing the number of actions inside loops.

For some reason the loop was stoping at step 11 and step 12 was not executed.

Thanks guys :)
 
Last edited:
Status
Not open for further replies.
Top