fulvia/modules/perfectrun.py
2025-06-19 12:31:16 -04:00

246 lines
24 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
"""
Roll for color. From the Perfect Run webserial.
https://docs.google.com/document/d/1_R5e8gJ2qpFFkNmaLuMnC_Of0PYoAUpGGoJ8lc8oER4/edit?pli=1&tab=t.0
"""
import random
import module
@module.commands("perfectrun", "pr")
def perfectrun(bot, trigger):
"""
Rolls for powers from Perfect Run.
"""
roll = random.randint(1,100)
if 1 <= roll <= 24:
color = 'green'
elif 25 <= roll <= 44:
color = 'orange'
elif 45 <= roll <= 63:
color = 'red'
elif 64 <= roll <= 80:
color = 'blue'
elif 81 <= roll <= 93:
color = 'yellow'
elif 94 <= roll <= 98:
color = 'violet'
elif 99 <= roll <= 100:
color = 'white'
tables = {
'red': red,
'orange': orange,
'yellow': yellow,
'green': green,
'blue': blue,
'violet': violet,
'white': white
}
table = tables[color]
power = random.choice(table)
elixers = {
'red': "\x0304Red - Energy",
'orange': "\x0307Orange - Matter",
'yellow': "\x0308Yellow - Concepts",
'green': "\x0309Green - Life",
'blue': "\x0312Blue - Information",
'violet': "\x0306Violet - Spacetime",
'white': "\x0300White - Meta-Powers"
}
elixer = elixers[color]
bot.reply("Your Elixer: " + elixer)
bot.reply("Your Power: " + power)
if color == 'blue' and power.startswith('Genius'):
bot.reply("Your Genius Expertease: " + random.choice(genius))
red = [
"\x0304Living Sun\x03: you can transform into a living sun, with all associated abilities (solar energy production, gravitational control…).",
"\x0304Wavelength\x03: you can transform into a living wavelength, allowing you to move at lightspeed and become invulnerable to physical attacks.",
"\x0304Pyrokinesis\x03: you can generate flames and manipulate them.",
"\x0304Radio\x03: you can manipulate sound.",
"\x0304Telekinesis\x03: you create force fields allowing you to lift or crush objects.",
"\x0304Motion\x03: you can manipulate motion, allowing you to either move at superspeed, or to throw any item you touch at supersonic speed.",
"\x0304Vibration\x03: you can cause intense vibrations with your hands, for example creating air blasts or blowing up buildings on touch.",
"\x0304Energy Sword\x03: you can create laser swords with your hand.",
"\x0304Crimson Lightning\x03: you can generate crimson lightning from your body and redirect it at will.",
"\x0304Laser\x03: you can generate lasers from your body, from the fingers to the eyes.",
"\x0304Explosion\x03: you can charge solid matter with destructive energy, causing it to violently explode soon afterward.",
"\x0304Shock Absorption\x03: you absorb kinetic energy and store it into your body, increasing its size and strength. You passively lose the accumulated energy. ",
"\x0304Fallout\x03: your body emits nuclear forces, turning you into a living nuclear holocaust.",
"\x0304Kinetic Arms\x03: you create tentacles of kinetic energy allowing you telekinetically manipulate things from afar, like additional arms.",
"\x0304Lightshow\x03: you can manipulate light, allowing you to create visual illusions, rays, or even dangerous flashes.",
"\x0304Graviforce\x03: you can manipulate gravity within a certain radius.",
"\x0304Magnafield\x03: you can control magnetism within a certain radius.",
"\x0304Stillness\x03: you can slow or outright negate motion around yourself, slowing objects, paralysing them, or de facto negating shocks.",
"\x0304Black Hole\x03: you can create miniature black holes capable of destroying entire cities.",
"\x0304Redirect\x03: you can redirect any form of energy around yourself, from kinetic strength to lightning.",
]
orange = [
"\x0307Diamond Skin\x03: you can turn your skin into superhard Carbon.",
"\x0307Iron Giant\x03: your body turns into metal; additionally, you can absorb any metal you touch into your biomass.",
"\x0307White Mist\x03: you create a cryogenic mist capable of turning anything into ice.",
"\x0307Water Manipulation\x03: you mentally control water in its natural state, the purer the better; you cannot control water within living bodies.",
"\x0307Rust Fumes\x03: your body transforms into metal-corroding gas, which grants you immunity to physical attacks. However, wind may blow you away.",
"\x0307Glass Field\x03: you can control glass and most silica within a certain radius.",
"\x0307Acid Cloud\x03: you can summon a cloud of toxic, acidic rain at will. You are immune to its negative effects.",
"\x0307Intangibility\x03: you can turn yourself and anything/anyone you touch intangible, allowing them to phase through matter.",
"\x0307Ink\x03: your body transforms into ink; you can change your shape and your color, granting you resistance to physical attacks and camouflage.",
"\x0307Multi-Breath\x03: you can transform your breath into various kinds of gas, like flammable gas, toxic breath etc...",
"\x0307Tempest\x03: you can manipulate air and winds, even alter the weather by altering atmospheric currents.",
"\x0307Golem\x03: you can create animated constructs from any kind of inorganic matter, from steel to dirt, that obey your every order.",
"\x0307Dissolve\x03: you can dissolve matter into raw molecules on touch.",
"\x0307Gorgon Gaze\x03: you can transform anything you see into stone, from people to water.",
"\x0307Diceweight\x03: you can increase or decrease the mass of anything within a certain radius.",
"\x0307Transmute\x03: you can transmute any inorganic matter into another, like lead to gold.",
"\x0307Materialize\x03: you can mentally materialize any inanimate object you can conceive, from chairs to buildings. You cannot create living beings.",
"\x0307Stateless\x03: you can transform the state of your body from liquid, gaseous, or solid.",
"\x0307Copymatter\x03: if you touch inorganic matter, you can temporarily have your body mimic its properties.",
"\x0307Living Molecule\x03: you have complete control over your bodys molecules, allowing you to reassemble them as you wish.",
]
yellow = [
"\x0308Calamity Force\x03: you can curse a single target with bad luck, causing increasingly dangerous calamities to befall your enemies.",
"\x0308Lucky\x03: you have phenomenal luck. Whatever happens, you will benefit from it.",
"\x0308Undeath\x03: you cannot die. Your spirit inhabits your molecules, allowing you to survive even if reduced to bones or broken into countless parts.",
"\x0308Ghostbuster\x03: if you die, you transform into a powerful ghost bound to your earthly remains.",
"\x0308Death Calling\x03: you manipulate death, allowing you to sense someones age and cause death to catch up to them if certain conditions are met.",
"\x0308Shadowmancer\x03: you can manipulate your shadow; if it hits somethings shadow, the victims body suffers the same damage.",
"\x0308Necromancy\x03: you animate corpses with necrotic power, allowing you to temporarily command them from afar and speak through them.",
"\x0308Tulpa\x03: you manifest an imaginary friend, that represents your subconscious thoughts.",
"\x0308Cosplayer\x03: you temporarily copy the attributes of a public persona or fictional character by dressing as them.",
"\x0308Fictionland\x03: you can physically enter a story or novel. This manifests in the creation of a closed illusory world mimicking the storys content and repeating itself endlessly.",
"\x0308Landowner\x03: you fuse with a swath of land and gain conceptual control over it; this allows you to broadly see anything that happens there, and negate other conceptual powers within it.",
"\x0308Love String\x03: you create a bond between two people, forcing them to fall in love. The two will instinctively find one another no matter the distance, and probabilities will subtly change to allow that outcome.",
"\x0308Cut\x03: you can imbue a blade, from a kitchen knife to a sword, with the conceptual ability to cut anything.",
"\x0308Reincarnation\x03: your consciousness transcends your body; if you are killed, it transfers to a newborn of your species chosen at random. You keep your memories, and the power carries over from one host to the next.",
"\x0308Karmic Form\x03: you can transform people into a reflection of their inner self. For example, a saint will look like an angel, with a corrupt individual will turn into a bloated fiend. The victim does not gain any powers.",
"\x0308Animate\x03: you can animate inanimate objects like cars, swords, or even buildings, granting them ability to move by themselves and sentience.",
"\x0308Sanctuary\x03: you can mark one single area as a sanctuary. Anyone that you have not explicitly invited inside cannot cross the threshold, as an invisible force keeps them out.",
"\x0308Geas\x03: you can create an unbreakable agreement between two willing people, making them unable to break the wording of the agreement.",
"\x0308Painful Choice\x03: you can force someone to either choose Hell or Heaven; if they choose Heaven, they instantly die. If they choose Hell, they are wracked with pain for one hour. If the target doesnt answer quickly, the result defaults to Heaven. You can only offer the choice once per person.",
"\x0308Worldsoul\x03: you passively warp reality around yourself so it reflects your inner self. For example, if you are depressive, gloom prospers, colors vanish, and people start wasting away. You do not control this effect.",
]
green = [
"\x0309Panda Overdrive\x03: you can transform into a mighty Panda.",
"\x0309Dragonlord\x03: you can transform into a powerful dragon beast.",
"\x0309DNA Manipulation\x03: you can alter the DNA of any living being you touch.",
"\x0309Petalmancy\x03: you can artificially grow and control plants.",
"\x0309Mosquito\x03: you permanently transform into a mosquito hybrid; your strength increases to superhuman level, the more blood you consume.",
"\x0309Bloodstream\x03: you can manipulate blood within a certain radius, including your own.",
"\x0309Rat King\x03: you can transform specific rats into Genome Rats. These animals have an enhanced metabolism and human intelligence, can command lesser rats, and serve as extensions of your neural system. If these Genome Rats reproduce with normal rats, the children are always Genome Rats.",
"\x0309Bodyjacker\x03: you can transform people into backup bodies, allowing you to reshape their flesh into a copy of your old body when you perish.",
"\x0309Lifegiver\x03: you can create small creatures, from plants to animals, from your shed blood.",
"\x0309Succubus\x03: you can manipulate pheromone, allowing you to seem irresistible to anyone; additionally, you can poison their body through direct contact by altering their hormones.",
"\x0309Esthetic Surgery\x03: you can reshape the appearance of people like one would clay.",
"\x0309World Serpent\x03: you can transform into a colossal serpent, capable of absorbing dead biomass on contact to regenerate itself.",
"\x0309Peak\x03: your body is always in top condition, granting you unlimited endurance, immunity to fatigue, toxins, sleep, etc…",
"\x0309Feline\x03: you can shapeshift into a werefeline, granting you extraordinary strength, agility, and enhanced senses.",
"\x0309Reptilian\x03: your body gains the properties of reptiles, including steel-hard scales, wall-crawling, camouflage and limited regeneration.",
"\x0309Protean\x03: you can transform into any animal of your choosing, so long as you recorded their DNA by touching them. You cannot copy other humans, and always default to your own when you try.",
"\x0309Pandemic Bomb\x03: you can create viruses, bacterias, and illnesses from your body; additionally, you are immune to all diseases.",
"\x0309Rot\x03: you can instantly rot organic matter on touch.",
"\x0309Regenerator\x03: your body regenerates from any damage, so long as a single cell remains. If your body parts are separated, they regenerate into copies of yourself.",
"\x0309Ultimate Lifeform\x03: you become the ultimate lifeform, your body instantly adapting to any environment or conditions (ex giving you scales to swim underwater, allowing you to breath in toxic air etc…). You do not control the changes.",
]
blue = [
"\x0312Mind-control\x03: you can control the mind of any human within ten meters of yourself.",
"\x0312Gods Voice; any order you vocalize to someone becomes an irresistible compulsion, and the victim must immediately carry it out.",
"\x0312Parallel Mind\x03: you can observe multiple alternate universes through the eyes of your counterparts, allowing you to predict the future.",
"\x0312Mindworm\x03: you can permanently transform the mind of any person you touch into a copy of your own.",
"\x0312Genius\x03: you gain supernatural knowledge of an area of science or technology, such as water-based tech, weapons, human psychology… If you arent sure about your chosen specialty, you can check the Genius table below and roll for one.",
"\x0312Truthsayer\x03: if you ask someone a question, you compel them to answer truthfully.",
"\x0312Nervejacker\x03: you can physically connect to databases, including brains, allowing you to read and manipulate information.",
"\x0312Intuimotion\x03: you intuitively sense any movement within a certain radius around yourself, granting you supernatural aiming and reflexes.",
"\x0312Insanity\x03: you telepathically invade someones mind and drive them to madness through vivid hallucinations.",
"\x0312Network\x03: you create a telepathic network with someone you touch for a few hours, allowing you to communicate with them. Networked people intuitively work as a single unit.",
"\x0312Incognito\x03: you can force people to perceive you as someone else of your choosing, even through cameras.",
"\x0312Technopathy\x03: you mentally connect and control machines within a given radius.",
"\x0312Beastmaster\x03: you gain telepathic control over a random animal species within a large radius. This includes the ability to see through their senses.",
"\x0312Psychometry\x03: you can learn an object or persons entire history by touching them.",
"\x0312Stop\x03: you stop the perception of time of any living being within a certain radius; to these people, time to have stopped.",
"\x0312Enhanced Learning\x03: you learn at a phenomenal rate, allowing you to master a language simply by reading a book in that tongue, quickly understand any technology, master new skills at an incredible pace...",
"\x0312Thought Bomb\x03: you create a viral idea (like X is God), that spreads from one person to another when they communicate.",
"\x0312Infoform\x03: you become a being of living information, allowing you to travel from one mind to another, or into databases.",
"\x0312Amnesia\x03: you can read and manipulate one persons memories at will.",
"\x0312Scry\x03: you can mentally observe a location or person from afar, so long as you are aware of their existence.",
]
genius = [
"\x0312Aquatic\x03: technology focusing on the ocean, including submarines, oceanic life, and water-related tech.",
"\x0312Weapons\x03: technology that focuses on physically harming or killing someone else, such as lasers, military vehicles, or bombs.",
"\x0312Neuromancer\x03: you understand how brain tissues work, allowing you to create brain-machine interfaces, biomechanical computers, artificial memories or brains...",
"\x0312Computer Code\x03: you are a master of hacking, computer programming, and creating artificial intelligences.",
"\x0312Mindbreaker\x03: you have a perfect understanding of psychology, allowing you to instantly profile individuals and manipulate their psyche.",
"\x0312Genetic Dystopia\x03: you are a specialist of DNA alterations, from cloning to gene therapy.",
"\x0312Transportation\x03: you understand technology allowing mobility of any kind, from creating vehicles to portals and teleportation devices.",
"\x0312Geology\x03: you perfectly understand geology and tectonic activities, allowing you to create things like earthquake generators or stone detectors.",
"\x0312Robot Army\x03: you can make any kind of robot, from a friendly tiny assistant to colossal mechas.",
"\x0312Optics\x03: you understand optics and light, allowing you to create things like invisibility suits, holograms, or lasers.",
"\x0312Atmospheric\x03: you understand meteorology and anything related to planets atmospheres, allowing you to create weather-altering machines.",
"\x0312Farmer\x03: you are a specialist of all forms of agriculture, from gardening and horticulture to animal husbandry. This allows you to create new strains of plants and animals, enhance their productivity, or create powerful fertilizers.",
"\x0312Corona Squad\x03: you are a specialist of virology and anything related to plagues, from viruses to infections.",
"\x0312Grafts\x03: you can make any kind of prosthesis or biomechanical implants, from bionic eyes, grafting artificial organs, or even creating artificial tentacles linked to your spine.",
"\x0312Linguist\x03: you are a specialist of all forms of language and communications, allowing you to figure out any tongue, discuss with aliens and animals, or create your own unbreakable codes.",
"\x0312Medic\x03: you are the worlds authority on medicine, allowing you to create machines capable of operating others, understand and solve almost any health issue, or even improve a body through specialized surgery.",
"\x0312Chemist\x03: you are a specialist of chemistry, allowing you to create new materials centuries ahead of their time, devastating chemical weapons, or any form of explosive.",
"\x0312Drug Wizard\x03: you can create any form of drug or psychotropic substances, including hallucinogens, addictive substances, or performance enhancers.",
"\x0312City Planner\x03: you are an expert at creating any kind of city. This makes you an expert urban planner, but also allows you to invent arcology designs, floating cities, or even self-sustaining colony spaceships.",
"\x0312Terraformer\x03: you understand how to change the very environment. You can create artificial biodomes, or design machines capable of transforming any environment into another (ex slowly transform Mars into Earth, or Yellowstone into an alien landscape).",
]
violet = [
"\x0306Temporal Bilocation\x03: you can create a save point by dividing yourself across time and space.",
"\x0306Summoner\x03: you can summon alien monsters from a distant universe, though you do not control them.",
"\x0306Time Leap\x03: you create a time anomaly allowing you to leap into the future; to everyone except you, it seems time skipped forward (“I erased time and leapt past it!”).",
"\x0306Teleportation\x03: you can teleport at any place you can see.",
"\x0306Space Rift\x03: you create a rift in space capable of cutting anything, down to the molecular level.",
"\x0306Bottomless\x03: you hold a pocket dimension inside your stomach, allowing you to stock and pull out anything within.",
"\x0306Armory\x03: you can mark small items and store them inside a pocket dimension; you can then summon them at will within ten meters of yourself.",
"\x0306Reload\x03: your body instantly reloads to a previous state anytime you are killed or harmed, though your mind carries over.",
"\x0306Portal\x03: you can create spatial portals linking two locations you are familiar with.",
"\x0306Clockstop\x03: you can freeze an object or person in time on touch, as long as you wish.",
"\x0306Compress\x03: you can compress space at a specific point, crushing anything within; including people, if you wish.",
"\x0306Switch\x03: you can switch places with anything in sight.",
"\x0306Pathfinder\x03: you gain an intuitive understanding of space, allowing you to always find your way to a destination.",
"\x0306Future Call\x03: you can summon a future version of yourself from 24 hours in the future. The double has awareness of the future as if you hadnt used your power, and disappears after 24 hours.",
"\x0306Bullet Time\x03: you desynch your timestream from the rest of the universe, making it seem as if time slows down for everything but you.",
"\x0306Begone\x03: you can teleport someone or something into the future (never backward). You decide how far, from a few seconds, to eons.",
"\x0306Social Distancing\x03: you can lengthen or shorten space in an area, causing hallways to seemingly stretch forever, or shortening distances.",
"\x0306Loop\x03: you can trap an area in a closed-time loop, where time and events constantly repeat themselves. The rest of the world is fine, and cannot interact with the time bubble.",
"\x0306Dimension Leap\x03: you can teleport to alternate realities or universes.",
"\x0306Meteor\x03: you teleport meteors from the depth of space at a specific location; you can choose the size from car-destroying stones to world-enders.",
]
white = [
"\x0300Cancel\x03: you negate other Genomes powers within a certain radius of yourself.",
"\x0300Accel\x03: you supercharge the powers of anyone within ten meters.",
"\x0300All for One\x03: so long as they are within 10 meters of yourself, you temporarily prevent any Genome from using their powers and you can use them instead, though at reduced strength",
"\x0300Mongrel\x03: you can hold an unlimited number of powers within your body instead of just two max, but you are NOT immune to Psycho degeneration.",
"\x0300RNG\x03: every 24 hours, you get a new power chosen at random. Once 24 hours have passed, you switch that power for another.",
"\x0300Sphere\x03: you create colored spheres each with a different effect, depending on the color (ex heat explosion for Red, body paralysis for Green etc…).",
"\x0300Mimic\x03: if you touch a Genome, you copy their power; you can only use one power at once, and the ability resets each time you touch someone else.",
"\x0300Empower\x03: you can temporarily imbue a normal person with a weak power for one hour, after which it dissipates. You do not choose the power, but you select the color.",
"\x0300One for All\x03: you can permanently transfer your power to someone else. If that person already has a power, this ability fuses with it, allowing the recipient to transfer the ability next.",
"\x0300Identify\x03: you identify Genomes by a colored aura around them. The more you look at it, the better you understand their abilities.",
"\x0300Tune\x03: you can permanently tune someone elses power, for example increasing its strength at the cost of the users control.",
"\x0300Pulse\x03: you can create a pulse around yourself that signals your presence to every Genome within a vast radius. Non-superpowered beings do not sense it.",
"\x0300Redo\x03: you can change someones power to another, within their colors spectrum (change one Green power to another). However, the body itself does not change, which may cause health complications or even death if they cannot adapt to their new ability.",
"\x0300Power Killer\x03: you permanently strip someone of their powers on touch.",
"\x0300Immune\x03: you cannot be affected by other powers, though you do not negate their activation (for example, a Red Genomes flames cannot affect you, but you do not prevent them from creating them).",
"\x0300Duplicate\x03: you can temporarily make a given Genome share his power with other, unpowered individuals, but everyone only has a fraction of its full potential.",
"\x0300Power Outage\x03: you cause someone to lose control over their power, forcing it into overdrive.",
"\x0300Reflect\x03: you redirect any superpowers aimed at you back to the sender.",
"\x0300No Brakes\x03: you selectively remove the safeguards prevent ones power from harming themselves. For example, pyrokinetics are no longer immune to their own flames.",
"\x0300Select\x03: you can choose one power you wish, and the chosen power permanently replaces “Select.” The power may misunderstand you wish and grant you the closest interpretation it can have (ex I want to be immortal can lead to absolute regeneration or undeath).",
]