Now let me find the doc and the code I made for roles (sob)
Well I lost the code so I have to redo it again. Python here we gooo (it's faster to make lel
OH MY GOD THIS IS HELL
PM me the code and I can try to maybe possibly help, I know some Python
It's less the actual code that's the issue (That is easy for me), it's how much I realised my old code was hamshackled together, and how the role generation process is a little...hard to understand. I'm trying to make it easy enough to use for other people, that's the problem
Now let me find the doc and the code I made for roles (sob)
Well I lost the code so I have to redo it again. Python here we gooo (it's faster to make lel
OH MY GOD THIS IS HELL
PM me the code and I can try to maybe possibly help, I know some Python
It's less the actual code that's the issue (That is easy for me), it's how much I realised my old code was hamshackled together, and how the role generation process is a little...hard to understand. I'm trying to make it easy enough to use for other people, that's the problem
Ah, I too have made some very spaghetti code.
Very respectable to make it more usable for others!
Rollback Post to RevisionRollBack
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
Now let me find the doc and the code I made for roles (sob)
Well I lost the code so I have to redo it again. Python here we gooo (it's faster to make lel
OH MY GOD THIS IS HELL
PM me the code and I can try to maybe possibly help, I know some Python
It's less the actual code that's the issue (That is easy for me), it's how much I realised my old code was hamshackled together, and how the role generation process is a little...hard to understand. I'm trying to make it easy enough to use for other people, that's the problem
Ah, I too have made some very spaghetti code.
Very respectable to make it more usable for others!
Like uhh. Look at how bad a part of it is (btw I hid some of it) "
# No ability town Normal_townie = "Murderer" # "Normal" town roles, things that don't change the randomisation process Special_town_roles = ["Kidnapper", "Organ harvester", "Assassin", "Mute kidnapper"] # Max amount of those roles Special_town_roles_max = [(hidden)] # Unique town roles (like scientists and cultists) For the first pass: Unique_town_roles_initial_townie_cult = ["Cult leader"] Unique_town_roles_initial_townie_science = ["Researcher", "Chemist", "Biologist"] Unique_town_roles_initial_townie_max_science = [(Hidden)] # One time check if cult is in the game Chance_of_cult = (Hidden) Cult = False # Max amount of roles from this category (total) Unique_town_roles_initial_townie_max = (Hidden) Unique_town_roles_initial_townie_required = [(Hidden)] # Some categories Cult_category = ["Cult leader", "Visionary", "Proselytizer"] Science_category = ["Researcher", "Chemist", "Biologist"] Misc_category = ["Murderer", "Kidnapper", "Organ harvester" ,"Assassin" ,"Mute kidnapper"] # ex of relient roles: # Unique_town_roles_relient = ["x1", "x2", "x3"]
# For roles that rely on cult leader to exist, that force some roles to exist. Replaces roles. Second pass Unique_town_roles_relient_townie_cult = ["Visionary", "Proselytizer"] Unique_town_roles_relient_townie_cult_max = [(hidden)] Unique_town_roles_relient_townie_cult_required = [(hidden)] # List of roles able to be replaced. (Like townie) #Replaceable_roles = []
#Enter Roles each time you want them to be used #example: #Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer", "The James role", "Alone child", "Non-Alone child"] Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer"]
#NO TOUCHY >:(
roles_length = len(Roles)-1 for a in range(-1, roles_length): while True: if current in Used: current = random.randint(0, roles_length) else: break Roles_result.append(Roles[current]) Used.append(current) for b in range(0, roles_length+1): print(str(Names[current2]) + " - " + str(Roles_result[current2])) current2 = current2 + 1 __________________________________________________________________________________________________________________
Edit: Font and italics (and this :P)
Edit 2: Improving the look of the edit and color of the text (Oh my god, my impatience is insane)
#Enter Roles each time you want them to be used #example: #Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer", "The James role", "Alone child", "Non-Alone child"] Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer"]
#NO TOUCHY >:(
roles_length = len(Roles)-1 for a in range(-1, roles_length): while True: if current in Used: current = random.randint(0, roles_length) else: break Roles_result.append(Roles[current]) Used.append(current) for b in range(0, roles_length+1): print(str(Names[current2]) + " - " + str(Roles_result[current2])) current2 = current2 + 1 __________________________________________________________________________________________________________________
Edit: Font and italics (and this :P)
Edit 2: Improving the look of the edit and color of the text (Oh my god, my impatience is insane)
Very nice! Might want to fix the indentations, though...
Rollback Post to RevisionRollBack
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
I'm good how are you?
Blorp!
Hello! Call me Tana or 타나
My pronouns are Any/All/BOC
I will always support you. Because that is my way of showing how much I care
Current List of Children: Golden, Salem, Wes, Aspen, Link, SuperDog, and Foalin.
Current Dice Code: [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] = [roll][roll:-5]+[roll:-4]+[roll:-3]+[roll:-2]+[roll:-1][/roll]
Sounds like a plan!
I can't wait to start partaking in dastardly games of deception and murder again...
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
A mysterious link of chain... (Extended signature). PRAISE JEFF THE EVIL ROOMBA! REALLY cool video.
One of the Warlock Patrons on the forums. Low, low price of your soul, firstborn child and liver!
Titles: The Echoing Story Spewer (Drummer), the Endless Maws (Isis), the Mad Murderer (PJ), more on my extended sig
YEeeeeeeeess
Hello! Call me Tana or 타나
My pronouns are Any/All/BOC
I will always support you. Because that is my way of showing how much I care
Current List of Children: Golden, Salem, Wes, Aspen, Link, SuperDog, and Foalin.
Current Dice Code: [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] = [roll][roll:-5]+[roll:-4]+[roll:-3]+[roll:-2]+[roll:-1][/roll]
Now let me find the doc and the code I made for roles (sob)
WELP
Why do soooo many people hate this font :(
Well I lost the code so I have to redo it again. Python here we gooo (it's faster to make lel
WELP
Why do soooo many people hate this font :(
OH MY GOD THIS IS HELL
WELP
Why do soooo many people hate this font :(
PM me the code and I can try to maybe possibly help, I know some Python
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
A mysterious link of chain... (Extended signature). PRAISE JEFF THE EVIL ROOMBA! REALLY cool video.
One of the Warlock Patrons on the forums. Low, low price of your soul, firstborn child and liver!
Titles: The Echoing Story Spewer (Drummer), the Endless Maws (Isis), the Mad Murderer (PJ), more on my extended sig
It's less the actual code that's the issue (That is easy for me), it's how much I realised my old code was hamshackled together, and how the role generation process is a little...hard to understand. I'm trying to make it easy enough to use for other people, that's the problem
WELP
Why do soooo many people hate this font :(
Ah, I too have made some very spaghetti code.
Very respectable to make it more usable for others!
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
A mysterious link of chain... (Extended signature). PRAISE JEFF THE EVIL ROOMBA! REALLY cool video.
One of the Warlock Patrons on the forums. Low, low price of your soul, firstborn child and liver!
Titles: The Echoing Story Spewer (Drummer), the Endless Maws (Isis), the Mad Murderer (PJ), more on my extended sig
Like uhh. Look at how bad a part of it is (btw I hid some of it)
"
# No ability town
Normal_townie = "Murderer"
# "Normal" town roles, things that don't change the randomisation process
Special_town_roles = ["Kidnapper", "Organ harvester", "Assassin", "Mute kidnapper"]
# Max amount of those roles
Special_town_roles_max = [(hidden)]
# Unique town roles (like scientists and cultists) For the first pass:
Unique_town_roles_initial_townie_cult = ["Cult leader"]
Unique_town_roles_initial_townie_science = ["Researcher", "Chemist", "Biologist"]
Unique_town_roles_initial_townie_max_science = [(Hidden)]
# One time check if cult is in the game
Chance_of_cult = (Hidden)
Cult = False
# Max amount of roles from this category (total)
Unique_town_roles_initial_townie_max = (Hidden)
Unique_town_roles_initial_townie_required = [(Hidden)]
# Some categories
Cult_category = ["Cult leader", "Visionary", "Proselytizer"]
Science_category = ["Researcher", "Chemist", "Biologist"]
Misc_category = ["Murderer", "Kidnapper", "Organ harvester" ,"Assassin" ,"Mute kidnapper"]
# ex of relient roles:
# Unique_town_roles_relient = ["x1", "x2", "x3"]
# For roles that rely on cult leader to exist, that force some roles to exist. Replaces roles. Second pass
Unique_town_roles_relient_townie_cult = ["Visionary", "Proselytizer"]
Unique_town_roles_relient_townie_cult_max = [(hidden)]
Unique_town_roles_relient_townie_cult_required = [(hidden)]
# List of roles able to be replaced. (Like townie)
#Replaceable_roles = []
"
WELP
Why do soooo many people hate this font :(
In addition to this one, I'm creating a simplier one, as this one is like an in depth randomizer, so it might be too hard for some people to use
WELP
Why do soooo many people hate this font :(
Oh Btw I already finished the easiest to use version
here it is:
___________________________________________________________________________________________________
import random
# Leave empty:
Roles_result = []
Used = [-1]
current = -1
current2 = 0
#Enter names:
#Example:
#Names = ["Name1", "Name2, "Name3"]
Names = ["James1", "James2", "James3", "James4", "James5"]
#Enter Roles each time you want them to be used
#example:
#Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer", "The James role", "Alone child", "Non-Alone child"]
Roles = ["Townie", "Townie", "Mafia", "Mafia", "Turntable murderer"]
#NO TOUCHY >:(
roles_length = len(Roles)-1
for a in range(-1, roles_length):
while True:
if current in Used:
current = random.randint(0, roles_length)
else:
break
Roles_result.append(Roles[current])
Used.append(current)
for b in range(0, roles_length+1):
print(str(Names[current2]) + " - " + str(Roles_result[current2]))
current2 = current2 + 1
__________________________________________________________________________________________________________________
Edit: Font and italics (and this :P)
Edit 2: Improving the look of the edit and color of the text (Oh my god, my impatience is insane)
WELP
Why do soooo many people hate this font :(
Try out the code!
WELP
Why do soooo many people hate this font :(
Oh goodness
Hello! Call me Tana or 타나
My pronouns are Any/All/BOC
I will always support you. Because that is my way of showing how much I care
Current List of Children: Golden, Salem, Wes, Aspen, Link, SuperDog, and Foalin.
Current Dice Code: [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] = [roll][roll:-5]+[roll:-4]+[roll:-3]+[roll:-2]+[roll:-1][/roll]
hm?
WELP
Why do soooo many people hate this font :(
Very nice! Might want to fix the indentations, though...
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
A mysterious link of chain... (Extended signature). PRAISE JEFF THE EVIL ROOMBA! REALLY cool video.
One of the Warlock Patrons on the forums. Low, low price of your soul, firstborn child and liver!
Titles: The Echoing Story Spewer (Drummer), the Endless Maws (Isis), the Mad Murderer (PJ), more on my extended sig
This is why I hate coding!
Hello! Call me Tana or 타나
My pronouns are Any/All/BOC
I will always support you. Because that is my way of showing how much I care
Current List of Children: Golden, Salem, Wes, Aspen, Link, SuperDog, and Foalin.
Current Dice Code: [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] + [roll]1d6[/roll] = [roll][roll:-5]+[roll:-4]+[roll:-3]+[roll:-2]+[roll:-1][/roll]
What, indentations?
Hello! I am a perfectly sane gibberer. Hi! :D
Locations are dead, the Temple of Potassium has fallen but its ideals live on
A mysterious link of chain... (Extended signature). PRAISE JEFF THE EVIL ROOMBA! REALLY cool video.
One of the Warlock Patrons on the forums. Low, low price of your soul, firstborn child and liver!
Titles: The Echoing Story Spewer (Drummer), the Endless Maws (Isis), the Mad Murderer (PJ), more on my extended sig
Ah I see, the indentations just didn't go through to the post.
Trust me, it's there and I tested it
WELP
Why do soooo many people hate this font :(