You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
4.2 KiB
114 lines
4.2 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Yokoka’s Quest Fan Character Profile Generator</title>
|
|
</head>
|
|
<body>
|
|
<h1>Yokoka’s Quest-style Profile generator</h1>
|
|
<h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLEASE DO NOT USE YET</h1>
|
|
<% if args %>
|
|
<h2>Information Gathered</h2>
|
|
<h3>General Information</h3>
|
|
<dl>
|
|
<dt>Name</dt>
|
|
<dd><%= args.name.v %></dd>
|
|
<dt>Avatar</dt>
|
|
<dd><img src="data:<%= args.avatar.t -%>;base64,<%= encoder(args.avatar.v) %>" /></dd>
|
|
<dt>Is Leader</dt>
|
|
<dd><% if avatar.isLeader and avatar.isLeader.v == 1 then %>YES<% else %>NO<% end %></dd>
|
|
</dl>
|
|
<% end %>
|
|
<form method="POST" action="/cgi/yqtemplate" enctype="multipart/form-data">
|
|
<h2>General Information</h2>
|
|
<label for="name">Name:</label>
|
|
<input type="test" name="name"/><br />
|
|
<label for="avatar">Portrait:</label>
|
|
<input type="file" name="avatar"/><br />
|
|
<label for="isLeader">Party Leader:</label>
|
|
<input type="checkbox" name="is-leader"/><br />
|
|
<h2>Classes and Levels</h2>
|
|
<label for="class1">Class 1:</label>
|
|
<select name="class1">
|
|
<% for _, v in ipairs(classes) do %>
|
|
<option value="<%= v %>"><%= v %></option>
|
|
<% end %>
|
|
</select>
|
|
<label for="class1-lvl">Level:</label>
|
|
<input type="number" name="class1-lvl" min="1"/><br/>
|
|
<label for="class2">Class2:</label>
|
|
<select name="class2">
|
|
<% for _, v in ipairs(classes) do %>
|
|
<option value="<%= v %>"><%= v %></option>
|
|
<% end %>
|
|
</select>
|
|
<label for="class2-lvl">Level:</label>
|
|
<input type="number"name="class2-lvl" min="1"/><br/>
|
|
<label for="class-leaning">
|
|
Class leaning (0 for completely class 1, 100 for completely class 2):
|
|
</label>
|
|
<input type="number" name="class-leaning" min="0" max="100"></br>
|
|
<h2>Stats</h2>
|
|
<label for="stat-luc">Luck</label>
|
|
<input type="number" name="stat-luc" min="0" max="100" />
|
|
<label for="stat-str">Strength</label>
|
|
<input type="number" name="stat-str" min="0" max="100" />
|
|
<label for="stat-sta">Stamina</label>
|
|
<input type="number" name="stat-sta" min="0" max="100"/>
|
|
<label for="stat-agi">Agility</label>
|
|
<input type="number" name="stat-agi" min="0" max="100"/>
|
|
<label for="stat-int">Intelligence</label>
|
|
<input type="number" name="stat-int" min="0" max="100"/>
|
|
<label for="stat-res">Resistance</label>
|
|
<input type="number" name="stat-res" min="0" max="100"/><br/>
|
|
|
|
<h2>Skills</h2>
|
|
<label for="allegiance">Allegiance:</label>
|
|
<input type="text" name="allegiance"/><br />
|
|
<label for="affinity">Affinity:</label>
|
|
<input type="text" name="affinity"/><br />
|
|
<label for="ability">Ability:</label>
|
|
<input type="text" name="ability"/><br />
|
|
<label for="advantage">Advantage:</label>
|
|
<select name="advantage">
|
|
<% for _, v in ipairs(elements) do %>
|
|
<option value="<%= v %>"><%= v %></option>
|
|
<% end %>
|
|
</select><br/>
|
|
<label for="weakness">Weakness</label>
|
|
<select name="weakness">
|
|
<% for _, v in ipairs(elements) do %>
|
|
<option value="<%= v %>"><%= v %></option>
|
|
<% end %>
|
|
</select><br />
|
|
<h2>Equipment</h2>
|
|
<label for="weapon-name">Weapon</label>
|
|
<input type="file" name="weapon-ico" />
|
|
<input type="text" name="weapon-name" /><br />
|
|
<label for="outfit-name">Outfit</label>
|
|
<input type="file" name="outfit-ico" />
|
|
<input type="text" name="outfit-name" /><br />
|
|
<label for="accessory1-name">Accessory 1</label>
|
|
<input type="file" name="accessory1-ico" />
|
|
<input type="text" name="accessory1-name" /><br />
|
|
<label for="accessory2-name">Accessory 2</label>
|
|
<input type="file" name="accessory2-ico" />
|
|
<input type="text" name="accessory2-name" /><br />
|
|
<h2>Generate</h2>
|
|
<input type="submit" value="Generate">
|
|
</form>
|
|
|
|
<hr />
|
|
<p>
|
|
Based on the character profiles in the webcomic
|
|
<a href=https://yokokasquest.com>Yokoka’s Quest</a>
|
|
by Chris Hyacinth R.
|
|
</p>
|
|
<p>
|
|
Assets shared by the author on the
|
|
<a href="https://forums.cisumchronicles.com/" >webcomic’s forums</a>
|
|
.
|
|
</p>
|
|
</body>
|
|
</html>
|
|
|
|
|