Thank you for answering Skele, your explanation are very clear, my questions are answered.
About handling errors, I suppose restarting the script would do the trick. So I'll just stick to your solution from another post : Quote from Skele :
setInterval(function(){
if(!crash.script.isRunning)
{
crash.script.start()
}
},
1000)
for hash dice you will likely have to change the "crash" to be "hdg" but after that it should work.
Few details about this in case people wonder :
-Launch your ingame script.
-Write this in the F12 console, press enter
--> This will automatically press "Run script" every 1000 miliseconds, if your script is not currently running.
--> You may close the F12 console, it'll continue running the script automatically.
--> To stop, refresh or close the webbrowser page.