anyways i was hoping for a little help, keep in mind i am not sharpest tool in the box and just wanted to try learn this for fun

what i was actually trying to do was to increase a game counter with a hotkey, which i did almost successfully with the point scanner method
and using the script command "add [297ff6f0],{int}8000" however over time the values started to slowly change to ?? it actually took most of
the day with multiple restarts of the game until they were all gone and the last time i hit the hotkey it crashed the game.
i did repeat the whole process thinking i just got unlucky but it happened again, i was hoping it was possible to achieve a working result
with a bit more scripting and a value what does not change, what i know is i disabled the counter by removing the command
"movss xmm0,[edi+14]" from a script so i know the correct address (the one changing) is stored in [edi+14] which i confirmed when i checked the
information table. i was hoping somebody could tell me how i can get the address from [edi+14] to replace the one in "add [297ff6f0],{int}8000"
as the edi always has the correct value.
i have tried a few different ways from within err a jump? but it seems for it to work there has to be a repeat of what i
did to find the value (what i did to get the counter to increase) the pointer method is the closest i have got to getting it to work but
unfortunately it does not last. examples or a working script would be sweet haha but any help at all would be amazing thanks.