I've been working on this for a few days now, and today I cleaned up the script. Here it is: Spoiler { "name": "WWII", "sides": [ { "side": "mafia", "translation": "Axis Powers" }, { "side": "mafia1", "translation": "European Axis Powers” }, { "side": "mafia2", "translation": "Asian Axis Powers" }, { "side": "village", "translation": "Allies" }, { "side": "werewolf", "translation": "Aliens" }, { "side": "godfather", "translation": "Cockroaches" } ], "roles": [{ "role": "villager1", "translation": "Belgium", "side": "village", "help": "You can’t help being attacked in every war, but you can vote! Might even find out your attackers!", "actions": { "hax": {"kill": { "revealTeam": 0.40, "revealPlayer": 0.05} } } }, { "role": "villager2", "translation": "Poland", "side": "village", "help": "Try not to get invaded on both sides, and vote to your advantage! You are part of the Allies.", "actions": {} }, { "role": "villager3", "translation": "Norway", "side": "village", "help": "Small but vocal, vote away your enemies! You are part of the Allies.", "actions": {} }, { "role": "France", "translation": "Inspector", "side": "village", "help": "You are right in the middle, and can /inspect people to view their roles! You are part of the allies.", "actions": { "night": {"inspect": {"target": "AnyButSelf", "common": "Self", "priority": 30} } } }, { "role": "UK", "translation": "Bodyguard", "side": "village", "help": "Your powerful navy can /protect others! You are part of the Allies.", "actions": { "night": {"protect": {"target": "AnyButSelf", "common": "Role", "priority": 5, "broadcast": "role"} }, {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 11, "broadcast": "team"} }, "startup": "role-reveal"} }, { "role": "mafia0", "translation": "Germany", "side": "mafia", "help": "Your blitzkrieg strategy allows you to /kill one person, twice every night! You are part of the Axis Powers.”, "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 20, "limit": 2} }, "startup": "team-reveal"} }, { "role": "mafia1", "translation": "Japanese", "side": "mafia1", "help": "With your highly trained soldiers, and advanced military technology, you can /kill during the day. Take over Asia, and soon, the rest of the world! You are part of the Axis Powers.”, "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "Your troops are ready, /kill now! :", "killmsg": "Japanese planes start bombing ~Target~, and soon, ~Target is no more!"} } } }, { "role": "mafia1", "translation": "Germany", "side": "mafia1", "help": "Your blitzkrieg strategy allows you to /kill one person, twice every night! You are part of the European Axis Powers”, "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 20, "limit": 2} }, "startup": "team-reveal"} }, { "role": "mafia2", "translation": "Japanese", "side": "mafia2", "help": "With your highly trained soldiers, and advanced military technology, you can /kill during the day. Take over Asia, and soon, the rest of the world! You are part of the Asian Axis Powers.”, "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "Your troops are ready, /kill now! :", "killmsg": "Japanese planes start bombing ~Target~, and soon, ~Target is no more!"} } } }, { "role": "conspirator1", "translation": "Italy", "side": "mafia1", "help": "You are part of the European Axis Powers. Sadly, the only thing you can do is vote.", "actions": { "inspect": {"revealAs": "villager"}, "startup": "team-reveal"} }, { "role": "conspirator2", "translation": "Thailand", "side": "mafia2", "help": "You are part of the Asian Axis Powers. Sadly, the only thing you can do is vote.", "actions": { "inspect": {"revealAs": "villager"}, "startup": "team-reveal"} }, { "role": "mafiaboss1", "translation": "Hitler", "side": "mafia1", "help": "The Führer of Nazi Germany, your evil desire to purify Europe of Jews, and other minorities, allows you to personally /kill twice a night. You are the leader of the European Axis Powers.", "actions": { "night": {"kill": {"target": "AnyButTeam", "common": "Team", "priority": 12, "limit": 2, "broadcast": "team"} }, "distract": {"mode": "ignore"}, "startup": "team-reveal"} }, { "role": "mafiaboss2", "translation": "Hideki Tōjō", "side": "mafia2", "help": "The Prime Minister of Japan, you are the mastermind behind the Japanese army. You can /kill during the day! You are the leader of the Asian Axis Powers.", "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "Your armies are ready to fire, /kill now! :", "killmsg": "Tojo orders his men to fire upon ~Target~, who is no more.”} } } "distract": {"mode": "ignore"}, "startup": "team-reveal"} }, { "role": "werewolf", "translation": "Aliens", "side": "werewolf", "help": "You see Earth plunging into a bloody civil war, and decide to invade at its weakest point! Your lasers can /kill one person during the day, and your ship prevents you from being killed at night! You cannot be distracted from your mission.", "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "Your ship is ready to fire, /kill now! :", "killmsg": "Laser beams fly out of the sky, and vaporize ~Target~!”} } } "avoidHax": ["kill"] } "kill": {"mode": "ignore"}, }, { "role": "hooker", "translation": "USSR", "side": "village", "help": "You can /distract people with your theories of communism! Down with capitalism! Also, your harsh climate prevents you from being killed at night. You are part of the Allies.", "actions": { "night": {"distract": {"target": "AnyButSelf", "common": "Self", "priority": 1} } } "kill": {"mode": "ignore"}, }, { "role": "mayor", "translation": "US", "side": "village", "help": "Your entrance into WWII really helps the Allies, and your vote counts as 4!", "actions": { "vote": 4 } }, { "role": "spy", "translation": "Canada", "side": "village", "help": "You have the uncanny ability to see into the future, and possibly reveal who dies next!", "actions": { "hax": {"kill": { "revealTeam": 0.25, "revealPlayer": 0.25} } } }, { "role": "godfather", "translation": "Cockroaches", "side": "godfather", "help": "Who says the humans rule the world? Unleash your fury at the supposed dominance of humans, enslave the human race, and /kill 1 at a time! Of course, you cannot be killed at night, I mean, how do you even kill a cockroach?", "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 20, } }, "distract": {"mode": "ChangeTarget", "hookermsg": "You try to distract the cockroaches, but it’s no use, they cover your body, and eat you alive!", "msg": "~Distracter~ seemed to be yelling something at you, but you decided to eat them instead."}, "killmsg": "Millions of insects combine to form an ultimate warrior, and destroys ~Target~!"} } } "avoidHax": ["kill"] } "kill": {"mode": "ignore"}, }, { "role": "China", "translation": "Vigilante", "side": "village", "help": "As the most populated country in the world, you will not go down easily! /kill the invading Japanese! You are part of the Allies.", "actions": { "night": {"kill": {"target": "AnyButSelf", "common": "Self", "priority": 19} } } }, { "role": "Australia", "translation": "Samurai", "side": "village", "help": "You have mastered your country’s deadly animals, and can use them to your advantage! /kill one country during the day!, but you will be revealed. ", "actions": { "standby": {"kill": {"target": "AnyButSelf", "msg": "You are ready to strike, /kill now!", "killmsg": "~Self~ unleashes their forces of marsupials, snakes, sharks, and other deadly creatures. ~Target~ is no more.“} } } }, { "role": "miller", "translation": "Greece", "side": "village", "help": "You are on the Allied side, but since you are occupied by Germany, France sees you as in the Axis Powers.", "actions": { "inspect": {"revealAs": "mafia"} } }], "roles1": ["bodyguard", "mafia9", "inspector", "werewolf", "hooker", "villager1", "mafia0", "villager2", "miller", "villager3", "mayor"], "roles2": ["bodyguard", "mafia1", "mafia1", "inspector", "hooker", "villager", "mafia2", "mafia2", "villager", "villager", "villager", "mayor", "villager", "spy", "villager", "villager", "villager", "mafiaboss1", "villager", "vigilante", "villager", "godfather", "mafiaboss2", "samurai", "villager", "villager", "werewolf", "mafia1", "mafia2", "bodyguard"], "villageCantLoseRoles": ["mayor", "vigilante", "samurai"] } [/HIDE] I put a lot of effort into this, and I checked a few times. However, I still get "Error parsing JSON JSON-Error: - Syntax error, malformed JSON" with Lamperi's mafia check, and "Invalid array length" with JSONLint. I think I did a pretty good job at keeping it from being just a reskin (not as through as other themes, but I tried), and I think this will be a popular theme if it ever works. I did all the work already, and I think there's a missing {,},[,] or something like that. I have no idea what is wrong, but perhaps you people could help me.
Try using Notepad++ instead of Word (change the language to Javascript) . It doesn't put "smart quotes" in which stuff up the syntax. It also shows matching brackets (this one is actually missing a few).
I moved your other thread here, in case you didn't see the redirect. Use the Scripts forum for scripting issues, and please don't make multiple threads for the same issue.