Flickering Lights

Evocation [darkness, light]
Level: Artificer * 2, Bard * 2, Cleric */Oracle * 2, Inquisitor * 2, Magus * 2, Shaman * 2, Sorcerer */Wizard * 2
Components: V, S, M (a patch of white cloth and a patch of black cloth)
Casting Time: 1 round
Range: medium (100 ft. + 10 ft./level)
Area: contiguous area consisting of one 10-foot cube/level (S)
Duration: 1 round/level
Saving Throw: Will negates
Spell Resistance: yes
  You cause the illumination in the area to seem to flicker erratically, fluctuating between absolute Darkness and blinding brightness. The level of light in the area changes at the start of each creature's turn, as determined by rolling a percentile die and consulting the following table.
d%Illumination level
1-10Supernatural Darkness
11-25Darkness
26-50Dim light
51-90Normal light
91-00Bright light
Even Darkvision can't see through supernatural Darkness (as deeper Darkness). Bright light affects creatures with light blindness or light sensitivity. For the purpose of superseding its effects with higher-level light or Darkness spells, flickering lights counts as a light spell when it increases the ambient light level and a Darkness spell when it decreases the ambient light level.