After Flatlander say I am one of the best FPSC scripters
Thanks for this huge compliment
I find I must prove that this is true
So here is a
water realtime change script:
This script needs 1.2 r711(I think Beta 7) and above
Control:
O - Go state up
L - Go state down
I - Higher the value you chose
P - Lower the value you chose
!!Also explained in game!!
So now place the water_realtime.fpi in a triggerzone and play with the values!
;Artificial Intelligence Script
;Created by Corno_1
;Header
desc = water realtime change with I and P
;Triggers
:state=0:fpgcrawtextsize=40,fpgcrawtextfont=Arial,fpgcrawtextr=0,fpgcrawtextg=0,fpgcrawtextb=255,fpgcrawtextx=90,fpgcrawtexty=10
:state=0:hudreset,hudx=50,hudy=5,hudsize=18,hudfont=arial,hudtext=Press O or L to switch state,hudname=presso,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=7,hudsize=18,hudfont=arial,hudtext=Press P to lower and I to higher the value,hudname=pressip,hudhide=1,hudmake=display
;huds for variables
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterheight,hudname=waterheight,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterripple,hudname=waterripple,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterblue,hudname=waterblue,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterred,hudname=waterred,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Watergreen,hudname=watergreen,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterfogdist,hudname=waterfogdist,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterfoggreen,hudname=waterfoggreen,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterfogblue,hudname=waterfogblue,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Waterfogred,hudname=waterfogred,hudhide=1,hudmake=display
:state=0:hudreset,hudx=90,hudy=5,hudsize=18,hudfont=arial,hudtext=Watercurrent,hudname=watercurrent,hudhide=1,hudmake=display
;Variables
;waterhigh
:state=0:dimvar=waterhigh,setvar=waterhigh 500
;waterspeed
:state=0:dimvar=waterspeed,setvar=waterspeed 0
;waterblue
:state=0:dimvar=waterblue,setvar=waterblue 0
;waterred
:state=0:dimvar=waterred,setvar=waterred 0
;watergreen
:state=0:dimvar=watergreen,setvar=watergreen 0
;waterfog distance
:state=0:dimvar=waterfogdist,setvar=waterfogdist 300
;waterfog red
:state=0:dimvar=waterfogred,setvar=waterfogred 0
;waterfog green
:state=0:dimvar=waterfoggreen,setvar=waterfoggreen 0
;waterfog blue
:state=0:dimvar=waterfogblue,setvar=waterfogblue 0
;watercurrent
:state=0:dimvar=watercurrent,setvar=watercurrent 0
;hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=watergreen
;hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
;show default huds
:stategreater=0,statelesser=4:hudshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=watergreen,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=4,statelesser=9:hudshow=waterripple,hudunshow=waterheight,hudunshow=waterblue,hudunshow=waterred,hudunshow=watergreen,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=9,statelesser=14:hudshow=waterblue,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterred,hudunshow=watergreen,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=14,statelesser=19:hudshow=waterred,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=watergreen,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=19,statelesser=24:hudshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=24,statelesser=29:hudunshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=29,statelesser=34:hudunshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=34,statelesser=39:hudunshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=waterfogdist,hudshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudunshow=watercurrent
:stategreater=39,statelesser=44:hudunshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudshow=waterfogred,hudunshow=watercurrent
:stategreater=44,statelesser=49:hudunshow=watergreen,hudunshow=waterheight,hudunshow=waterripple,hudunshow=waterblue,hudunshow=waterred,hudunshow=waterfogdist,hudunshow=waterfoggreen,hudunshow=waterfogblue,hudunshow=waterfogred,hudshow=watercurrent
;set water default settings
:state=0:water=1,waterheight=500,waterspeed=0,waterfogdist=300,state=1
:always:hudshow=presso,hudshow=pressip
;waterhigh
:state=1,keypressed=24 0,keypressed=38 0:state=2
:state=2:fpgcrawtext=%waterhigh
:state=2,keypressed=23 1:addvar=waterhigh 1,state=3
:state=2,keypressed=25 1:subvar=waterhigh 1,state=3
:state=3:waterheight=%waterhigh,state=2
:state=2,keypressed=24 1:state=45
:state=2,keypressed=38 1:state=5
:state=2,varless=waterhigh 0:state=4
;control variables(var not smaller than 0)
:state=4:fpgcrawtext=%waterhigh
:state=4,keypressed=23 1:addvar=waterhigh 1,state=3
:state=4,keypressed=24 1:state=45
:state=4,keypressed=38 1:state=5
;water ripple
:state=5,keypressed=24 0,keypressed=38 0:state=6
:state=6:fpgcrawtext=%waterspeed
:state=6,keypressed=23 1:addvar=waterspeed 1,state=7
:state=6,keypressed=25 1:subvar=waterspeed 1,state=7
:state=7:waterspeed=%waterspeed,state=6
:state=6,keypressed=24 1:state=1
:state=6,keypressed=38 1:state=10
;control variables(var not higher than 100 and not smaller than 0)
:state=6,varless=waterspeed 0:state=8
:state=8:fpgcrawtext=%waterspeed
:state=8,keypressed=23 1:addvar=waterspeed 1,state=7
:state=6,vargreater=waterspeed 100:state=9
:state=9:fpgcrawtext=%waterspeed
:state=9,keypressed=25 1:subvar=waterspeed 1,state=7
:state=8,keypressed=24 1:state=1
:state=8,keypressed=38 1:state=10
:state=9,keypressed=24 1:state=1
:state=9,keypressed=38 1:state=10
;waterred
:state=10,keypressed=24 0,keypressed=38 0:state=11
:state=11:fpgcrawtext=%waterred
:state=11,keypressed=23 1:addvar=waterred 1,state=12
:state=11,keypressed=25 1:subvar=waterred 1,state=12
:state=12:waterred=%waterred,state=11
:state=11,keypressed=24 1:state=5
:state=11,keypressed=38 1:state=15
;control variables(var not higher than 255 and not smaller than 0)
:state=11,varless=waterred 0:state=13
:state=13:fpgcrawtext=%waterred
:state=13,keypressed=23 1:addvar=waterred 1,state=12
:state=11,vargreater=waterred 255:state=14
:state=14:fpgcrawtext=%waterred
:state=14,keypressed=25 1:subvar=waterred 1,state=12
:state=13,keypressed=24 1:state=5
:state=13,keypressed=38 1:state=15
:state=14,keypressed=24 1:state=5
:state=14,keypressed=38 1:state=15
;watergreen
:state=15,keypressed=24 0,keypressed=38 0:state=16
:state=16:fpgcrawtext=%watergreen
:state=16,keypressed=23 1:addvar=watergreen 1,state=17
:state=16,keypressed=25 1:subvar=watergreen 1,state=17
:state=17:watergreen=%watergreen,state=16
:state=16,keypressed=24 1:state=10
:state=16,keypressed=38 1:state=20
;control variables(var not higher than 255 and not smaller than 0)
:state=16,varless=watergreen 0:state=18
:state=18:fpgcrawtext=%watergreen
:state=18,keypressed=23 1:addvar=watergreen 1,state=17
:state=16,vargreater=watergreen 255:state=19
:state=19:fpgcrawtext=%watergreen
:state=19,keypressed=25 1:subvar=watergreen 1,state=17
:state=18,keypressed=24 1:state=10
:state=18,keypressed=38 1:state=20
:state=19,keypressed=24 1:state=10
:state=19,keypressed=38 1:state=20
;waterblue
:state=20,keypressed=24 0,keypressed=38 0:state=21
:state=21:fpgcrawtext=%waterblue
:state=21,keypressed=23 1:addvar=waterblue 1,state=22
:state=21,keypressed=25 1:subvar=waterblue 1,state=22
:state=22:waterblue=%waterblue,state=21
:state=21,keypressed=24 1:state=15
:state=21,keypressed=38 1:state=25
;control variables(var not higher than 255 and not smaller than 0)
:state=21,varless=waterblue 0:state=23
:state=23:fpgcrawtext=%waterblue
:state=23,keypressed=23 1:addvar=waterblue 1,state=22
:state=21,vargreater=waterblue 255:state=24
:state=24:fpgcrawtext=%waterblue
:state=24,keypressed=25 1:subvar=waterblue 1,state=22
:state=23,keypressed=24 1:state=15
:state=23,keypressed=38 1:state=25
:state=24,keypressed=24 1:state=15
:state=24,keypressed=38 1:state=25
;waterfogdist
:state=25,keypressed=24 0,keypressed=38 0:state=26
:state=26:fpgcrawtext=%waterfogdist
:state=26,keypressed=23 1:addvar=waterfogdist 1,state=27
:state=26,keypressed=25 1:subvar=waterfogdist 1,state=27
:state=27:waterfogdist=%waterfogdist,state=26
:state=26,keypressed=24 1:state=20
:state=26,keypressed=38 1:state=30
;control variables(var not smaller than 0)
:state=26,varless=waterfogdist 0:state=28
:state=28:fpgcrawtext=%waterfogdist
:state=28,keypressed=23 1:addvar=waterfogdist 1,state=27
:state=28,keypressed=24 1:state=20
:state=28,keypressed=38 1:state=30
;waterfogblue
:state=30,keypressed=24 0,keypressed=38 0:state=31
:state=31:fpgcrawtext=%waterfogblue
:state=31,keypressed=23 1:addvar=waterfogblue 1,state=32
:state=31,keypressed=25 1:subvar=waterfogblue 1,state=32
:state=32:waterfogblue=%waterfogblue,state=31
:state=31,keypressed=24 1:state=25
:state=31,keypressed=38 1:state=35
;control variables(var not higher than 255 and not smaller than 0)
:state=31,varless=waterfogblue 0:state=33
:state=33:fpgcrawtext=%waterfogblue
:state=33,keypressed=23 1:addvar=waterfogblue 1,state=32
:state=31,vargreater=waterfogblue 255:state=34
:state=34:fpgcrawtext=%waterfogblue
:state=34,keypressed=25 1:subvar=waterfogblue 1,state=32
:state=33,keypressed=24 1:state=25
:state=33,keypressed=38 1:state=35
:state=34,keypressed=24 1:state=25
:state=34,keypressed=38 1:state=35
;waterfoggreen
:state=35,keypressed=24 0,keypressed=38 0:state=36
:state=36:fpgcrawtext=%waterfoggreen
:state=36,keypressed=23 1:addvar=waterfoggreen 1,state=37
:state=36,keypressed=25 1:subvar=waterfoggreen 1,state=37
:state=37:waterfoggreen=%waterfoggreen,state=36
:state=36,keypressed=24 1:state=30
:state=36,keypressed=38 1:state=40
;control variables(var not higher than 255 and not smaller than 0)
:state=36,varless=waterfoggreen 0:state=38
:state=38:fpgcrawtext=%waterfoggreen
:state=38,keypressed=23 1:addvar=waterfoggreen 1,state=37
:state=36,vargreater=waterfoggreen 255:state=39
:state=39:fpgcrawtext=%waterfoggreen
:state=39,keypressed=25 1:subvar=waterfoggreen 1,state=37
:state=38,keypressed=24 1:state=30
:state=38,keypressed=38 1:state=40
:state=39,keypressed=24 1:state=30
:state=39,keypressed=38 1:state=40
;waterfogred
:state=40,keypressed=24 0,keypressed=38 0:state=41
:state=41:fpgcrawtext=%waterfogred
:state=41,keypressed=23 1:addvar=waterfogred 1,state=42
:state=41,keypressed=25 1:subvar=waterfogred 1,state=42
:state=42:waterfogred=%waterfogred,state=41
:state=41,keypressed=24 1:state=35
:state=41,keypressed=38 1:state=45
;control variables(var not higher than 255 and not smaller than 0)
:state=41,varless=waterfogred 0:state=43
:state=43:fpgcrawtext=%waterfogred
:state=43,keypressed=23 1:addvar=waterfogred 1,state=42
:state=41,vargreater=waterfogred 255:state=44
:state=44:fpgcrawtext=%waterfogred
:state=44,keypressed=25 1:subvar=waterfogred 1,state=42
:state=43,keypressed=24 1:state=35
:state=43,keypressed=38 1:state=45
:state=44,keypressed=24 1:state=35
:state=44,keypressed=38 1:state=45
;water current direction angle
:state=45,keypressed=24 0,keypressed=38 0:state=46
:state=46:fpgcrawtext=%watercurrent
:state=46,keypressed=23 1:addvar=watercurrent 1,state=47
:state=46,keypressed=25 1:subvar=watercurrent 1,state=47
:state=47:watercurrent=%watercurrent,state=46
:state=46,keypressed=24 1:state=40
:state=46,keypressed=38 1:state=1
;control variables(var not higher than 360 and not smaller than 0)
:state=46,varless=watercurrent 0:state=48
:state=48:fpgcrawtext=%watercurrent
:state=48,keypressed=23 1:addvar=watercurrent 1,state=47
:state=46,vargreater=watercurrent 360:state=49
:state=49:fpgcrawtext=%watercurrent
:state=49,keypressed=25 1:subvar=watercurrent 1,state=47
:state=48,keypressed=24 1:state=40
:state=48,keypressed=38 1:state=1
:state=49,keypressed=24 1:state=40
:state=49,keypressed=38 1:state=1
;End of Script
Write all values with what the do down and place them in this script:
;Artificial Intelligence Script
;Created by Corno_1
;Header
desc = water realtime change end script
;switch water on
:state=0:water=1
;set waterheight
:state=0:waterheight=500
;set water ripple
:state=0:waterspeed=0
;set water blue
:state=0:waterblue=0
;set water red
:state=0:waterred=0
;set water green
:state=0:watergreen=0
;set water fog distance
:state=0:waterfogdist=300
;set water fog blue
:state=0:waterfogblue=0
;set water fog red
:state=0:waterfogred=0
;set water fog green
:state=0:waterfoggreen=0
;set water flow angle
:state=0:watercurrent=0
;set water flow stengh
:state=0:waterflow=1,state=1
This script you should use for your game!
You can also make it smaller:
;Artificial Intelligence Script
;Created by Corno_1
;Header
desc = water realtime change end script
:state=0:water=1,waterheight=500,waterspeed=0,waterblue=0,waterred=0,watergreen=0,waterfogdist=300,waterfogblue=0,waterfogred=0,waterfoggreen=0,watercurrent=0,waterflow=1,state=1
;End
This is all what you need for a good looking water
Corno_1