"Riddled" is an acquired template that can be added to any dragon (referred to hereafter as the base creature).
A riddled dragon uses all the base creature's statistics and special abilities except as noted here.
Size and type:
The creature gains the lawful subtype, losing the chaotic subtype in the process if applicable.
A riddled dragon retains all the special qualities of the base creature and gains those described below.
Analytic Mind (Su): Although the dragon still casts spells as a sorcerer, it uses intelligence rather than charisma to determine its bonus spells and the save DC for all its spells. However, some of its magical power is absorbed into the riddle0complex in its brain so it loses on spell slot of each level.
Fascinated by Riddles (Ex): By succeeding at an opposed knowledge (type the dragon has ranks in) check, an opponent can temporarily fascinate a riddled dragon. The dragon becomes lost in thought and fascinated for 1d10 rounds. A potential or obvious threat breaks the fascination automatically.
Maze Vulnerability (Ex): The dragon's fascination with puzzles makes it more susceptible than normal to maze spells. A riddled dragon must succeed at three dc 20 intelligence checks to escape.
A riddled dragon ginas a +4 bonus on saving throws against mind-affecting spells and effects.
Change from the base creature as follows: Int +4, Wis -4. A riddled dragon's mental acuity increases because of the time it spends solving puzzles, but it becomes more vulnerable to distractions.
Alignment: always lawful(any)