adding missing files
This commit is contained in:
18
app/templates/ajax/prof_archanist.html
Normal file
18
app/templates/ajax/prof_archanist.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<h3>Archanist</h3>
|
||||
<p>
|
||||
The Archanists are masters of the arcane arts, wielding the fundamental forces of reality to achieve their goals.
|
||||
They possess a deep understanding of the underlying fabric of existence, allowing them to manipulate the threads
|
||||
of fate, bend time and space to their will, and summon the raw power of the cosmos. Through tireless study,
|
||||
experimentation, and mystical communion with the celestial forces, Archanists have developed a unique blend of
|
||||
magical prowess, strategic insight, and philosophical clarity. They are often sought as counselors, diplomats, and
|
||||
problem-solvers by those in need of guidance or solution to complex challenges.
|
||||
</p>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 8</li>
|
||||
<li>Magic Power: 14</li>
|
||||
<li>Primary Stat: INT</li>
|
||||
</ul>
|
||||
</div>
|
||||
19
app/templates/ajax/prof_assassin.html
Normal file
19
app/templates/ajax/prof_assassin.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<h3>Assassins</h3>
|
||||
<p>
|
||||
The Assassins are stealthy and deadly agents, trained to stalk the shadows and strike without warning. They
|
||||
possess a unique blend of physical agility, mental focus, and cunning strategy, allowing them to move unseen,
|
||||
gather information, and eliminate targets with precision and silence. Through years of rigorous training in the
|
||||
art of espionage, deception, and murder, Assassins have honed their skills to the point where they can blend into
|
||||
the background, become one with the darkness, and disappear into the night like specters. They are often hired as
|
||||
mercenaries, bodyguards, or spies, but those who employ them do so at their own peril.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 10</li>
|
||||
<li>Magic Power: 10</li>
|
||||
<li>Primary Stat: DEX</li>
|
||||
</ul>
|
||||
</div>
|
||||
19
app/templates/ajax/prof_bloodborn.html
Normal file
19
app/templates/ajax/prof_bloodborn.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<h3>Bloodborn</h3>
|
||||
<p>
|
||||
The Bloodborn are unbridled warriors, born of the darkest depths of human nature and forged in the fire of
|
||||
unforgiving violence. They possess a primal connection to their own rage and fury, allowing them to tap into a
|
||||
deep wellspring of strength, speed, and ferocity when faced with adversity. Through generations of brutal training
|
||||
and unrelenting combat, Bloodborn have learned to channel their inner turmoil into a maelstrom of aggression,
|
||||
unleashing devastating attacks that leave foes reeling in terror. They are often seen as outcasts, driven by their
|
||||
own unyielding passions and instincts, but those who dare oppose them do so at the risk of facing an unrelenting
|
||||
storm of bloodlust and fury.
|
||||
</p>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 14</li>
|
||||
<li>Magic Power: 5</li>
|
||||
<li>Primary Stat: STR</li>
|
||||
</ul>
|
||||
</div>
|
||||
17
app/templates/ajax/prof_cleric.html
Normal file
17
app/templates/ajax/prof_cleric.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<h3>Clerics</h3>
|
||||
<p>
|
||||
The Clerics are devoted servants of a higher power, channeling the divine energies to heal, protect, and uplift
|
||||
those around them. They possess a deep understanding of the mysteries of life and death, allowing them to tend to
|
||||
wounds, calm fears, and bring solace to the afflicted. Through their sacred vows and mystical communion with the
|
||||
divine, Clerics have developed a unique blend of spiritual insight, empathetic compassion, and healing artistry.
|
||||
As agents of hope and redemption, they often walk among the sick, the dying, and the grieving, offering comfort,
|
||||
guidance, and the promise of a brighter tomorrow.
|
||||
</p>
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 8</li>
|
||||
<li>Magic Power: 14</li>
|
||||
<li>Primary Stat: WIS</li>
|
||||
</ul>
|
||||
</div>
|
||||
17
app/templates/ajax/prof_guardian.html
Normal file
17
app/templates/ajax/prof_guardian.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<h3>Guardians</h3>
|
||||
<p>
|
||||
The Guardians are holy warriors, sworn to defend the innocent and uphold the principles of justice, honor, and
|
||||
righteousness. They possess a strong sense of duty, unshakeable conviction, and unwavering compassion, guiding
|
||||
them as they stride into battle with valor in their hearts. Through their sacred oath and spiritual connection to
|
||||
a higher power, Guardians have developed a unique blend of martial prowess, moral authority, and divine
|
||||
intervention. As champions of the faithful, they are often called upon to vanquish evil, protect the vulnerable,
|
||||
and defend the sacred realms against darkness and despair.
|
||||
</p>
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 14</li>
|
||||
<li>Magic Power: 5</li>
|
||||
<li>Primary Stat: STR</li>
|
||||
</ul>
|
||||
</div>
|
||||
17
app/templates/ajax/prof_hexist.html
Normal file
17
app/templates/ajax/prof_hexist.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<h3>Hexists</h3>
|
||||
<p>
|
||||
The Hexists are masters of dark and malevolent magic, delighting in the suffering and terror they inspire in
|
||||
others. They possess a twisted understanding of the arcane forces, allowing them to manipulate reality itself to
|
||||
inflict cruel and capricious punishment upon their enemies. Through their mastery of dark arts and infernal pacts,
|
||||
Hexists have developed a unique blend of magical cunning, sadistic glee, and corrupted ambition. As agents of
|
||||
chaos and despair, they often seek to undermine the fabric of society, sow discord, and revel in the misery of
|
||||
others.
|
||||
</p>
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 8</li>
|
||||
<li>Magic Power: 14</li>
|
||||
<li>Primary Stat: INT</li>
|
||||
</ul>
|
||||
</div>
|
||||
16
app/templates/ajax/prof_ranger.html
Normal file
16
app/templates/ajax/prof_ranger.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<h3>Rangers</h3>
|
||||
<p>
|
||||
The Rangers are skilled trackers, hunters, and guardians of the natural world. They possess a deep understanding
|
||||
of the land, its rhythms, and its creatures, allowing them to move unseen, stalk their prey with precision, and
|
||||
track down even the most elusive foes. Through their connection to the wild, Rangers have developed a unique blend
|
||||
of survival skills, stealth, and primal intuition. As champions of the wilderness, they often walk a fine line
|
||||
between hunter and protector, defending the innocent and vanquishing those who would desecrate the land.
|
||||
</p>
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 10</li>
|
||||
<li>Magic Power: 10</li>
|
||||
<li>Primary Stat: DEX</li>
|
||||
</ul>
|
||||
</div>
|
||||
17
app/templates/ajax/prof_warlock.html
Normal file
17
app/templates/ajax/prof_warlock.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<h3>Warlock</h3>
|
||||
<p>
|
||||
The Warlocks are adepts of dark and forbidden magic, forging pacts with malevolent forces to wield power beyond
|
||||
mortal comprehension. They possess a mastery of arcane energies, allowing them to summon eldritch powers,
|
||||
manipulate reality, and bend the fabric of existence to their will. Through their pact with an otherworldly
|
||||
patron, Warlocks have developed a unique blend of magical prowess, psychological manipulation, and shadowy
|
||||
intrigue. As agents of chaos and darkness, they often walk a delicate balance between power and corruption, using
|
||||
their mastery of the arcane to further their own sinister agendas.
|
||||
</p>
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes:</h4>
|
||||
<ul>
|
||||
<li>Health: 8</li>
|
||||
<li>Magic Power: 14</li>
|
||||
<li>Primary Stat: WIS</li>
|
||||
</ul>
|
||||
</div>
|
||||
30
app/templates/ajax/race_avaline.html
Normal file
30
app/templates/ajax/race_avaline.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<h3>Avaline</h3>
|
||||
<p>
|
||||
The Avaline are a divine and majestic people, born from the celestial realm to serve as radiant warriors of the
|
||||
sky. Their physical form is one of elegance and power, with slender bodies, delicate wings, and eyes that shine
|
||||
like stars. With their connection to the divine, they possess exceptional martial prowess, wielding blades that
|
||||
seem to cut through the very fabric of reality. The Avaline are drawn to conflict, not for the sake of bloodshed,
|
||||
but to vanquish darkness and restore balance to a world in need. Their presence on the battlefield is a beacon of
|
||||
hope, inspiring allies and striking fear into the hearts of their enemies.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/avaline.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +5</li>
|
||||
<li>Dexterity (Dex): 0</li>
|
||||
<li>Intelligence (Int): +3</li>
|
||||
<li>Wisdom (Wis): 1</li>
|
||||
<li>Luck (Luk): -2</li>
|
||||
<li>Charisma (Cha): -1</li>
|
||||
<li>Constitution (Con): 0</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
29
app/templates/ajax/race_beastfolk.html
Normal file
29
app/templates/ajax/race_beastfolk.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<h3>Beastfolk</h3>
|
||||
<p>
|
||||
Beastfolk are feral and resilient tribes that have adapted to life in the wilderness, developing a deep connection
|
||||
with the natural world and its creatures. They possess a unique physical form, blending human and animal
|
||||
characteristics, allowing them to move unseen, communicate through scent and sound, and track their prey with
|
||||
ease. Beastfolk are fiercely protective of their territory and those they care about, making them formidable
|
||||
allies or fierce opponents. Despite their primal appearance, they are not mindless beasts, but rather complex
|
||||
individuals with a rich culture and history.
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/beastfolk.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +3</li>
|
||||
<li>Dexterity (Dex): +5</li>
|
||||
<li>Intelligence (Int): +1</li>
|
||||
<li>Wisdom (Wis): -2</li>
|
||||
<li>Luck (Luk): -1</li>
|
||||
<li>Charisma (Cha): 0</li>
|
||||
<li>Constitution (Con): +1</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
30
app/templates/ajax/race_draconian.html
Normal file
30
app/templates/ajax/race_draconian.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<h3>Draconian</h3>
|
||||
<p>
|
||||
The Draconians are a proud and ancient people, born from the union of dragons and terrans. Their physical form is a
|
||||
testament to their draconic heritage, with scales that shimmer like polished gemstones, wings that soar through
|
||||
the skies, and eyes that burn with inner fire. As half-dragon, they possess a unique blend of ferocity,
|
||||
intelligence, and charisma, making them formidable diplomats, warriors, and leaders. The Draconians walk the line
|
||||
between two worlds, bridging the gap between humans and dragons, and often serving as mediators and ambassadors
|
||||
between their respective cultures. Their presence is often accompanied by a hint of smoke and flame, signifying
|
||||
their connection to the primal forces of nature.
|
||||
|
||||
</p>
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/draconian.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +1</li>
|
||||
<li>Dexterity (Dex): +3</li>
|
||||
<li>Intelligence (Int): 0</li>
|
||||
<li>Wisdom (Wis): -2</li>
|
||||
<li>Luck (Luk): 5</li>
|
||||
<li>Charisma (Cha): +1</li>
|
||||
<li>Constitution (Con): -1</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
30
app/templates/ajax/race_dwarf.html
Normal file
30
app/templates/ajax/race_dwarf.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<h3>Dwarf</h3>
|
||||
<p>
|
||||
The Dwarves are a sturdy and proud people, born from the depths of the earth to forge a legacy of resilience and
|
||||
determination. Their physical form is a testament to their craft and industry, with stout bodies, strong limbs,
|
||||
and eyes that shine like polished iron. As skilled artisans and master craftsmen, they possess an unyielding
|
||||
dedication to their work, honing their skills in the depths of mountains and caverns. Dwarves are a people of
|
||||
tradition and heritage, standing guard over ancient secrets, hidden treasures, and forgotten knowledge. Their
|
||||
connection to the earth is deep and abiding, granting them a profound understanding of the natural world and its
|
||||
rhythms.
|
||||
|
||||
</p>
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/dwarf.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +5</li>
|
||||
<li>Dexterity (Dex): -2</li>
|
||||
<li>Intelligence (Int): 0</li>
|
||||
<li>Wisdom (Wis): -1</li>
|
||||
<li>Luck (Luk): +1</li>
|
||||
<li>Charisma (Cha): +1</li>
|
||||
<li>Constitution (Con): +3</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
29
app/templates/ajax/race_elf.html
Normal file
29
app/templates/ajax/race_elf.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<h3>Elves</h3>
|
||||
<p>
|
||||
Elves are an ancient and enigmatic people, known for their striking physical beauty, exceptional magical
|
||||
abilities, and unparalleled connection with nature. They possess a deep understanding of the natural world,
|
||||
allowing them to communicate with animals, manipulate plants, and wield the elements with precision. Elves are
|
||||
highly attuned to their surroundings, making them formidable hunters, skilled archers, and gifted warriors.
|
||||
Despite their refined features, elves are not immune to the harsh realities of life, and they have developed a
|
||||
rich culture that reflects their struggles against the forces of darkness.
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/elf.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): -2</li>
|
||||
<li>Dexterity (Dex): +5</li>
|
||||
<li>Intelligence (Int): +3</li>
|
||||
<li>Wisdom (Wis): 0</li>
|
||||
<li>Luck (Luk): 1</li>
|
||||
<li>Charisma (Cha): 1</li>
|
||||
<li>Constitution (Con): -1</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
32
app/templates/ajax/race_hellion.html
Normal file
32
app/templates/ajax/race_hellion.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<h3>Hellions</h3>
|
||||
<p>
|
||||
The Hellions are a malevolent and enigmatic people, born from the dark recesses of the Shadow Realm to bring
|
||||
terror and chaos into the world. Their physical form is a twisted mockery of humanity, with bodies that seem to
|
||||
shift and writhe like living shadows, eyes that burn with an otherworldly green fire, and skin that seems to
|
||||
absorb the light around them. As half-demon, they possess a unique blend of dark magic, cunning, and charisma,
|
||||
making them formidable manipulators, spies, and assassins. Hellions are drawn to the darker aspects of life,
|
||||
reveling in the fear and suffering of others, and often serving as agents of chaos and destruction for their
|
||||
masters. Their presence is accompanied by an aura of malevolent energy, casting a pall of dread over those around
|
||||
them.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/hellion.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +3</li>
|
||||
<li>Dexterity (Dex): +1</li>
|
||||
<li>Intelligence (Int): +1</li>
|
||||
<li>Wisdom (Wis): 0</li>
|
||||
<li>Luck (Luk): -2</li>
|
||||
<li>Charisma (Cha): +5</li>
|
||||
<li>Constitution (Con): -1</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
31
app/templates/ajax/race_terran.html
Normal file
31
app/templates/ajax/race_terran.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<h3>Terrans</h3>
|
||||
<p>
|
||||
The Terrans are a sturdy and resilient people, born from the rich soil of the land to thrive in the everyday
|
||||
world. Their physical form is unremarkable, yet serviceable, with bodies that adapt to their surroundings, eyes
|
||||
that see clearly through the mundane, and hearts that beat with a deep connection to the earth. As ordinary
|
||||
individuals, they possess an extraordinary capacity for empathy, compassion, and determination, making them
|
||||
formidable mediators, leaders, and guardians of the common good. Terrans are not remarkable in any one way, yet
|
||||
their collective strength lies in their ability to work together, support each other, and build a better world
|
||||
through incremental progress and everyday heroism.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/terran.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +1</li>
|
||||
<li>Dexterity (Dex): +3</li>
|
||||
<li>Intelligence (Int): 0</li>
|
||||
<li>Wisdom (Wis): -2</li>
|
||||
<li>Luck (Luk): +5</li>
|
||||
<li>Charisma (Cha): +1</li>
|
||||
<li>Constitution (Con): -1</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
33
app/templates/ajax/race_vorgath.html
Normal file
33
app/templates/ajax/race_vorgath.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<h3>Vorgath</h3>
|
||||
<p>
|
||||
The Vorgath are a twisted and malevolent people, born from the darkest recesses of existence to bring unrelenting
|
||||
destruction into the world. Their physical form is an affront to nature, with bodies that seem to be perpetually
|
||||
corrupted, eyes that blaze with an otherworldly intensity, and skin that appears to writhe like living darkness.
|
||||
As abominations of the cosmos, they possess a unique blend of dark energy, unnatural resilience, and malevolent
|
||||
willpower, making them formidable enemies, unyielding in their pursuit of chaos and despair. Vorgath are driven by
|
||||
an insatiable hunger for destruction, reveling in the suffering of others, and often serving as agents of darkness
|
||||
and terror for their masters. Their presence is accompanied by an aura of unrelenting malevolence, striking fear
|
||||
into the hearts of all who behold them.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="{{ url_for('static', filename='images/races/vorgath.jpg') }}" style="width: 300px;" alt="Race Image"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6" id="attributes">
|
||||
<h4>Attributes: + / - from 10</h4>
|
||||
<ul>
|
||||
<li>Strength (Str): +5</li>
|
||||
<li>Dexterity (Dex): +3</li>
|
||||
<li>Intelligence (Int): 1</li>
|
||||
<li>Wisdom (Wis): 0</li>
|
||||
<li>Luck (Luk): -1</li>
|
||||
<li>Charisma (Cha): -2</li>
|
||||
<li>Constitution (Con): +3</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
136
app/templates/char/create_char.html
Normal file
136
app/templates/char/create_char.html
Normal file
@@ -0,0 +1,136 @@
|
||||
{% extends "bases/main_base.html" %}
|
||||
|
||||
{% block title %}Admin Panel — Dashboard{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container-fluid vh-100">
|
||||
<div class="row vh-100 align-items-center justify-content-center">
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<div class="card w-400 mw-full mx-auto" style="padding: 20px;">
|
||||
|
||||
<h5 class="card-title text-center">Create Character</h5>
|
||||
|
||||
<form action="" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="text-input" class="required">Name</label>
|
||||
<input type="text" class="form-control mb-4" id="character_name" name="character_name" placeholder="Name your Character" required >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="race_dropdown">Choose Race</label>
|
||||
<select class="form-control mb-4" id="race_dropdown" name="race_dropdown" required >
|
||||
<option value="" disabled selected>Select a Race...</option>
|
||||
<option value="avaline">Avaline - Divine, Strong, Intelligent</option>
|
||||
<option value="beastfolk">Beastfolk - Half Beast, Half Terran</option>
|
||||
<option value="draconian">Draconian - Half Dragon, Half Terran</option>
|
||||
<option value="dwarf">Dwarf - Stout, Strong, Short</option>
|
||||
<option value="elf">Elf - Tall, Slender, Agile</option>
|
||||
<option value="hellion">Hellion - Dark, Shadowy Humanoid</option>
|
||||
<option value="terran">Terran - Some call them Human.</option>
|
||||
<option value="vorgath">Vorgath - Monstrous Evil Humanoid</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="profession_dropdown">Choose Profession</label>
|
||||
<select class="form-control mb-4" id="profession_dropdown" name="profession_dropdown" required >
|
||||
<option value="" disabled selected>Select a Profession...</option>
|
||||
<option value="archanist">Archanist - Magic</option>
|
||||
<option value="assassin">Assassin - Physical</option>
|
||||
<option value="bloodborn">Bloodborn - Physical</option>
|
||||
<option value="cleric">Cleric - Magic</option>
|
||||
<option value="guardian">Guardian - Physical</option>
|
||||
<option value="hexist">Hexist - Magic</option>
|
||||
<option value="ranger">Ranger - Physical</option>
|
||||
<option value="warlock">Warlock - Magic</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="origin_story">Origin Story</label>
|
||||
<textarea class="form-control mb-4" id="origin_story" name="origin_story" rows="10" cols="40" required >{{data.starter_text}}</textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="text_holder" class="col-12 col-md-6">
|
||||
<p>
|
||||
To start playing, we need to help you create your unique character.
|
||||
</p>
|
||||
|
||||
<p>The following fields are required:</p>
|
||||
<ul>
|
||||
<li>Name: This is your character's identity in the game.</li>
|
||||
<li>Race: Choose from our selection of options.</li>
|
||||
<li>Profession: Select from our list of profession (commonly called classes).</li>
|
||||
<li>Origin Story: This section is optional, but can provide additional context for your character.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
// Reference to the dropdown and image
|
||||
const racedropdown = document.getElementById('race_dropdown');
|
||||
const profdropdown = document.getElementById('profession_dropdown');
|
||||
const contentArea = document.getElementById('text_holder');
|
||||
|
||||
racedropdown.addEventListener('change', async function () {
|
||||
const value = this.value;
|
||||
|
||||
const url = `/ajax/races?race=${value}`;
|
||||
|
||||
try {
|
||||
// Fetch HTML fragment from the server
|
||||
const response = await fetch(url);
|
||||
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
||||
const html = await response.text();
|
||||
|
||||
// Replace existing content
|
||||
contentArea.innerHTML = html;
|
||||
} catch (err) {
|
||||
console.error("Error loading content:", err);
|
||||
contentArea.innerHTML = `
|
||||
<div class="alert alert-danger">
|
||||
Failed to load content. Please try again.
|
||||
</div>`;
|
||||
}
|
||||
});
|
||||
|
||||
profdropdown.addEventListener('change', async function () {
|
||||
const value = this.value;
|
||||
|
||||
const url = `/ajax/prof?prof=${value}`;
|
||||
|
||||
try {
|
||||
// Fetch HTML fragment from the server
|
||||
const response = await fetch(url);
|
||||
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
||||
const html = await response.text();
|
||||
|
||||
// Replace existing content
|
||||
contentArea.innerHTML = html;
|
||||
} catch (err) {
|
||||
console.error("Error loading content:", err);
|
||||
contentArea.innerHTML = `
|
||||
<div class="alert alert-danger">
|
||||
Failed to load content. Please try again.
|
||||
</div>`;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user