From 52f7c18ff61b9bb497bc3fb6ed9f99664a117a3b Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 18 Aug 2013 20:44:03 +0000 Subject: [PATCH] Lua scripts - tweak to PuchOutStats.lua - shows the count an opponent will get up on --- BizHawk.MultiClient/output/Lua/NES/PunchOutStats.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BizHawk.MultiClient/output/Lua/NES/PunchOutStats.lua b/BizHawk.MultiClient/output/Lua/NES/PunchOutStats.lua index 3f6b7a2f8d..18bb82fe46 100644 --- a/BizHawk.MultiClient/output/Lua/NES/PunchOutStats.lua +++ b/BizHawk.MultiClient/output/Lua/NES/PunchOutStats.lua @@ -27,6 +27,11 @@ local OppHit local OppHitTimer = 0 local OppHitToDisplay = 0 +local OppGetUpCountAddr = 0x00C4 +local OppGetUpCount = 0 +local OppGetUpX = 0 +local OppGetUpY = 24 + OHitValuex = 100 OHitValuey = 100 @@ -63,7 +68,12 @@ while true do if IsOppDown() then OppWillGet = mainmemory.read_u8(OppWillGetUpWith) + OppGetUpCount = (mainmemory.read_u8(OppGetUpCountAddr) - 153) + if OppGetUpCount == -153 then + OppGetUpCount = "never!" + end gui.text(0, 12, "Next health: " .. OppWillGet, null, null, "bottomright") + gui.text(OppGetUpX, OppGetUpY, "Will get up on: " .. OppGetUpCount, null, null, "bottomright") end if OppIsHit() then