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...")
 
Line 1: Line 1:
[size=150][b]Colors System[/b][/size]
+
The ingredients, and therefore the [[potions]] you can make, can have 8 colors: '''black''', '''white''', '''red''', '''blue''', '''yellow''', '''orange''', '''green''' and '''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 at least 1/3 of the ingredients used has a '''black''' extract, 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].
+
* If more then '''4''' ingredients in the mix has an extract of '''different colors''' the result will be '''black'''.
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.
When mixing more then 2 ingredients, the most recurring color result will be taken as valid[/list]
+
 
+
[b]MIXING RULES[/b]
+
 
+
[b]Black[/b]
+
+anything  = black
+
 
+
[b]Red[/b]
+
+white = red
+
+blue         = purple
+
+yellow = orange
+
+purple = red
+
+orange = red
+
+green = green
+
 
+
[b]Blue[/b]
+
+white = blue
+
+yellow = green
+
+purple = blue
+
+orange = purple
+
+green = blue
+
 
+
[b]Yellow[/b]
+
+white = yellow
+
+purple = orange
+
+orange = orange
+
+green = green
+
 
+
[b]Purple[/b]
+
+white = purple
+
+orange = red
+
+green = green
+
 
+
[b]Orange[/b]
+
+white = orange
+
+green = green
+
 
+
[b]Green[/b]
+
+white = green
+
 
+
[b]EXAMPLE[/b]
+
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+orange= [i]purple[/i]
+
blue+ white = [i]blue[/i]
+
yellow+orange= [i]orange[/i]
+
yellow+white= [i]yellow[/i]
+
orange+white= [i]orange[/i]
+
 
+
We have the following occurrences:
+
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.
+

Revision as of 13:08, 27 May 2014

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

  • If at least 1/3 of the ingredients used has a black extract, the result will be black.
  • If more then 4 ingredients in the mix has an extract of different colors the result will be black.
  • When mixing more then 2 ingredients, the most recurring color result will be taken as valid.