Hi, thanks for looking in to this,
after saving the script there are no errors, they show up in runtime.
I made this edit with no programming experience, just experimenting replacing lines looking at other actions
The original action returns zero and none in all times,
with this edit I can get the right values (action reacts), but with errors.
If I leave the “return” as default, seems it gives zero values because it skips “if” states below, that made me put the “return” after them.