tankhunter0712 Posted October 7 Share Posted October 7 I need help finding a simple way to get the current damage we've done in battle. So far I've only been able to get the current frag count, but that's not what I need. My code looks like this: def __fetchStats(): global tx player = BigWorld.player() if player and player.arena: stats = player.arena.statistics player_vehicle_id = player.playerVehicleID LOG_DEBUG("Player vehicle ID:", player_vehicle_id) LOG_DEBUG("Arena statistics:", stats) if stats: if player_vehicle_id in stats: player_stats = stats[player_vehicle_id] LOG_DEBUG("Player stats for vehicle ID {}:".format(player_vehicle_id), player_stats) stats_text = str(stats[player_vehicle_id]) tx.text = "Your vehicle's statistics:\n" + stats_text else: tx.text = "No available statistics for your vehicle." else: tx.text = "No statistics in the arena." else: tx.text = "No access to the arena." @ Quote Link to comment Short link Share on other sites More sharing options...
tankhunter0712 Posted October 7 Author Share Posted October 7 stats_text contains only the current frag count in the form {frags:0} @ Quote Link to comment Short link Share on other sites More sharing options...
Solution tankhunter0712 Posted October 9 Author Solution Share Posted October 9 I don't need help anymore, I found the file damage_log_panel.py where I already have access to everything I wanted 1 @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.