Mathematics
v1.0.1by erikCustomDifficulty:
"Open Script Tool" pre-loads this script's characters directly on script.bloodontheclocktower.com, the same way it works from other script libraries.
Characters
Townsfolk
EmpathEach night, you learn how many of your 2 alive neighbours are evil.
Snake CharmerEach night, choose an alive player: a chosen Demon swaps characters & alignments with you & is then poisoned.
Mathematician

Each night, you learn how many players' abilities worked abnormally (since dawn) due to another character's ability.
MonkEach night*, choose a player (not yourself): they are safe from the Demon tonight.
CourtierOnce per game, at night, choose a character: they are drunk for 3 nights & 3 days.
Magician

The Demon thinks you are a Minion. Minions think you are a Demon.
Outsider
LunaticYou think you are a Demon, but you are not. The Demon knows who you are & who you choose at night.
RecluseYou might register as evil & as a Minion or Demon, even if dead.
Minion
SpyEach night, you see the Grimoire. You might register as good & as a Townsfolk or Outsider, even if dead.
MarionetteYou think you are a good character but you are not. The Demon knows who you are. [You neighbour the Demon]
Demon
PukkaEach night, choose a player: they are poisoned. The previously poisoned player dies then becomes healthy.
ImpEach night*, choose a player: they die. If you kill yourself this way, a Minion becomes the Imp.
Fabled & Loric
SentinelThere might be 1 extra or 1 fewer Outsider in play.
DjinnUse the Djinn's special rule. All players know what it is.
Night order
First night
- 1DDusk
Start the Night Phase.
- 2MMinion Info
If there are 7 or more players, wake all Minions: Show the THIS IS THE DEMON token. Point to the Demon. Show THESE ARE YOUR MINIONS token. Point to the other Minions.
- 3DDemon Info
If there are 7 or more players, wake the Demon. Show the Demon token. Show all Minions. Show the THESE CHARACTERS ARE NOT IN PLAY token. Show 3 not-in-play good character tokens.
- 4
Magician - 5
LunaticIf 7 or more players: Show the Lunatic a number of arbitrary 'Minions', players equal to the number of Minions in play. Show 3 character tokens of arbitrary good characters. If the token received by the Lunatic is a Demon that would wake tonight: Allow the Lunatic to do the Demon actions. Place their 'attack' markers. Wake the Demon. Show the Demon’s real character token. Show them the Lunatic player. If the Lunatic attacked players: Show the real demon each marked player. Remove any Lunatic 'attack' markers.
- 6
MarionetteSelect one of the good players next to the Demon and place the Is the Marionette reminder token. Wake the Demon and show them the Marionette.
- 7
CourtierThe Courtier either shows a 'no' head signal, or points to a character on the sheet. If the Courtier used their ability: If that character is in play, that player is drunk.
- 8
Snake CharmerThe Snake Charmer points to a player. If that player is the Demon: swap the Demon and Snake Charmer character and alignments. Wake each player to inform them of their new role and alignment. The new Snake Charmer is poisoned.
- 9
PukkaThe Pukka points to a player. That player is poisoned.
- 10
EmpathShow the finger signal (0, 1, 2) for the number of evil alive neighbours of the Empath.
- 11
SpyShow the Grimoire to the Spy for as long as they need.
- 12
MathematicianShow the hand signal for the number (0, 1, 2, etc.) of players whose ability malfunctioned due to other abilities.
- 13DDawn
Wait for a few seconds. End the Night Phase.
Other nights
- 1DDusk
Start the Night Phase.
- 2
CourtierReduce the remaining number of days the marked player is poisoned. If the Courtier has not yet used their ability: The Courtier either shows a 'no' head signal, or points to a character on the sheet. If the Courtier used their ability: If that character is in play, that player is drunk.
- 3
Snake CharmerThe Snake Charmer points to a player. If that player is the Demon: swap the Demon and Snake Charmer character and alignments. Wake each player to inform them of their new role and alignment. The new Snake Charmer is poisoned.
- 4
MonkThe previously protected player is no longer protected. The Monk points to a player not themself. Mark that player 'Protected'.
- 5
LunaticAllow the Lunatic to do the actions of the Demon. Place their 'attack' markers. If the Lunatic selected players: Wake the Demon. Show the 'attack' marker, then point to each marked player. Remove any Lunatic 'attack' markers.
- 6
ImpThe Imp points to a player. That player dies. If the Imp chose themselves: Replace the character of 1 alive minion with a spare Imp token. Show the 'You are' card, then the Imp token.
- 7
PukkaThe Pukka points to a player. That player is poisoned. The previously poisoned player dies.
- 8
EmpathShow the finger signal (0, 1, 2) for the number of evil neighbours.
- 9
SpyShow the Grimoire to the Spy for as long as they need.
- 10
MathematicianShow the hand signal for the number (0, 1, 2, etc.) of players whose ability malfunctioned due to other abilities.
- 11DDawn
Wait for a few seconds. End the Night Phase.
Sentinel, Djinn don't have night-order data in BOTChub yet — check the printed script or Script Tool for exact placement.
Jinxes

Magician & SpyWhen the Spy sees the Grimoire, the Demon and Magician's character tokens are removed.

Mathematician & LunaticThe Mathematician learns if the Lunatic attacks a different player than the real Demon attacked.

Mathematician & MarionetteThe Mathematician learns if the Marionette's ability yielded false info or failed to work properly.

Magician & MarionetteIf the Magician is alive, the Demon doesn't know which neighbor is the Marionette.