Shadowrun Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Front Page
Editor Overview
Community Portal
Recent changes
Random page
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Shadowrun Wiki
774
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Front Page
Editor Overview
Community Portal
Recent changes
Random page
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Lighting Scripts
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Lighting Scripts
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Formatting Light Scripts == The formatting for light scripts needs to be exact. If it is not entered correctly the script will not work. As mentioned above we can control if a light loops or not, duration of transition and color value. First let's explore a light script with a single grouping with both color input options and then finish up with how to handle multiple groupings in a light script after that. Below is an example of a light script using Hexadecimal formatting. Note how we use a colon to separate the given elements of a light script grouping. [[File:LightScript1.PNG]] Now we will break down the three parts shown above and explain what they do. === Transition types === First the word "cubic". As mentioned above we can control how the transitions work and this where we tell the editor to transition from its current color to the color in the light script. There are four different types of common transitions (which technically speaking are interpolations). {| class="wikitable" ! Transition !! Definition |- || linear || Directly transitions between values |- || cubic || Shift more gradually in out of values as the transition point gets closer, this will provides the most natural looking shift |- || hard || An immediate switch between the two with no blending |- || bounce || Bounces around against the ceiling of the new value. Provides some irregularity as the new value is approached |- |} ===Duration=== In the above example "5" is the duration. This defines the number of seconds over which the light transitions to its new value. ===Color Value=== In the above example our Color Value is 00FF00 which is the new color in hexadecimal format. If we wanted to write the same script in R,G,B,A format we would do it like this: : <code>(cubic:5:255,255,0,255)</code> ===Groupings=== Groupings are additional transition points you would like the light to transition through. If only one grouping is present then the light will transition from its existing values as set in its editor properties to the new value indicated in the light script. There is an example below which would transition the light from its original value to the first group in the script and then on to the second. You can have as many groupings in a light script as you would like. The semicolon at the end of the color value marks the end of that color grouping. The space between the color value and the next grouping is optional but is recommend to improve readability. : <code>cubic:5:00FF00; cubic:5:8E0000</code> ===Looping=== To make a transition repeat simply add the word loop with a semicolon at the beginning of the script. You must have more than one grouping in the script for looping to function, such as in the example below. : <code>loop; cubic:5:00FF00; cubic:5:8E0000</code> Note that there is a semicolon after loop, but once again the space after the semicolon is optional.
Summary:
Please note that all contributions to the Shadowrun Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab