Difference between revisions of "Color"

From PotionEmpire Wiki
Jump to: navigation, search
(Created page with "[size=150][b]Colors System[/b][/size] Here are all the information about how to mix colors and how to obtain the desired color when making a potion. The parser check all the c...")
 
 
(18 intermediate revisions by one user not shown)
Line 1: Line 1:
−
[size=150][b]Colors System[/b][/size]
+
The [[ingredients]], and therefore the [[potions]] you can make, can have 8 colors: https://www.potionempire.illimitron.com/ico/colori/black.png'''black''', https://www.potionempire.illimitron.com/ico/colori/white.png'''white''', https://www.potionempire.illimitron.com/ico/colori/red.png'''red''', https://www.potionempire.illimitron.com/ico/colori/blue.png'''blue''', https://www.potionempire.illimitron.com/ico/colori/yellow.png'''yellow''', https://www.potionempire.illimitron.com/ico/colori/orange.png'''orange''', https://www.potionempire.illimitron.com/ico/colori/green.png'''green''' and https://www.potionempire.illimitron.com/ico/colori/purple.png'''purple'''. When mixing two or more different colors, you must keep in mind that:
−
Here are all the information about how to mix colors and how to obtain the desired color when making a potion. The parser check all the cobinations for the used colors and returns the resulting color using the following rules:
+
  
−
[b]GENERAL RULES[/b]
+
* If more than '''4''' ingredients in the mix has an extract of '''different colors''' the result will be '''black'''.
−
[list]If at least 1/3 of the ingredients used has a [b]black[/b] extract the result will be [b]black[/b].
+
* When mixing more than 2 ingredients, the most recurring combination result will be taken as valid. If there is no most recurring combination, the results will be combined again.
−
If more then 4 ingredients has an extract of a [b]different color[/b] the result will be [b]black[/b].
+
−
When mixing more then 2 ingredients, the most recurring color result will be taken as valid[/list]
+
  
−
[b]MIXING RULES[/b]
+
== Combination results ==
 +
'''Black'''
 +
* +  any color  = black
  
−
[b]Black[/b]
+
'''Red'''
−
+anything  = black
+
* + red      = red
 +
* +  blue      = purple
 +
* +  yellow = orange
 +
* +  purple = red
 +
* +  orange = red
 +
* +  green = green
  
−
[b]Red[/b]
+
'''Blue'''
−
+white = red
+
* + blue      = blue
−
+blue         = purple
+
* + yellow = green
−
+yellow = orange
+
* + purple = blue
−
+purple = red
+
* + orange = purple
−
+orange = red
+
* + green = blue
−
+green = green
+
  
−
[b]Blue[/b]
+
'''Yellow'''
−
+white = blue
+
* + yellow      = yellow
−
+yellow = green
+
* + purple = orange
−
+purple = blue
+
* + orange = orange
−
+orange = purple
+
* + green = green
−
+green = blue
+
  
−
[b]Yellow[/b]
+
'''Purple'''
−
+white = yellow
+
* + purple      = purple
−
+purple = orange
+
* + orange = red
−
+orange = orange
+
* + green = green
−
+green = green
+
  
−
[b]Purple[/b]
+
'''Orange'''
−
+white = purple
+
* + orange      = orange
−
+orange = red
+
* + green = green
−
+green = green
+
  
−
[b]Orange[/b]
+
'''Green'''
−
+white = orange
+
* + green       = green
−
+green = green
+
  
−
[b]Green[/b]
+
'''White'''
−
+white = green
+
* + white       = white
 +
* + any color    =      that color
  
−
[b]EXAMPLE[/b]
+
== Example ==
 
Lets say we are mixing 4 ingredients and their extract is respectively blue, yellow, orange and white. The parser will do the following operations:
 
Lets say we are mixing 4 ingredients and their extract is respectively blue, yellow, orange and white. The parser will do the following operations:
  
−
blue+yellow = [i]green[/i]
+
* blue + yellow = green
−
blue+orange= [i]purple[/i]
+
* blue + orange = purple
−
blue+ white = [i]blue[/i]
+
* blue + white = blue
−
yellow+orange= [i]orange[/i]
+
* yellow + orange = orange
−
yellow+white= [i]yellow[/i]
+
* yellow + white = yellow
−
orange+white= [i]orange[/i]
+
* orange + white = orange
  
−
We have the following occurrences:
+
The most recurrent combination is '''orange''', so that will be the resulting color of the potion.
−
green= [i]1[/i]
+
−
purple= [i]1[/i]
+
−
blue= [i]1[/i]
+
−
yellow= [i]1[/i]
+
−
[u]orange= [i]2[/i][/u]
+
−
 
+
−
The most recurrent is [b]orange[/b] so this will be the final result.
+

Latest revision as of 10:44, 3 June 2021

The ingredients, and therefore the potions you can make, can have 8 colors: black.pngblack, white.pngwhite, red.pngred, blue.pngblue, yellow.pngyellow, orange.pngorange, green.pnggreen and purple.pngpurple. When mixing two or more different colors, you must keep in mind that:

  • If more than 4 ingredients in the mix has an extract of different colors the result will be black.
  • When mixing more than 2 ingredients, the most recurring combination result will be taken as valid. If there is no most recurring combination, the results will be combined again.

Combination results

Black

  • + any color = black

Red

  • + red = red
  • + blue = purple
  • + yellow = orange
  • + purple = red
  • + orange = red
  • + green = green

Blue

  • + blue = blue
  • + yellow = green
  • + purple = blue
  • + orange = purple
  • + green = blue

Yellow

  • + yellow = yellow
  • + purple = orange
  • + orange = orange
  • + green = green

Purple

  • + purple = purple
  • + orange = red
  • + green = green

Orange

  • + orange = orange
  • + green = green

Green

  • + green = green

White

  • + white = white
  • + any color = that color

Example

Lets say we are mixing 4 ingredients and their extract is respectively blue, yellow, orange and white. The parser will do the following operations:

  • blue + yellow = green
  • blue + orange = purple
  • blue + white = blue
  • yellow + orange = orange
  • yellow + white = yellow
  • orange + white = orange

The most recurrent combination is orange, so that will be the resulting color of the potion.