|
|
@ -6,7 +6,7 @@ |
|
|
|
<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 %> |
|
|
|
<% if args then %> |
|
|
|
<h2>Information Gathered</h2> |
|
|
|
<h3>General Information</h3> |
|
|
|
<dl> |
|
|
@ -15,7 +15,7 @@ |
|
|
|
<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> |
|
|
|
<dd><%= args.is_leader</dd> |
|
|
|
</dl> |
|
|
|
<% end %> |
|
|
|
<form method="POST" action="/cgi/yqtemplate" enctype="multipart/form-data"> |
|
|
@ -24,8 +24,8 @@ |
|
|
|
<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 /> |
|
|
|
<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"> |
|
|
@ -33,33 +33,33 @@ |
|
|
|
<option value="<%= v %>"><%= v %></option> |
|
|
|
<% end %> |
|
|
|
</select> |
|
|
|
<label for="class1-lvl">Level:</label> |
|
|
|
<input type="number" name="class1-lvl" min="1"/><br/> |
|
|
|
<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"> |
|
|
|
<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> |
|
|
|
<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/> |
|
|
|
<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> |
|
|
@ -81,18 +81,18 @@ |
|
|
|
<% 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 /> |
|
|
|
<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> |
|
|
|