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.

134 lines
4.9 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Yokoka’s Quest Fan Character Profile Generator</title>
  5. </head>
  6. <body>
  7. <h1>Yokoka’s Quest-style Profile generator</h1>
  8. <h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLEASE DO NOT USE YET</h1>
  9. <% if args then %>
  10. <h2>Information Gathered</h2>
  11. <h3>General Information</h3>
  12. <dl>
  13. <dt>Name</dt>
  14. <dd><%= args.name.v %></dd>
  15. <dt>Avatar</dt>
  16. <dd><img src="data:<%= args.avatar.t -%>;base64,<%= encoder(args.avatar.v) %>" /></dd>
  17. <dt>Is Leader</dt>
  18. <dd>
  19. <% if args.is_leader and args.is_leader.v == "on" then %>
  20. <img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" />
  21. <% else %>
  22. <img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" />
  23. <% end %>c
  24. </dd>
  25. </dl>
  26. <h3>Classes and Levels</h3>
  27. <dl>
  28. <dt>Class 1</dt>
  29. <dd>
  30. <img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class1].f)) %>" />
  31. Lvl <%= args.class1_lvl %>
  32. </dd>
  33. <dt>Class 2</dt>
  34. <dd>
  35. <img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class2].f)) %>" />
  36. Lvl <%= args.class2_lvl %>
  37. </dd>
  38. <dt>Class leaning</dt><dd><%= args.class_leaning %></dd>
  39. </dl>
  40. <% end %>
  41. <form method="POST" action="/cgi/yqtemplate" enctype="multipart/form-data">
  42. <h2>General Information</h2>
  43. <label for="name">Name:</label>
  44. <input type="test" name="name"/><br />
  45. <label for="avatar">Portrait:</label>
  46. <input type="file" name="avatar"/><br />
  47. <label for="is_leader">Party Leader:</label>
  48. <input type="checkbox" name="is_leader"/><br />
  49. <h2>Classes and Levels</h2>
  50. <label for="class1">Class 1:</label>
  51. <select name="class1">
  52. <% for k, v in ipairs(classes) do %>
  53. <option value="<%= k %>"><%= v.n %></option>
  54. <% end %>
  55. </select>
  56. <label for="class1_lvl">Level:</label>
  57. <input type="number" name="class1_lvl" min="1"/><br/>
  58. <label for="class2">Class2:</label>
  59. <select name="class2">
  60. <% for k, v in ipairs(classes) do -%>
  61. <option value="<%= k %>"><%= v.n %></option>
  62. <% end %>
  63. </select>
  64. <label for="class2_lvl">Level:</label>
  65. <input type="number" name="class2_lvl" min="1"/><br/>
  66. <label for="class_leaning">
  67. Class leaning (0 for completely class 1, 100 for completely class 2):
  68. </label>
  69. <input type="number" name="class_leaning" min="0" max="100"></br>
  70. <h2>Stats</h2>
  71. <label for="stat_luc">Luck</label>
  72. <input type="number" name="stat_luc" min="0" max="100" />
  73. <label for="stat_str">Strength</label>
  74. <input type="number" name="stat_str" min="0" max="100" />
  75. <label for="stat_sta">Stamina</label>
  76. <input type="number" name="stat_sta" min="0" max="100"/>
  77. <label for="stat_agi">Agility</label>
  78. <input type="number" name="stat_agi" min="0" max="100"/>
  79. <label for="stat_int">Intelligence</label>
  80. <input type="number" name="stat_int" min="0" max="100"/>
  81. <label for="stat_res">Resistance</label>
  82. <input type="number" name="stat_res" min="0" max="100"/><br/>
  83. <h2>Skills</h2>
  84. <label for="allegiance">Allegiance:</label>
  85. <input type="text" name="allegiance"/><br />
  86. <label for="affinity">Affinity:</label>
  87. <input type="text" name="affinity"/><br />
  88. <label for="ability">Ability:</label>
  89. <input type="text" name="ability"/><br />
  90. <label for="advantage">Advantage:</label>
  91. <select name="advantage">
  92. <% for _, v in ipairs(elements) do %>
  93. <option value="<%= v %>"><%= v %></option>
  94. <% end %>
  95. </select><br/>
  96. <label for="weakness">Weakness</label>
  97. <select name="weakness">
  98. <% for _, v in ipairs(elements) do %>
  99. <option value="<%= v %>"><%= v %></option>
  100. <% end %>
  101. </select><br />
  102. <h2>Equipment</h2>
  103. <label for="weapon_name">Weapon</label>
  104. <input type="file" name="weapon_ico" />
  105. <input type="text" name="weapon_name" /><br />
  106. <label for="outfit_name">Outfit</label>
  107. <input type="file" name="outfit_ico" />
  108. <input type="text" name="outfit_name" /><br />
  109. <label for="accessory1_name">Accessory 1</label>
  110. <input type="file" name="accessory1_ico" />
  111. <input type="text" name="accessory1_name" /><br />
  112. <label for="accessory2_name">Accessory 2</label>
  113. <input type="file" name="accessory2_ico" />
  114. <input type="text" name="accessory2_name" /><br />
  115. <h2>Generate</h2>
  116. <input type="submit" value="Generate">
  117. </form>
  118. <hr />
  119. <p>
  120. Based on the character profiles in the webcomic
  121. <a href=https://yokokasquest.com>Yokoka’s Quest</a>
  122. by Chris Hyacinth R.
  123. </p>
  124. <p>
  125. Assets shared by the author on the
  126. <a href="https://forums.cisumchronicles.com/" >webcomic’s forums</a>
  127. .
  128. </p>
  129. </body>
  130. </html>