[text] Chara

Viewer

  1. init python:
  2.     class Character:
  3.         def __init__(self, name, who_color="#fff", health=100, stamina=100, magic=100,
  4.                     strength=1, agility=1, perception=1, intellect=1, 
  5.                     endurance=1, charisma=1, willpower=1, luck=1,
  6.                     alignment='Neutral', race='Human',
  7.                     fame=1, stealth=1, crafting='Neophyte', dodge=1):
  8.  
  9.             self.name = name
  10.  
  11.             self.health = health            # Health Points = Basic Health + (5 * strength)
  12.             self.stamina = stamina          # Stamina Points = Basic Stamina + (2 * agility)
  13.             self.magic = magic              # Magic Points = Basic Magic + (10 * intellect)
  14.  
  15.             self.strength = strength        # Increase Melee Damage & Health & Skill Tree Unlocks
  16.             self.agility = agility          # Increase Stamina & Dodge & Skill Tree Unlocks
  17.             self.perception = perception    # Increase Hit Rate & Skill Tree Unlocks
  18.             self.intellect = intellect      # Increase Magic Damage & Magic Points & Skill Tree Unlocks
  19.             self.endurance = endurance      # Decrease Taken Melee Damage & Skill Tree Unlocks
  20.             self.charisma = charisma        # Unlocks Dialogue Options & Skill Tree Unlocks
  21.             self.willpower = willpower      # Decrease Taken Magic Damage & Skill Tree Unlocks
  22.             self.luck = luck                # Increase Crit Chance 
  23.  
  24.             self.alignment = alignment      # Ethical Stance of Character
  25.             self.race = race                # Race of Character
  26.  
  27.             self.fame = fame                # Fame of Character - Required For Some Actions
  28.             self.stealth = stealth          # Stealth of Character - Required For Some Actions
  29.             self.crafting = crafting        # Crafting Abilities - Ranks [Neophyte, Prospect, Skilled, Artisan, Maestro, Eminent, Virtuoso]
  30.             self.dodge = dodge              # Change To Dodge Attack
  31.  
  32. ### Races
  33. #   [Human, High Elves, Elves, Half-Elves, Dark Elves, 
  34. #   Drakorim(Dragons), Astralis(Godly), Umbraxis(Stealth), Eventides(Intelligent, Stealth),
  35. #   Somnus(Willpower)]
  36. ###
  37.  
  38.             if self.race == 'Elf':
  39.                 self.perception += 2
  40.                 self.luck += 2
  41.                 self.magic += 10
  42.             elif self.race == 'High Elf':
  43.                 self.intellect += 3
  44.                 self.magic += 20
  45.                 self.charisma += 3
  46.             elif self.race == 'Half-Elf':
  47.                 self.charisma += 2
  48.                 self.magic += 5
  49.             elif self.race == 'Dark Elf':
  50.                 self.agility += 3
  51.                 self.perception += 2
  52.             elif self.race == 'Drakorim':
  53.                 self.strength += 8
  54.                 self.endurance += 8
  55.                 self.magic += 30
  56.                 self.health += 100
  57.             elif self.race == 'Astralis':
  58.                 self.intellect += 5
  59.                 self.magic += 50
  60.                 self.willpower += 5
  61.             elif self.race == 'Umbraxis':
  62.                 self.agility += 2
  63.                 self.perception += 3
  64.                 self.stealth += 5
  65.             elif self.race == 'Eventides':
  66.                 self.intellect += 3
  67.                 self.perception += 3
  68.                 self.stealth += 3
  69.             elif self.race == 'Somnus':
  70.                 self.willpower += 5
  71.                 self.magic += 10
  72.  
  73.         @property
  74.         def Health(self):
  75.             return self.health + (5 * self.strength)
  76.  
  77.         @property
  78.         def Stamina(self):
  79.             return self.stamina + (2 * self.agility)
  80.  
  81.         @property
  82.         def Magic(self):
  83.             return self.magic + (10 * self.intellect)
  84.  
  85.         def AddStrength(self, amount):
  86.             self.strength += amount
  87.  
  88.         def AddAgility(self, amount):
  89.             self.agility += amount
  90.  
  91.         def AddPerception(self, amount):
  92.             self.perception += amount
  93.  
  94.         def AddIntellect(self, amount):
  95.             self.intellect += amount
  96.  
  97.         def AddEndurance(self, amount):
  98.             self.endurance += amount
  99.  
  100.         def AddCharisma(self, amount):
  101.             self.charisma += amount
  102.  
  103.         def AddWillpower(self, amount):
  104.             self.willpower += amount
  105.             
  106.         def AddLuck(self, amount):
  107.             self.luck += amount
  108.  
  109. init:
  110. # region Female Names & Colors
  111.  
  112.     # Main Character
  113.     define pName = "Henry"
  114.     define pColor = "#2684ff"
  115.  
  116.     # Humans
  117.     define emilyName = "Emily"
  118.     define emilyColor = "#2684ff"
  119.  
  120.     define lucyName = "Lucy"
  121.     define lucyColor = "#2684ff"
  122.  
  123.  
  124.     # High Elves
  125.     define kiraName = "Kira"
  126.     define kiraColor = "#2684ff"
  127.  
  128.     define viviaName = "Vivia"
  129.     define viviaColor = "#2684ff"
  130.  
  131.  
  132.     # Elves
  133.     define ariaName = "Aria"
  134.     define ariaColor = "#2684ff"
  135.  
  136.     define soraName = "Sora"
  137.     define soraColor = "#2684ff"
  138.  
  139.  
  140.     # Half Elves
  141.     define alinaName = "Alina"
  142.     define alinaColor = "#2684ff"
  143.  
  144.     define laylaName = "Layla"
  145.     define laylaColor = "#2684ff"
  146.  
  147.  
  148.     # Dark Elves
  149.     define lilithName = "Lilith"
  150.     define lilithColor = "#2684ff"
  151.  
  152.     define zephyraName = "Zephyra"
  153.     define zephyraColor = "#2684ff"
  154.  
  155.  
  156.     # Drakorim
  157.     define emberName = "Ember"
  158.     define emberColor = "#2684ff"
  159.  
  160.     define vesperaName = "Vespera"
  161.     define vesperaColor = "#2684ff"
  162.  
  163.  
  164.     # Astralis
  165.     define auroraName = "Aurora"
  166.     define auroraColor = "#2684ff"
  167.  
  168.     define lyraName = "Lyra"
  169.     define lyraColor = "#2684ff"
  170.  
  171.  
  172.     # Umbraxis
  173.     define rhaiName = "Rhai"
  174.     define rhaiColor = "#2684ff"
  175.  
  176.     define elhriName = "Elhri"
  177.     define elhriColor = "#2684ff"
  178.  
  179.  
  180.     # Eventides
  181.     define phaeraName = "Phaera"
  182.     define phaeraColor = "#2684ff"
  183.  
  184.     define nyxiName = "Nyxi"
  185.     define nyxiColor = "#2684ff"
  186.  
  187.  
  188.     # Somnus
  189.     define reireiName = "Rei Rei"
  190.     define reireiColor = "#2684ff"
  191.  
  192.     define miraName = "Mira"
  193.     define miraColor = "#2684ff"
  194.  
  195. # endregion
  196.  
  197. #region Define characters using the defined names and colors
  198.  
  199.     # Main Character - Player
  200.     define Player = Character(name="[pName]", who_color=pColor, health=100, stamina=100, magic=10,
  201.                             strength=10, agility=8, perception=5, intellect=5,
  202.                             endurance=5, charisma=1, willpower=1, luck=0,
  203.                             alignment='Neutral', race='Human',
  204.                             fame=1, stealth=2, crafting='Neophyte', dodge=1)
  205.  
  206.     # Humans
  207.     define Emily = Character(name="[emilyName]", who_color=emilyColor, health=110, stamina=110, magic=90,
  208.                             strength=8, agility=8, perception=5, intellect=5,
  209.                             endurance=5, charisma=3, willpower=3, luck=2,
  210.                             alignment='Neutral', race='Human',
  211.                             fame=1, stealth=2, crafting='Neophyte', dodge=2)
  212.  
  213.     define Lucy = Character(name="[lucyName]", who_color=lucyColor, health=105, stamina=105, magic=95,
  214.                             strength=7, agility=7, perception=4, intellect=4,
  215.                             endurance=4, charisma=3, willpower=3, luck=2,
  216.                             alignment='Neutral', race='Human',
  217.                             fame=1, stealth=2, crafting='Neophyte', dodge=2)
  218.  
  219.     # High Elves
  220.     define Kira = Character(name="[kiraName]", who_color=kiraColor, health=100, stamina=115, magic=120,
  221.                             strength=7, agility=10, perception=8, intellect=8,
  222.                             endurance=4, charisma=5, willpower=5, luck=4,
  223.                             alignment='Neutral', race='High Elf',
  224.                             fame=2, stealth=4, crafting='Artisan', dodge=4)
  225.  
  226.     define Vivia = Character(name="[viviaName]", who_color=viviaColor, health=95, stamina=110, magic=115,
  227.                             strength=6, agility=9, perception=7, intellect=7,
  228.                             endurance=4, charisma=5, willpower=5, luck=4,
  229.                             alignment='Neutral', race='High Elf',
  230.                             fame=2, stealth=4, crafting='Artisan', dodge=4)
  231.  
  232.     # Elves
  233.     define Aria = Character(name="[ariaName]", who_color=ariaColor, health=100, stamina=110, magic=110,
  234.                             strength=6, agility=9, perception=7, intellect=7,
  235.                             endurance=4, charisma=4, willpower=4, luck=3,
  236.                             alignment='Neutral', race='Elf',
  237.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  238.  
  239.     define Sora = Character(name="[soraName]", who_color=soraColor, health=95, stamina=105, magic=105,
  240.                             strength=5, agility=8, perception=6, intellect=6,
  241.                             endurance=3, charisma=4, willpower=4, luck=3,
  242.                             alignment='Neutral', race='Elf',
  243.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  244.  
  245.     # Half-Elves
  246.     define Alina = Character(name="[alinaName]", who_color=alinaColor, health=105, stamina=115, magic=100,
  247.                             strength=7, agility=9, perception=6, intellect=6,
  248.                             endurance=4, charisma=4, willpower=4, luck=3,
  249.                             alignment='Neutral', race='Half-Elf',
  250.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  251.  
  252.     define Layla = Character(name="[laylaName]", who_color=laylaColor, health=100, stamina=110, magic=95,
  253.                             strength=6, agility=8, perception=5, intellect=5,
  254.                             endurance=3, charisma=4, willpower=4, luck=3,
  255.                             alignment='Neutral', race='Half-Elf',
  256.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  257.  
  258.     # Dark Elves
  259.     define Lilith = Character(name="[lilithName]", who_color=lilithColor, health=95, stamina=105, magic=110,
  260.                             strength=6, agility=8, perception=7, intellect=7,
  261.                             endurance=3, charisma=4, willpower=4, luck=3,
  262.                             alignment='Neutral', race='Dark Elf',
  263.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  264.  
  265.     define Zephyra = Character(name="[zephyraName]", who_color=zephyraColor, health=90, stamina=100, magic=105,
  266.                             strength=5, agility=7, perception=6, intellect=6,
  267.                             endurance=3, charisma=4, willpower=4, luck=3,
  268.                             alignment='Neutral', race='Dark Elf',
  269.                             fame=1, stealth=3, crafting='Skilled', dodge=3)
  270.  
  271.     # Drakorim (Dragons)
  272.     define Ember = Character(name="[emberName]", who_color=emberColor, health=150, stamina=120, magic=150,
  273.                             strength=12, agility=6, perception=5, intellect=8,
  274.                             endurance=10, charisma=3, willpower=5, luck=2,
  275.                             alignment='Neutral', race='Drakorim',
  276.                             fame=3, stealth=1, crafting='Prospect', dodge=1)
  277.  
  278.     define Vespera = Character(name="[vesperaName]", who_color=vesperaColor, health=145, stamina=115, magic=145,
  279.                             strength=11, agility=5, perception=4, intellect=7,
  280.                             endurance=9, charisma=3, willpower=4, luck=2,
  281.                             alignment='Neutral', race='Drakorim',
  282.                             fame=3, stealth=1, crafting='Prospect', dodge=1)
  283.  
  284.     # Astralis (Godly beings)
  285.     define Aurora = Character(name="[auroraName]", who_color=auroraColor, health=110, stamina=120, magic=180,
  286.                             strength=8, agility=7, perception=8, intellect=12,
  287.                             endurance=5, charisma=4, willpower=8, luck=4,
  288.                             alignment='Neutral', race='Astralis',
  289.                             fame=5, stealth=1, crafting='Maestro', dodge=2)
  290.  
  291.     define Lyra = Character(name="[lyraName]", who_color=lyraColor, health=105, stamina=115, magic=175,
  292.                             strength=7, agility=6, perception=7, intellect=11,
  293.                             endurance=4, charisma=4, willpower=7, luck=3,
  294.                             alignment='Neutral', race='Astralis',
  295.                             fame=4, stealth=1, crafting='Skilled', dodge=2)
  296.  
  297.     # Umbraxis (Stealthy beings)
  298.     define Rhai = Character(name="[rhaiName]", who_color=rhaiColor, health=100, stamina=110, magic=100,
  299.                             strength=7, agility=9, perception=8, intellect=6,
  300.                             endurance=4, charisma=4, willpower=4, luck=3,
  301.                             alignment='Neutral', race='Umbraxis',
  302.                             fame=2, stealth=5, crafting='Artisan', dodge=3)
  303.  
  304.     define Elhri = Character(name="[elhriName]", who_color=elhriColor, health=95, stamina=105, magic=95,
  305.                             strength=6, agility=8, perception=7, intellect=5,
  306.                             endurance=3, charisma=4, willpower=4, luck=2,
  307.                             alignment='Neutral', race='Umbraxis',
  308.                             fame=1, stealth=4, crafting='Prospect', dodge=2)
  309.  
  310.     # Eventides (Intelligent, Stealthy beings)
  311.     define Phaera = Character(name="[phaeraName]", who_color=phaeraColor, health=100, stamina=115, magic=110,
  312.                             strength=7, agility=9, perception=9, intellect=8,
  313.                             endurance=4, charisma=4, willpower=4, luck=3,
  314.                             alignment='Neutral', race='Eventides',
  315.                             fame=2, stealth=4, crafting='Skilled', dodge=3)
  316.  
  317.     define Nyxi = Character(name="[nyxiName]", who_color=nyxiColor, health=95, stamina=110, magic=105,
  318.                             strength=6, agility=8, perception=8, intellect=7,
  319.                             endurance=3, charisma=4, willpower=4, luck=3,
  320.                             alignment='Neutral', race='Eventides',
  321.                             fame=2, stealth=4, crafting='Skilled', dodge=3)
  322.  
  323.     # Somnus (Strong-willed beings)
  324.     define ReiRei = Character(name="[reireiName]", who_color=reireiColor, health=105, stamina=120, magic=120,
  325.                             strength=8, agility=8, perception=7, intellect=7,
  326.                             endurance=4, charisma=3, willpower=8, luck=3,
  327.                             alignment='Neutral', race='Somnus',
  328.                             fame=3, stealth=2, crafting='Skilled', dodge=2)
  329.  
  330.     define Mira = Character(name="[miraName]", who_color=miraColor, health=100, stamina=115, magic=115,
  331.                             strength=7, agility=7, perception=6, intellect=6,
  332.                             endurance=3, charisma=3, willpower=7, luck=2,
  333.                             alignment='Neutral', race='Somnus',
  334.                             fame=2, stealth=2, crafting='Skilled', dodge=2)
  335.  
  336.  
  337. # endregion

Editor

You can edit this paste and save as new:


File Description
  • Chara
  • Paste Code
  • 08 May-2024
  • 14.66 Kb
You can Share it: