<% template BoxScoreSvc(starwave.webgames.minigame.challenge.services.BoxScoreSvc obj) context = obj.minigameContext gameday = obj.gameDay isOwner = context.isOwner entryTo = context.entryDBTo challenge = obj.challenge dateFormat("EEE, MMM d yyyy") %> <% dayToRound = ##( 191102 , "Week 1", 191109 , "Week 2", 191117 , "Week 3", 191124 , "Week 4", 191011 , "Week 5", 191018 , "Week 6", 191025 , "Week 7", 191101 , "Week 8", 191108 , "Week 9", 191115 , "Week 10", 191122 , "Week 11", 191129 , "Week 12", 191206 , "Week 13", 191213 , "Week 14" ) %> <% entryTo.fullName %> - <%dateFormat("MMM. d, yyyy")%> <%gameday.date%> <% Header("BoxScoreSvc") %>
<% entryTo.fullName %> - Box Score <%dateFormat("MMM. d, yyyy")%> <%gameday.date%>
<% EntryHeader(context) %>

<% roster = obj.entryPlayers if (roster.length == 0) { obj.minigame.stringTable["BoxScore-NoStats"] } else { %> <% gamedayToday = currentDate() numberFormat("00") gamedayToday = '21' & gamedayToday.month + 1 & '' & gamedayToday.date numberFormat(null) roster = obj.entryPlayers if (isOwner == false and gameday.gameDay > gamedayToday ) { 'You cannot view future boxscores other than your own.' } else { if (roster.length == 0) { obj.minigame.stringTable["BoxScore-NoStats"] } else { previousGameday = gameday.gameDay - 1 nextGameday = gameday.gameDay + 1 if (previousGameday == 201100) { previousGameday = 201031 } if (previousGameday == 201200) { previousGameday = 201130 } if (previousGameday == 210100) { previousGameday = 201231 } if (previousGameday == 210200) { previousGameday = 210131 } if (previousGameday == 210300) { previousGameday = 210228 } if (previousGameday == 210400) { previousGameday = 210331 } if (previousGameday == 210500) { previousGameday = 210430 } if (previousGameday == 210700) { previousGameday = 210630 } if (previousGameday == 210800) { previousGameday = 210731 } if (previousGameday == 210900) { previousGameday = 210831 } if (previousGameday < 200404) { previousGameday = 200404 } if (previousGameday == 200400) { previousGameday = 200331 } if (previousGameday == 200500) { previousGameday = 200430 } if (previousGameday == 200600) { previousGameday = 200531 } if (previousGameday == 200700) { previousGameday = 200630 } if (previousGameday == 200800) { previousGameday = 200731 } if (previousGameday == 200900) { previousGameday = 200831 } if (nextGameday == 201032) { nextGameday = 201101 } if (nextGameday == 201131) { nextGameday = 201201 } if (nextGameday == 201232) { nextGameday = 210101 } if (nextGameday == 200732) { nextGameday = 200801 } if (nextGameday == 200832) { nextGameday = 200901 } if (nextGameday == 210132) { nextGameday = 210201 } if (nextGameday == 210229) { nextGameday = 210301 } if (nextGameday == 210332) { nextGameday = 210401 } if (nextGameday == 210431) { nextGameday = 210501 } if (nextGameday == 210532) { nextGameday = 210601 } if (nextGameday == 210631) { nextGameday = 210701 } if (nextGameday == 210732) { nextGameday = 210801 } if (isOwner) { '' '' '' '
' '' 'Box Score:   ' if (gameday.gameDay > 201031) { 'Previous | ' } 'Next' '' '
' } else { '' '' '' '
' '' 'Box Score:   ' 'Previous' '' 'NBA Scoreboard
' } } %> <% totalEntryPoints = 0 totalNValue = 0.0 nullFormat("--") foreach (item in roster) { player = item.player playerStats = item.boxScoreStats if (player.positionID == 5) { '' '' '' '' numberFormat("0") gp = playerStats["nGamesPlayed"].asInteger '' numberFormat(null) '' '' totalEntryPoints = totalEntryPoints + playerStats["nVGMPoints"].asInteger totalNValue = totalNValue + playerStats["nValue"].asDouble '\r\n' } else { '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' totalEntryPoints = totalEntryPoints + playerStats["nVGMPoints"].asInteger totalNValue = totalNValue + playerStats["nValue"].asDouble '\r\n' } } '' '' '' numberFormat("##.#") '' numberFormat(null) '' '' if (totalNValue > challenge.entryBudget + 0.00000000000001) { '' } else { numberFormat("#") '' numberFormat(null) } '
Results
POS PLAYER OPP MIN FGM-FGA FTM-FTA REB AST TO STL BLK PTS   TOTAL
' & challenge.positions[player.positionID].abbrev & '' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev & '' if (player.opponent == null) { '--' } else { if (playerStats["nIsHome"].asInteger == 0) { '@' } player.opponent.abbrev } 'Winning Pct. ' & playerStats["nWins"].asInteger & '/' & gp & ' = ' numberFormat("#.000") if (playerStats["nWins"].asInteger == 1) { '1.000' } else { '.000' } '  ' & playerStats["nVGMPoints"] & '
' & challenge.positions[player.positionID].abbrev & '' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev & '' if (player.opponent == null) { '--' } else { if (playerStats["nIsHome"].asInteger == 0) { '@' } player.opponent.abbrev } ' ' & playerStats["nMinutes"] & '' & playerStats["nFieldGoalsMade"] & '-' & playerStats["nFieldGoalsAttempted"] & '' & playerStats["nFreethrowsMade"] & '-' & playerStats["nFreethrowsAttempted"] & ' ' & playerStats["nRebounds"] & ' ' & playerStats["nAssists"] & ' ' & playerStats["nTurnovers"] & ' ' & playerStats["nSteals"] & ' ' & playerStats["nBlocks"] & ' ' & playerStats["nNBAPoints"] & '  ' & playerStats["nVGMPoints"] & '
' if (gameday.gameDay == gamedayToday ) { 'Note: Coach\'s points are not shown in live box score.' } 'Salary' & totalNValue &' Total 0' & totalEntryPoints &'
' } } %>

<% Footer("GroupFindSvc") %>