var mhp = 0; var ut = 0; foreach(ptr, epd : EUDLoopPlayerUnit(getcurpl()) ) { ut = wread(ptr + 0x64); mhp = dwread_epd(EPD(0x65FD00)+9808/4 + ut); dwwrite(ptr + 0x8, mhp); }