|
Post by godemperor on Dec 28, 2016 16:44:04 GMT
Hi, ¿is there a way to execute some code or method when user abort (stop button is clicked or dialog is canceled)?
the idea is to show a resume of some counters of thing that the script did but the only method that do that is scpritExit but its only triggered when script end normally by itself
|
|
|
Post by paladiex on Dec 28, 2016 17:37:39 GMT
I messaged anku about this some time ago. Currently no there is not, if you use something like print ("Battle lost! W: " .. winCount .. " L " .. loseCount)
You can get some stats at the end, but you get one line per repeat in your code.
|
|
|
Post by godemperor on Dec 28, 2016 18:03:08 GMT
I messaged anku about this some time ago. Currently no there is not, if you use something like print ("Battle lost! W: " .. winCount .. " L " .. loseCount) You can get some stats at the end, but you get one line per repeat in your code. Thanks, that's exactly the workaround im using for now but was messy and had to print every time a counter ws modified or else i loose some info at user abort PD: the line that you put as example is the one that im working on jajaja for now i put a print also in wins , im using this to test which team works better on dragon for example an HP% instead of a CD% rune on my hwa change a 66% percent in a 95% wins
|
|