It's Done. I rewrote the script, and it now allows for battery life, which regenerates. I put legal info right in the script, to avoid confusion. F to turn it on, f1-f4 to change mode. You can set the mode when it is on or off, like having a slider switch to choose the mode. This script is my baby, I spent at least on hour on it, please do not claim it as your own.
;Artificial Intelligence Script
;Header
desc = Night Vision Script
;The Idea for this script came from the "Script Challenges" board, which was posted by Plystire.
;The challenge was provided by Hybrid
;The Challenge was answered by Plystire
;This Script is entirely my own, and can be used for commercial or non commercial.
;This Script was written in FPI EditPad, as programmed by F l a t l a n d e r.
;Thanks to xplosys, for my scripting would not be possibly without the constant assistance of his guide, which can be found at FPSfree.com
;Written by Denver Seavert Saturday, August 16th, 2008.
;Do not claim this as your own, do not sell individually or in a pack, only as a game asset.
;Feel free to redistribute for free to your friends.
;Triggers
:always:localvar=5
:state=0,scancodekeypressed=59:state=5
:state=0,scancodekeypressed=60:state=6
:state=0,scancodekeypressed=61:state=7
:state=0,scancodekeypressed=62:state=8
:state=0:setvar=2500
:state=0,scancodekeypressed=33:state=9
:state=1,scancodekeypressed=59:state=1
:state=1,scancodekeypressed=60:state=2
:state=1,scancodekeypressed=61:state=3
:state=1,scancodekeypressed=62:state=4
:state=1:ambiencegreen=255,ambienceblue=0,ambiencered=0,ambience=20
:state=1:decvar=1
:state=1,scancodekeypressed=33:state=10
:state=1,varequal=0:state=5
:state=1,scancodekeypressed=59:state=1
:state=2,scancodekeypressed=60:state=2
:state=2,scancodekeypressed=61:state=3
:state=2,scancodekeypressed=62:state=4
:state=2:ambiencegreen=255,ambienceblue=0,ambiencered=0,ambience=40
:state=2:decvar=3
:state=2,scancodekeypressed=33:state=11
:state=2,varequal=0:state=6
:state=3,scancodekeypressed=59:state=1
:state=3,scancodekeypressed=60:state=2
:state=3,scancodekeypressed=61:state=3
:state=3,scancodekeypressed=62:state=4
:state=3:ambiencegreen=255,ambienceblue=0,ambiencered=0,ambience=80
:state=3:decvar=10
:state=3,scancodekeypressed=33:state=12
:state=3,varequal=0:state=7
:state=4,scancodekeypressed=59:state=1
:state=4,scancodekeypressed=60:state=2
:state=4,scancodekeypressed=61:state=3
:state=4,scancodekeypressed=62:state=4
:state=4:ambiencegreen=0,ambienceblue=0,ambiencered=255,ambience=60
:state=4:decvar=8
:state=4,scancodekeypressed=33:state=13
:state=4,varequal=0:state=8
:state=5:varless=2500,incvar=5
:state=5,scancodekeypressed=59:state=5
:state=5,scancodekeypressed=60:state=6
:state=5,scancodekeypressed=61:state=7
:state=5,scancodekeypressed=62:state=8
:state=5:ambience=0,ambienceblue=255,ambiencegreen=255,ambiencered=255
:state=5,scancodekeypressed=33:state=14
:state=6:varless=2500,incvar=5
:state=6,scancodekeypressed=59:state=5
:state=6,scancodekeypressed=60:state=6
:state=6,scancodekeypressed=61:state=7
:state=6,scancodekeypressed=62:state=8
:state=6:ambience=0,ambienceblue=255,ambiencegreen=255,ambiencered=255
:state=6,scancodekeypressed=33:state=15
:state=7:varless=2500,incvar=5
:state=7,scancodekeypressed=59:state=5
:state=7,scancodekeypressed=60:state=6
:state=7,scancodekeypressed=61:state=7
:state=7,scancodekeypressed=62:state=8
:state=7:ambience=0,ambienceblue=255,ambiencegreen=255,ambiencered=255
:state=7,scancodekeypressed=33:state=16
:state=8:varless=2500,incvar=5
:state=8,scancodekeypressed=59:state=5
:state=8,scancodekeypressed=60:state=6
:state=8,scancodekeypressed=61:state=7
:state=8,scancodekeypressed=62:state=8
:state=8:ambience=0,ambienceblue=255,ambiencegreen=255,ambiencered=255
:state=8,scancodekeypressed=33:state=17
:state=9,scancodekeypressed=0:state=1
:state=10,scancodekeypressed=0:state=5
:state=11,scancodekeypressed=0:state=6
:state=12,scancodekeypressed=0:state=7
:state=13,scancodekeypressed=0:state=8
:state=14,scancodekeypressed=0:state=1
:state=15,scancodekeypressed=0:state=2
:state=16,scancodekeypressed=0:state=3
:state=17,scancodekeypressed=0:state=4
;End of Script
I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.