Quote: "I have RPG Mod as well. How does the flash light function work? does it change the ambience?"
No, it doesn't.
If you have version 3.2 or above.
1. rpg_useflashlight=(0 or 1) - 1 turns flashlight on
2. rpg_flashlightrange=integer - any number. If set too low then it doesn't work very well. Remember 100 is a segment unit. Default is 350. Try a larger value if not acceptable.
3. rpg_flashinnerangle=float. Angle values only (0.0-360.0) This angle is where it is the brightest. Default is 0.0. You might also want to try a value of 30.
4. rpg_flashouterangle=float (0.0-360.0) this is where the brightness starts to fall off until it matches the ambiance. Default is 180. If too wide then try a value of 90.
5. rpg_flashlightred=rgb value for red. Use 1-255. Default is 255.
6. rpg_flashlightgreen=rgb value for green. Use 1-255. Default is 255.
7. rpg_flashlightblue=rgb value for blue. Use 1-255. Default is 255.
You can change the color of the light as shown above.
addendum:
Quote: "I wish to use a script to activate a light called nvisionlight1, when the button 'n' is pressed. what command would i use to activate this light if possible?"
The following was done in vanilla engine.
A night vision type script I used once was where the ambience was either black or very close to black. When the player put's his night vision goggles on (say pressing the "n" key) I change the ambience color to green and I increase the ambiance brightness to a brighter ambiance. If you have FPI EditPad then go to the right of the pad and left click on the "actions" tab. Then right click on the same tab and you will see a drop down list. Find light/ambience and select it. You will then see all the ambience action commands.
Pressing another key or the same key then you would return the ambience to what it was originally.
Using RPG Mod you could make this more interesting by the player needing to pick up the goggles (or flashlight) before they (it) can be used. Then in order to use them the player would have to take them out of his inventory pack. If he doesn't, then pressing "n" will do nothing. But when he has them in his possession then pressing "n" would change the ambience or turn on the flashlight. Actually "f" is hard coded for turning flashlight on and off. However, if you have to set the use of the flashlight to 1 in order to use. It is automatically turned on when used for the first time.
I reject your reality and substitute my own!
Add more adventure to your game -- use
RPG Mod