Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPS Creator X10 / X10 Flashlight Kit (free..of course)

Author
Message
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 14th Aug 2011 02:46 Edited at: 14th Aug 2011 03:36
Hi all,

This is an extension of the original script by S4REAL (and, no, we are not related ).

This kit includes several colors of flashlights, corrected readme file, and some updated scripting terminology. But all the credit goes to S4REAL.

Place a flashlight script into the "main" of a trigger zone. YOU MUST PLACE AT LEAST ONE STATIC LIGHT IN YOUR SCENE EVEN IF IT HAS A RANGE OF "1" AND IS BLACK. You should also set your ambient light level to "0" or it will look really weird when you use the flash light (i.e. the script controls the ambient light levels and it will set them to "0" when the user turns the flash light off).

You can alter the intensity of the light by changing this in the script: "ambience=40" to a higher value equal to or less than "100"
You can change the color of the flash light using ambiencered, ambienceblue, and ambiencegreen. You can achieve any RGB value you desire by setting those parameters.

Keystroke "f" turns the light on and off.

THis script was originally written by S4REAL but was extended by me, SREALIST, and I will now assume maintainence of the scripts. You can, of course, email me if you need any help.

Download:http://dl.dropbox.com/u/2876662/x10_Flashlights.zip

White light:


Yellow light:


Aqua light:


Red light:


Purple light:


Green light:


Blue light:
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 14th Aug 2011 03:41 Edited at: 14th Aug 2011 04:18
For a nice and easy guide to RGB color values see this site:

http://www.tayloredmktg.com/rgb/













Le Shorte
14
Years of Service
User Offline
Joined: 6th Apr 2009
Location: Wisconsin
Posted: 14th Aug 2011 07:48
Looks great! Downloading now.

Cheesehead for life.
ThoughtWire Software
13
Years of Service
User Offline
Joined: 10th Aug 2010
Location: Inside your fridge, drinking your milk.
Posted: 14th Aug 2011 11:40
Very good! Thanks! Great work as usual.

[center]

The Next
Web Engineer
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 14th Aug 2011 12:12
This is a very nice addition, will be useful I'm sure.

Mystic Mod - Putting the fear back into sliced bread since 4th May 2010
Windows 7 Pro, AMD Phenom II X4 3.4Ghz, 8GB DDR3, ATI Radeon HD 4770 1GB, 2TB RAID-0 Hard disk
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 15th Aug 2011 00:19
Thank guys! I'm gonna try to start adding some of these things to the Google docs. I also started a wikispaces page but have not added anything to it yet.

Heh, honestly, I've forgotten how to do some of the things I've figured out in the past. I'm sure we all have, so let's all do what we can to documenting our discoveries. When I have some more substance to the wikispaces page I will send out invites so everyone can edit it.

I realize that it is a bit redundant since there's already the google doc but redundancy is not a bad thing.
science boy
15
Years of Service
User Offline
Joined: 3rd Oct 2008
Location:
Posted: 16th Aug 2011 02:22
awesomely done, cheers srealist, no longer am i having to use muzzleflash for my light spells although i may use both, as the light spell gives a kind of strobing effect and could be a wand of broken light spell or something lol.


again many thanks dude

an unquenchable thirst for knowledge of game creation!!!
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 16th Aug 2011 07:49
Excellent! That's what it's all about. This stuff is only as useful as it is used. And there's no reason to make it if it can't help The Wrecking Crew. Maybe if I just keep saying that name it will stick.
X Games
16
Years of Service
User Offline
Joined: 8th May 2007
Location: World Wide Web
Posted: 16th Aug 2011 11:09
very useful thanks

srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 18th Aug 2011 09:15
Thank you and I hope you and others find it useful.
Melvin
12
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 20th Aug 2011 20:06
How do I activate the flashlight after picking up an object?
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 20th Aug 2011 21:48 Edited at: 20th Aug 2011 21:50
Hi Melvin,

The quickest way to do this is to use two trigger zones that you will place directly on top of the pick up item.

Name one trigger zone "flashlight" and set its main FPI script to be:


Then place another trigger zone directly on top of it and change its main fpi to plrinzoneactivateused.fpi. In the "ifused" slot type "flashlight".

This will absolutely work. Something to know about pick up items: once the pickup action is executed, the item is destroyed and no other scripting commands will execute. If it were not for that factor, I would've made the kit as a pick up flashlight but I wasn't able to come up with a work around. I tried using runfpi=x in the pickup script but that then kills the current script, meaning the item does not get picked up.

Anyway, the approach I've described above works quite well so I think that is the best way to go.

Lemme know if you have any problems getting it to work and I'm here to help.

Edit: I used the white light in my script here but you can do this with any color of light by simply setting the ambiencered, ambienceblue, and ambiencegreen actions as I describe in the first post. Just FYI.
budokaiman
FPSC Tool Maker
14
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 20th Aug 2011 21:58
Quote: "I tried using runfpi=x in the pickup script but that then kills the current script, meaning the item does not get picked up."

Should I add a "runfpinokill" action to MM, so it will run the new script without killing the current one?


Be yourself, but make sure you don't sound like a dying sheep.
srealist
13
Years of Service
User Offline
Joined: 18th Dec 2010
Location: Orlando, Florida, USA
Posted: 20th Aug 2011 22:01
Quote: "Should I add a "runfpinokill" action to MM, so it will run the new script without killing the current one?"


Oh! Yes, please!
Melvin
12
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 20th Aug 2011 22:20
Great! It's work. Thanks very much!
Gencheff
13
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 22nd Aug 2011 20:20
Nice to see people porting work from the X9 sections to X10.
There really is no need for the color charts you posted.
Just use this link http://www.colorpicker.com/

Samotnijat vylk nasred gorata.
-3D,2D Artist,Animator,Web developer and Programmer.

Login to post a reply

Server time is: 2024-03-29 05:16:07
Your offset time is: 2024-03-29 05:16:07