The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Punk on November 17, 2006, 03:16:56 AM

Title: Red Green Blue Brightness System
Post by: Punk on November 17, 2006, 03:16:56 AM
RED GREEN BLUE BRIGHTNESS SYSTEM[/font]

Requires[/font]
1 Switch
4 Variables
5 Common Events (1 maybe if you merged them all)
4 picture slots

What you will need to download for this system.
[/font]
Quote
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2FDemos%2FRGBBrightness%2Fred.png&hash=b361084ebe37ca8fa610f30b055fa19baf96f8d6)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2FDemos%2FRGBBrightness%2Fgreen.png&hash=9da2f7dd3e0859651a949ad1a0c0aa365fe916f0)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2FDemos%2FRGBBrightness%2Fblue.png&hash=94ced073ba6bb6ba137b0f361fe512b57a8887f7)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.photobucket.com%2Falbums%2Fa64%2Fpunkid89%2FDemos%2FRGBBrightness%2Fblack.png&hash=8abb566d922666f6ba259e6fc4854f9cb251192b)

Functions: It adjusts the colors and brightness to your screen.[/font]

RED[/font]
Common Event: Red
Trigger: Parallel
Condition Switch: RGB & Brightness

@>Conditional Branch: Variable [Red] == 0
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 0 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 1
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 17 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 2
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 34 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 3
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 51 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 4
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 68 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 5
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 85 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 6
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 102 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 7
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 119 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 8
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 136 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 9
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 153 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Red] == 10
@>>Show Picture: 47, 'red', Upper Left, (0,0) Opacity: 170 Blending: Add
@>>Branch End


GREEN[/font]
Common Event: Green
Trigger: Parallel
Condition Switch: RGB & Brightness

@>Conditional Branch: Variable [Green] == 0
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 0 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 1
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 17 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 2
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 34 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 3
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 51 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 4
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 68 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 5
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 85 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 6
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 102 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 7
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 119 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 8
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 136 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 9
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 153 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Green] == 10
@>>Show Picture: 48, 'Green', Upper Left, (0,0) Opacity: 170 Blending: Add
@>>Branch End


BLUE[/font]
Common Event: Blue
Trigger: Parallel
Condition Switch: RGB & Brightness

@>Conditional Branch: Variable [Blue] == 0
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 0 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 1
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 17 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 2
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 34 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 3
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 51 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 4
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 68 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 5
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 85 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 6
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 102 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 7
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 119 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 8
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 136 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 9
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 153 Blending: Add
@>>Branch End
@>Conditional Branch: Variable [Blue] == 10
@>>Show Picture: 49, 'Blue', Upper Left, (0,0) Opacity: 170 Blending: Add
@>>Branch End


BRIGHTNESS[/font]
Common Event: Brightness
Trigger: Parallel
Condition Switch: RGB & Brightness

@>Conditional Branch: Variable [Brightness] == 10
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 0 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 9
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 17 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 8
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 34 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 7
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 51 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 6
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 68 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 5
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 85 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 4
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 102 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 3
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 119 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 2
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 136 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 1
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 153 Blending: Normal
@>>Branch End
@>Conditional Branch: Variable [Brightness] == 0
@>>Show Picture: 50, 'Black', Upper Left, (0,0) Opacity: 170 Blending: Normal
@>>Branch End


BOUNDARIES[/font]
Common Event: Boundaries
Trigger: Parallel
Condition Switch: RGB & Brightness

@>Conditional Branch: Variable [Red] Less or equal to -1
@>>Control Variables: [Red] = 0
@>>Branch End
@>Conditional Branch: Variable [Red] Great or equal to 11
@>>Control Variables: [Red] = 10
@>>Branch End
@>Conditional Branch: Variable [Green] Less or equal to -1
@>>Control Variables: [Green] = 0
@>>Branch End
@>Conditional Branch: Variable [Green] Great or equal to 11
@>>Control Variables: [Green] = 10
@>>Branch End
@>Conditional Branch: Variable [Blue] Less or equal to -1
@>>Control Variables: [Blue] = 0
@>>Branch End
@>Conditional Branch: Variable [Blue] Great or equal to 11
@>>Control Variables: [Blue] = 10
@>>Branch End
@>Conditional Branch: Variable [Brightness] Less or equal to -1
@>>Control Variables: [Brightness] = 0
@>>Branch End
@>Conditional Branch: Variable [Brightness] Great or equal to 11
@>>Control Variables: [Brightness] = 10
@>>Branch End
Title: Re: Red Green Blue Brightness System
Post by: Blizzard on November 17, 2006, 09:18:53 AM
Are you being serious? There is a "Tint screen" event command that does exactly the same. You can even adjust the saturation and the transition time.
Title: Re: Red Green Blue Brightness System
Post by: Winged on November 17, 2006, 10:39:17 AM
Bliz is right, but...some people like long events  :lol:?

~Winged
Title: Re: Red Green Blue Brightness System
Post by: Blizzard on November 17, 2006, 11:14:49 AM
Lol, pwnt.
Title: Re: Red Green Blue Brightness System
Post by: Winged on November 17, 2006, 11:26:52 AM
Don't be too harsh now, he did spend sometime making this, lets give him some good comments on it....great find, its a great start to eventing!

~Winged
Title: Re: Red Green Blue Brightness System
Post by: Blizzard on November 17, 2006, 11:39:33 AM
Lol, I think it is uneccesary, because these images take HDD space, so they make the game bigger. Also, showing 4 images aka "pictures" with a size of 640x480 will increase the lag dramatically.
Title: Re: Red Green Blue Brightness System
Post by: Winged on November 17, 2006, 11:56:33 AM
Well it would of taken me time to figure this out, some encouragement would be nice to a new member  ;D

~Winged
Title: Re: Red Green Blue Brightness System
Post by: &&&&&&&&&&&&& on November 17, 2006, 03:17:08 PM
good job you get a cookie.  ::)
Title: Re: Red Green Blue Brightness System
Post by: Punk on November 18, 2006, 02:20:28 AM
It was meant to be used as a way of adjusting the colors without getting in the way of the tint screen command and/or event based systems and scripts that utilize the tint screen command.

The user was supposed to create some sort of an event based option menu that allows players to adjust amount of red, green, blue and brightness. If the player gets out of the option menu, that is when the RGBB system switch isn't needed.

Pretty much the user has to create the RGBB option menu. In that RGBB option menu, the creator has to turn the RGB & Brightness switch on. Then when the player leaves the option menu, you can turn off the switch.

(You can find these kinds of RGB & Brightness like systems in video games like the Tony Hawk video games or Mortal Kombat.)
Title: Re: Red Green Blue Brightness System
Post by: Blizzard on November 20, 2006, 11:13:25 AM
Ah, I see. Yes, that would make some sense. Nice work. :)
Title: Re: Red Green Blue Brightness System
Post by: Winged on November 21, 2006, 06:33:03 AM
I only about half get it, but it seems like there was a pupose of this, sorry for the mistake, I'm not really a event person  :-[

~Winged
Title: Re: Red Green Blue Brightness System
Post by: Punk on November 24, 2006, 03:38:23 AM
Hmm, ok. :)