1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Guest, due to a lack of interest, playerbase, and general desire to continue, PO will hereby cease our separate tiering and adopt Smogon tiers for SM. More information and updates here.

    Dismiss Notice

Please edit and make this right!!!

Discussion in 'Server and Client Scripting' started by nannu, May 26, 2011.

  1. nannu

    nannu New Member

    Joined:
    May 26, 2011
    Messages:
    3
    Likes Received:
    0
    :confused:
    Code (text):
    1. {
    2. "name": "Little Fighter",
    3. "sides": [
    4. { "side": "Assasin", "translation": "Rudolf"
    5. },
    6. { "side": "Destroyer", "translation": "Louis-Ex"
    7. },
    8. { "side": "Hunter", "translation": "Hunter"
    9. },
    10. { "side": "Good People", "translation": "Davis"
    11. },
    12. { "side": "Murderer", "translation": "Julian"
    13. },
    14. { "side": "Killer", "translation": "Firzen"
    15. }
    16. ],
    17. "roles": [{
    18. "role": "good guy",
    19. "translation": "Davis",
    20. "side": "Good People",
    21. "help": "You dont have any special commands during the night! Vote to remove people in the day!",
    22. "actions": {}
    23. }, {
    24. "role": "oversee",
    25. "translation": "Monk",
    26. "side": "Good People",
    27. "help": "Type /Oversee [name] to find his/her identity!",
    28. "actions": { "night": {"inspect": {"target": "AnyButSelf", "common": "Self", "priority": 30} } }
    29. }, {
    30. "role": "protection",
    31. "translation": "Henry",
    32. "side": "Good People",
    33. "help": "Type /Protect [name] to protect someone!",
    34. "actions": { "night": {"protect": {"target": "AnyButSelf", "common": "Role", "priority": 5, "broadcast": "role"} },
    35. "startup": "role-reveal"}
    36. }, {
    37. "role": "Assasination",
    38. "translation": "Rudolf",
    39. "side": "Assasin",
    40. "help": "Type /Assasin [name] to assasinate someone!",
    41. "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 11, "broadcast": "team"} },
    42. "startup": "team-reveal"}
    43. }, {
    44. "role": "Murdering",
    45. "translation": "Julian",
    46. "side": "Murderer",
    47. "help": "Type /Kill [name] to kill someone!",
    48. "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 10} } }
    49. }, {
    50. "role": "distracting",
    51. "translation": "Jan",
    52. "side": "Good People",
    53. "help": "Type /Distract [name] to distract someone! Vote to remove people in the day!",
    54. "actions": { "night": {"distract": {"target": "AnyButSelf", "common": "Self", "priority": 1} } }
    55. }, {
    56. "role": "Helpless",
    57. "translation": "Jack",
    58. "side": "Good People",
    59. "help": "You dont have any special commands during the night! Vote to remove people in the day! (your vote counts as 2)",
    60. "actions": { "vote": 2 }
    61. }, {
    62. "role": "spy",
    63. "translation": "Woody",
    64. "side": "Good People",
    65. "help": "You can find out who is going to get killed next!(no command for this ability) Vote to remove people in the day!",
    66. "actions": { "hax": {"kill": { "revealTeam": 0.33, "revealPlayer": 0.1} } }
    67. }, {
    68. "role": "kill",
    69. "translation": "Firzen",
    70. "side": "Killer",
    71. "help": "Type /Kill [name] to kill someone! You can kill 2 targets, Type /kill [name2] again to select your second target!",
    72. "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 20, "limit": 2} },
    73. "distract": {"mode": "ChangeTarget", "Janmsg": "You tried to seduce the Godfather, you just were killed!", "msg": "The ~Distracter~ came to you last night! You killed her instead!"},
    74. "avoidHax": ["kill"] }
    75. }, {
    76. "role": "patrol",
    77. "translation": "Knight",
    78. "side": "Good People",
    79. "help": "Type /Kill [name] to kill someone!(dont kill the good people!)",
    80. "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 19} } }
    81. }, {
    82. "role": "destroy",
    83. "translation": "Louis-Ex",
    84. "side": "Destroyer",
    85. "help": "Type /Kill [name] to kill someone!",
    86. "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 12, "broadcast": "team"} },
    87. "startup": "team-reveal"}
    88. }, {
    89. "role": "hunt",
    90. "translation": "Hunter",
    91. "side": "Hunter",
    92. "help": "Type /Kill [name] to kill someone!",
    93. "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 11, "broadcast": "team"} },
    94. "startup": "team-reveal"}
    95. }, {
    96. "role": "destroy",
    97. "translation": "John",
    98. "side": "Destroyer",
    99. "help": "You dont have any special commands during the night! You are sided Destroyer. Vote to remove people in the day!Hey you will  be revealed as an Assasin",
    100. "actions": { "inspect": {"revealAs": "Assasin"} }
    101. "startup": "team-reveal"}
    102. }, {
    103. "role": "hunt",
    104. "translation": "Dennis",
    105. "side": "Hunter",
    106. "help": "You dont have any special commands during the night! You are sided Hunter. Vote to remove people in the day!",
    107. "actions": { "inspect": {"revealAs": "villager"},
    108. "startup": "team-reveal"}
    109. }, {
    110. "role": "destroyboss",
    111. "translation": "Firen",
    112. "side": "Destroyer",
    113. "help": "Type /Kill [name] to kill someone! You can't be distracted!",
    114. "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 12, "broadcast": "team"} },
    115. "distract": {"mode": "ignore"},
    116. "startup": "team-reveal"}
    117. }, {
    118. "role": "huntboss",
    119. "translation": "Freeze",
    120. "side": "Hunter",
    121. "help": "Type /Kill [name] to kill someone! You can't be distracted!",
    122. "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 11, "broadcast": "team"} },
    123. "distract": {"mode": "ignore"},
    124. "startup": "team-reveal"}
    125. }, {
    126. "role": "patrol",
    127. "translation": "Deep",
    128. "side": "Good People",
    129. "help": "Type /Kill [name] during the day phase to kill someone! You will be revealed when you kill, so make wise choices whether you wan to attack or not! You are allied with the Good people.",
    130. "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "You can kill now using /kill [name] :",
    131. "killmsg": "~Self~ pulls out a sword and strikes it on the ~Target~'s neck!"} } }
    132. }, {
    133. "role": "good guy",
    134. "translation": "Mark",
    135. "side": "Good People",
    136. "help": "You dont have any special commands during the night! Vote to remove people in the day! Oh, and overseer sees you as an Assasin",
    137. "actions": { "inspect": {"revealAs": "Assasin"} }
    138. }],
    139.  
    140.  
    141. "roles1": ["protection", "Assasination", "oversee", "Murdering", "distracting", "good guy", "Assasination",
    142. "good guy", "good guy", "good guy", "helpless"],
    143. "roles2": ["protection", "destroy", "destroy", "oversee", "distracting", "good guy", "hunt",
    144. "hunt", "good guy", "good guy", "good guy", "helpless", "good guy", "spy", "good guy",
    145. "good guy", "good guy", "destroyboss", "good guy", "patrol", "good guy", "kill",
    146. "huntboss", "patrol", "good guy", "good guy", "Murderer", "destroy",
    147. "hunt", "protection"],
    148. "Good PeopleCantLoseRoles": ["helpless", "patrol", "patrol"]
    149. }
    150.  
    151.  
    152.  
    153.  
     
  2. nannu

    nannu New Member

    Joined:
    May 26, 2011
    Messages:
    3
    Likes Received:
    0
    Please dont delete!!!
    Someone edit this!!!!
     
  3. yiran

    yiran Become a Magical Girl!

    Joined:
    Oct 21, 2010
    Messages:
    1,695
    Likes Received:
    0
    You probably should PM Lamperi with it. He's really good at scripting, both mafia related and non-mafia related.
     
  4. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,645
    Likes Received:
    8
    But I don't want to fix people's themes. Otherwise I have no time to do anything else.

    Thanks but no thanks.
     
  5. ChaosLucas

    ChaosLucas New Member

    Joined:
    May 15, 2011
    Messages:
    4
    Likes Received:
    0
    HTML:
    1. JSONLINT.com
    Go there, and copy your text. You have some extra commas, and I think a reveal is out of place, and Also, for the /oversee, and what not, what you do is:
    "actions": {
    "whenevar": {
    "Replacement for action( so if you want "/eat", you put eat here": {
    "target": "Whocares",
    "common": "Maybe",
    "priority": XX,
    "command": "The actual action. So if you want eat to function like kill, you put kill here "
    }
    }
    }
    However, IMO, there are too many themes that are little more than default clones. Might I suggest severely altering this one, until it no longer feels like a clone. Dont just adjust spy hax, or mayor vote. Hybrid roles work well. In my theme, SSBB(note, if others also claim to have made SSBB, they are my alts.), Messing around with vote counts strategically(I have a role where he knows all others of that role, but has a vote of -1), as well as hybrid role(I have one which is pretty lady+vigilante), help. In FF for example, one mafia has a role which can protect ,while the other has a role which can distract. If there is little noticeable difference between it and normal, no one is going to play it, and its pretty much a waste of space that people will get annoyed at you if you start it.