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.
154 lines
5.2 KiB
154 lines
5.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 then %>
|
|
<h2>Information Gathered</h2>
|
|
<h3>General Information</h3>
|
|
<dl>
|
|
<dt>Name</dt>
|
|
<dd>
|
|
<% if args.name then %>
|
|
<%= args.name.v %>
|
|
<% end %>
|
|
</dd>
|
|
<dt>Avatar</dt>
|
|
<dd>
|
|
<% if args.avatar then %>
|
|
<img src="data:<%= args.avatar.t -%>;base64,<%= encoder(args.avatar.v) %>" />
|
|
<% end %>
|
|
</dd>
|
|
<dt>Is Leader</dt>
|
|
<dd>
|
|
<% if args.is_leader and args.is_leader.v == "on" then %>
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" />
|
|
<% else %>
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" />
|
|
<% end %>
|
|
</dd>
|
|
</dl>
|
|
<h3>Classes and Levels</h3>
|
|
<dl>
|
|
<dt>Class 1</dt>
|
|
<dd>
|
|
<% if args.class1 then %>
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class1].f)) %>" />
|
|
<% if args.class1_lvl then %>
|
|
Lvl <%= args.class1_lvl %>
|
|
<% end %>
|
|
<% end %>
|
|
</dd>
|
|
<dt>Class 2</dt>
|
|
<dd>
|
|
<% if args.class2 then %>
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class2].f)) %>" />
|
|
<% if args.class2_lvl then %>
|
|
Lvl <%= args.class2_lvl %>
|
|
<% end %>
|
|
<% end %>
|
|
</dd>
|
|
<dt>Class leaning</dt><dd>
|
|
<% if args.class_leaning then %>
|
|
<%= args.class_leaning %>
|
|
<% 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="is_leader">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 k, v in ipairs(classes) do -%>
|
|
<option value="<%= k %>"><%= v.n %></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 k, v in ipairs(classes) do -%>
|
|
<option value="<%= k %>"><%= v.n %></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>
|
|
|
|
|