OitP (One in the Palace)

Discussion in 'Theme Development' started by Karp Karpity, Nov 17, 2013.

  1. Karp Karpity

    Karp Karpity Active Member

    Joined:
    Sep 13, 2012
    Messages:
    152
    Likes Received:
    29
    PO Trainer Name:
    Karp Karpity
    Here's the code for my new theme. It's non-peak
    {
    "name": "OITP",
    "altname": "One in the Palace",
    "author": "Karp Karpity",
    "summary": "This is a game intended for 3 to 12 people. There is an assassin that when lynched has one night-kill. If the assassin targets a role other than the king, he loses. But if it targets the king, it wins. The villagers don't want to say the king's name out loud because then the assassin will know who to kill. The Mafias just have a shared kill, and win if the assassin + the king are dead. They can't kill the king. There is no day-time because no standby actions. P.M. Karp Karpity for suggestions and hints.",
    "sides": [
    {
    "side": "village",
    "translation": "King's Forces",
    "winmsg": "~Players~ have successfully defended their king and palace from assassins and the mafias!"
    },
    {
    "side": "mafia",
    "translation": "Mafia",
    "winmsg": "~Players~ have watched the downfall of the assassin and king to win the rights of the castle."
    },
    {
    "side": "vengeful",
    "translation": "Assassin",
    "winmsg": "~Players~ have taken over the castle by killing the king. They can do whatever the hell they want now."
    }
    ],
    "roles": [
    {
    "role": "villager",
    "translation": "Servant",
    "side": "village",
    "help": "You know the king from the start because you come to him everyday. Use your vote of 1 to help get rid of the mafias and the assassin in the palace. If you vote the assassin, he is vengeful and might kill the kill. So don't say the king's name out loud.",
    "info": "It knows the king from the start. It has a 1 vote. If the assassin is voted, it will become vengeful. If it kills the king next night then it wins unless mafia are still out there. It doesn't want to say the king's name out loud.",
    "actions": {
    "startup": {
    "revealRole": "king"
    }
    }
    },
    {
    "role": "king",
    "translation": "King",
    "side": "village",
    "help": "You are revealed to the mafias and the servants of the palace. Try to blend in with the villagers. If you vote the assassin, and he vengefully kills you then your side loses. If you're voted, all the servants die.",
    "info": "It's revealed to the mafias and servants of the palace. It wants to blend in with the servants. If it votes the assassin, and it vengefully kills the king then the village loses. If it's voted, all the servants die.",
    "actions": {
    "kill": {
    "mode": {
    "ignore": [
    "mafia"
    ]
    }
    },
    "onDeath": {
    "killRoles": [
    "villager"
    ]
    }
    }
    },
    {
    "role": "mafia",
    "translation": "Mafia",
    "side": "mafia",
    "help": "You know the king from the start, but can't kill it. Since it took you a long time to get ready to raid the castle, you can't kill until night 2. The kill is shared with your team-mate. You win if the assassin, and servants + king is dead.",
    "info": "Knows the king from the start, but it can't kill it. It can't kill until night 2 because it took a long time to get ready to raid the palace. The kill is shared with its team-mate. It wins if the assassan and king + servants are dead.",
    "actions": {
    "startup": {
    "revealRole": "king"
    },
    "night": {
    "kill": {
    "target": "AnyButTeam",
    "common": "Team",
    "priority": 18,
    "broadcast": "team"
    }
    },
    "startup": "team-reveal-with-roles"
    }
    },
    {
    "role": "assassin",
    "translation": "Assassin",
    "side": "vengeful",
    "help": "If you're voted, then you will have a chance to kill the king. If you kill the king then you win unless mafia are still out raiding the palace. You can be killed by the mafia, so watch out. If you aren't voted, then you will have a vote of 1.",
    "info": "If it's voted, then it will have a chance to kill the king. If it kills the king, then it will win unless mafia are still raiding the palace. It can be killed by the mafia, so it might want to be careful. If it isn't voted, it will have a vote of 1.",
    "actions": {
    "lynch": {
    "convertTo": "vengeful",
    "convertmsg": "~Self~ was found out to be the ~Old~, and was ordered to leave immediately. Unfortunately, that gave the ~New~ one last night-kill."
    }
    }
    },
    {
    "role": "vengeful",
    "translation": "Assassin (vengeful)",
    "side": "vengeful",
    "help": "Use /kill [name] during the night to try to kill the king. The mafia can't kill you this night, but you will still die this night.",
    "info": "It can use its vengeful /kill to try to assassinate the king. It will die in the night, but the mafia had nothing to do with it dying.",
    "actions": {
    "initialCondition": {
    "poison": {
    "count": -1,
    "poisonDeadMessage": "You were brutally murdered by the king's guards!"
    }
    },
    "kill": {
    "mode": {
    "ignore": [
    "mafia"
    ]
    }
    },
    "night": {
    "kill": {
    "target": "AnyButSelf",
    "common": "Self",
    "priority": 1,
    "restrict": [
    "kill"
    ],
    "broadcast": "all",
    "broadcastmsg": "The vengeful assassin has chosen to kill... ~Target~!"
    }
    }
    }
    }
    ],
    "roles1": [
    "king",
    "villager",
    "assassin",
    "villager",
    "villager"
    ],
    "roles2": [
    "king",
    "villager",
    "villager",
    "assassin",
    "villager",
    "mafia",
    "villager",
    "villager",
    "mafia",
    "villager",
    "villager",
    "mafia"
    ],
    "villageCantLoseRoles": [
    "king"
    ],
    "killmsg": "±Palace Guard: ~Player~ (~Role~) was shot in the back by the mafia, and bled to death!",
    "killusermsg": "When you weren't paying attention, the mafia shot you and you bled to death.",
    "lynchmsg": "~Player~ was found out to be ~Role~, and was banished from the palace forever!",
    "border": "*************************************************",
    "minplayers": 3,
    "ticks": {
    "standby": 5,
    "night": 30
    }
    }

    Pastebin

    Roles
    Villager- Knows the king from the start and has a 1 vote.
    King- the mafias and villagers know him, and has a 1 vote.

    Mafia- Shared night-kill that can't kill the king. Knows the king from the start. Has a 1 vote. Wins if the assassin and village is dead.

    Assassin- Has a 1 vote, and if lynched turns into vengeful. Wins if the mafia, and the village is dead.
    Vengeful Assassin- can /kill 1 person during the night. Dies the same night. Wins if the village, and mafia are dead.

    Priority
    [1] Assassin (vengeful) (Kill)
    [18] Mafia (Kill)

    Sides
    The village consists of the servants and the king. The mafia consists of the mafias. The assassin is alone.

    Spawn
    List 1 (3~5 players):

    King (king)
    Servant (villager)
    Assassin (assassin)
    Servant (villager)
    Servant (villager)


    List 2 (6~12 players):

    King (king)
    Servant (villager)
    Servant (villager)
    Assassin (assassin)
    Servant (villager)
    Mafia (mafia)
    Servant (villager)
    Servant (villager)
    Mafia (mafia)
    Servant (villager)
    Servant (villager)
    Mafia (mafia)

    Why my theme is different?
    It came from the rtm, and I'm trying to make it work. The assassin if lynched trys to hit the king. The mafias try to kill the villagers and assassin so they win. The village is trying to vote out the assassin, and mafias so they live in peace.
     
  2. Windblown

    Windblown sable knight

    Joined:
    Aug 12, 2012
    Messages:
    841
    Likes Received:
    169
    In roles1, all villagers can just PM the king for an easy town win. This can happen in roles 2 as well until it comes to just Mafia v villagers + king which is a bit too much like SI/vanilla.

    I really like AITP though, so I'll try to figure out a way to help this convert to server side some time hopefully.
     
  3. Karp Karpity

    Karp Karpity Active Member

    Joined:
    Sep 13, 2012
    Messages:
    152
    Likes Received:
    29
    PO Trainer Name:
    Karp Karpity
    kk windblown i will see what i can do
     
  4. Sky Sentinel

    Sky Sentinel You see?

    Joined:
    Oct 21, 2012
    Messages:
    814
    Likes Received:
    24
    PO Trainer Name:
    Sky Sentinel
    i've been trying to think of how the hell to make this theme work for ages. it doesn't seem like it will.

    And, actually, if you can find some way to make it work, there would be no reason to reject it lol
     
  5. Roild

    Roild Member

    Joined:
    Jul 21, 2012
    Messages:
    861
    Likes Received:
    11
    PO Trainer Name:
    Roild
    It was tried. "Assassins" in the palace has to be NOC, but impossible with server setup. So any theme made will be required to have OC context. (No outside contact/outside contact).
     
  6. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    I already made a theme like this a long time ago (Assassins in the Palace) and it didn't work because its meant for NOC. There's no way to adapt it while holding the concept the same. I've already tried.