;by Jirby
:varequal=678:state=1
:state=0:dimlocalvar=suba,dimlocalvar=subamax,setvar=subamax 1500,dimlocalvar=tempo,dimlocalvar=underwater,setvar=suba %subamax
:state=1:hudreset,hudshow=bombolahud,hudx=30,hudy=6.8,hudimage=entitybank\jirby\entita sub\hud.dds,hudname=bombolahud,hudtype=1,hudmake=display
:state=1:hudreset,hudx=29,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Aria,hudname=text3,hudtype=1,hudmake=display
:state=1:hudreset,hudx=27,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=ariacot,hudtype=6,huduservar=suba,hudmake=numeric
;Triggers
:state=1,varequal=underwater 1:hudreset,hudshow=maschera,hudx=50,hudy=50,hudsizex=1025,hudsizey=769,hudname=maschera,hudimage=entitybank\jirby\entita sub\maschera.dds,hudtype=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=bombola,hudx=30,hudy=6.8,hudimage=entitybank\jirby\entita sub\hud.dds,hudname=bombola,hudtype=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text,hudx=29,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Aria,hudname=text,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text1,hudx=5,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Vita,hudname=text1,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=text2,hudx=16,hudy=4,hudfont=Xirod,hudgreen=0,hudred=250,hudblue=0,hudsize=18,hudtext=Energia,hudname=text2,hudhide=1,hudmake=display
:state=1,varequal=underwater 1:hudreset,hudshow=vita,hudx=4,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=vita,hudtype=1,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=energia,hudx=15,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=energia,hudtype=2,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=arma1,hudx=80,hudy=8,hudimage=languagebank\english\gamecore\backdrops\extrem\ammo.tga,hudname=arma1,hudtype=3,hudmake=status
:state=1,varequal=underwater 1:hudreset,hudshow=arma2,hudx=80,hudy=10,hudsizex=16,hudsizey=16,hudimage=languagebank\english\gamecore\backdrops\extrem\numeric_small.dds,hudname=arma2,hudtype=3,hudmake=numeric
:state=1,varequal=underwater 1:hudreset,hudshow=subaing,hudx=27,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudname=subaing,hudtype=6,huduservar=suba,hudmake=numeric
;conteggio fine aria
:state=1,varequal=underwater 1,vargreater=suba 1:etimerstart,setvar=underwater 2,setvar=tempo 0
:state=1,varequal=underwater 2,vargreater=suba 1,etimergreater=1000:subvar=suba 100,etimerstart,setvar=underwater 1,setvar=tempo 0
;fine aria toglie energia
:state=1,varequal=underwater 1,varless=suba -1:setvar=suba 0,setvar=tempo 0
:state=1,varequal=underwater 1,varequal=suba 0,etimergreater=1000:etimerstart,plraddhealth=-25,setvar=tempo 0
;Se il giocatore muore azzerare le nostre variabili
:plralive=0:setvar=underwater 0,setvar=suba %subamax,setvar=tempo 0,state=1
:varequal=200:setvar=underwater 0,setvar=suba %subamax,setvar=tempo 0,setvar=suba,state=1
;Alterna la nostra variabile subacquea
:plrunderwater=1,varless=underwater 0:setvar=underwater 1,stopsound
:plrunderwater=0,vargreater=underwater 1,vargreater=suba 101:setvar=underwater 0
:plrunderwater=0,vargreater=underwater 1,varless=suba 100:setvar=underwater 0
:plrunderwater=0:hudunshow=maschera
:plrunderwater=0:hudunshow=text
:plrunderwater=0:hudunshow=text1
:plrunderwater=0:hudunshow=text2
:plrunderwater=0:hudunshow=subaing
:plrunderwater=0:hudunshow=vita
:plrunderwater=0:hudunshow=energia
:plrunderwater=0:hudunshow=arma1
:plrunderwater=0:hudunshow=arma2
:plrunderwater=0:hudunshow=bombola
:plrunderwater=1:hudunshow=bombolahud
;End of Script