Posted: 29th Aug 2012 01:02
Yes, I´ve been trying to modify this Script
;Artificial Intelligence Script
;Header
desc = water
;Triggers
:always:globalvar=90
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0001.png,hudname=frame1,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0016.png,hudname=frame16,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0015.png,hudname=frame15,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0014.png,hudname=frame14,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0013.png,hudname=frame13,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0012.png,hudname=frame12,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0011.png,hudname=frame11,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0010.png,hudname=frame10,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0009.png,hudname=frame9,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0008.png,hudname=frame8,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0007.png,hudname=frame7,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0006.png,hudname=frame6,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0005.png,hudname=frame5,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0004.png,hudname=frame4,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0003.png,hudname=frame3,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/frame0002.png,hudname=frame2,hudhide=1,hudmake=display,hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore/huds/Underwater/waterfall.png,hudname=waterfall,hudhide=1,hudmake=display
:state=0,plrwithinzone=1:setvar=1,hudunshow=waterfall,hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/Underwater/water.dds,hudname=water,hudshow=water,hudmake=display,fogred=1,fogblue=250,foggreen=100,ambience=30,ambiencered=0,ambienceblue=250,ambiencegreen=100,timerstart,newjumpheight=100,state=1
:state=0,plrwithinzone=0:setvar=2,hudunshow=water,newjumpheight=50,fog=0,ambience=30,ambiencered=30,ambienceblue=30,ambiencegreen=30,hudunshow=frame1,hudunshow=frame2,hudunshow=frame3,hudunshow=frame4,hudunshow=frame5,hudunshow=frame6,hudunshow=frame7,hudunshow=frame8,hudunshow=frame9,hudunshow=frame10,hudunshow=frame11,hudunshow=frame12,hudunshow=frame13,hudunshow=frame14,hudunshow=frame15,hudunshow=frame16
:state=1:state=2
:state=2,timergreater=10000,plrwithinzone=1:plraddhealth=-10,hudshow=frame1,state=3
:state=2,plrwithinzone=0:state=0
:state=3,timergreater=10100,plrwithinzone=1:hudshow=frame2,hudunshow=frame1,state=4
:state=3,plrwithinzone=0:state=0
:state=4,timergreater=10200,plrwithinzone=1:hudshow=frame3,hudunshow=frame2,state=5
:state=4,plrwithinzone=0:state=0
:state=5,timergreater=10300,plrwithinzone=1:hudshow=frame4,hudunshow=frame3,state=6
:state=5,plrwithinzone=0:state=0
:state=6,timergreater=10400,plrwithinzone=1:hudshow=frame5,hudunshow=frame4,state=7
:state=6,plrwithinzone=0:state=0
:state=7,timergreater=10500,plrwithinzone=1:hudshow=frame6,hudunshow=frame5,state=8
:state=7,plrwithinzone=0:state=0
:state=8,timergreater=10600,plrwithinzone=1:hudshow=frame7,hudunshow=frame6,state=9
:state=8,plrwithinzone=0:state=0
:state=9,timergreater=10700,plrwithinzone=1:hudshow=frame8,hudunshow=frame7,state=10
:state=9,plrwithinzone=0:state=0
:state=10,timergreater=10800,plrwithinzone=1:hudshow=frame9,hudunshow=frame8,state=11
:state=10,plrwithinzone=0:state=0
:state=11,timergreater=10900,plrwithinzone=1:hudshow=frame10,hudunshow=frame9,state=12
:state=11,plrwithinzone=0:state=0
:state=12,timergreater=11000,plrwithinzone=1:hudshow=frame11,hudunshow=frame10,state=13
:state=12,plrwithinzone=0:state=0
:state=13,timergreater=11100,plrwithinzone=1:hudshow=frame12,hudunshow=frame11,state=14
:state=13,plrwithinzone=0:state=0
:state=14,timergreater=11200,plrwithinzone=1:hudshow=frame13,hudunshow=frame12,state=15
:state=14,plrwithinzone=0:state=0
:state=15,timergreater=11300,plrwithinzone=1:hudshow=frame14,hudunshow=frame13,state=16
:state=15,plrwithinzone=0:state=0
:state=16,timergreater=11400,plrwithinzone=1:hudshow=frame15,hudunshow=frame14,state=17
:state=16,plrwithinzone=0:state=0
:state=17,timergreater=11500,plrwithinzone=1:hudshow=frame16,hudunshow=frame15,state=18
:state=17,plrwithinzone=0:state=0
:state=18,timergreater=11600,plrwithinzone=1:hudfadeout=frame16,state=0
:plrwithinzone=0,varequal=1:hudshow=waterfall,hudunshow=water,hudunshow=water,newjumpheight=50,fog=0,ambience=30,ambiencered=30,ambienceblue=30,ambiencegreen=30,hudunshow=frame1,hudunshow=frame2,hudunshow=frame3,hudunshow=frame4,hudunshow=frame5,hudunshow=frame6,hudunshow=frame7,hudunshow=frame8,hudunshow=frame9,hudunshow=frame10,hudunshow=frame11,hudunshow=frame12,hudunshow=frame13,hudunshow=frame14,hudunshow=frame15,hudunshow=frame16,state=21
:state=21,plrwithinzone=0,scancodekeypressed=15,varequal=1:hudunshow=waterfall,state=0
:state=21,plrwithinzone=1:state=0
:anywithinzone=1:activateallinzone=1
So when the player is more than a minute under water his life decrease by 10, and from there, every second his life decrease by 10 again.
But I can´t make it work, the player always lose health every 10 seconds. Where it says "timergreater=10000" I tried putting "timergreater=60000" and from there "timergreater=1000...
Can anyone help me, What I am doing wrong?