i don't understand water scripts but does this work?
;Artificial Intelligence Script
;Header
desc = raise water when triggered
;Triggers
:state=0:water=1,waterfogdist=500,waterred=210,watergreen=230,dimvar=waterlevel,setvar=waterlevel 595,waterheight=100%waterlevel,dimvar=waterstate,setvar=waterstate 0,state=1
:state=1,activated=1,varequal=waterstate 0:setvar=waterstate 1,activate=0
:state=1,activated=1,varequal=waterstate 1:setvar=waterstate 0,activate=0
:state=1,varequal=waterstate 1,varless=waterlevel 995:addvar=waterlevel 1,waterheight=100%waterlevel
:state=1,varequal=waterstate 0,vargreater=waterlevel 595:subvar=waterlevel 1,waterheight=100%waterlevel
;End of Script
I carn't test it cuz im on my phone
''Make sure your hands are clean before you point the finger''