-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenc_output.html
executable file
·142 lines (138 loc) · 8.07 KB
/
enc_output.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>NPC Generation - For the Amar RPG</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous">
<link rel="stylesheet" href="/amar.css">
</head>
<body bgcolor="#ffffff" text="#000000">
<table width="600" border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td>
<center><h2>Random encounters - for Amar RPG</h2></center>
</td>
</tr>
</tbody>
</table>
<table width="1100" border="0" cellspacing="0" cellpadding="1"
align="center" bgcolor="#333333">
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr><td colspan="15" bgcolor="#666666">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tbody>
<tr>
<td colspan="15" width="180" bgcolor="#cccccc"><b><%= @day %>: <%= @terrain %></b> (Level mod = <%= $Level %>)</td>
</tr>
<% if @no_encounter %>
<tr>
<td colspan="15" width="180" bgcolor="#ffffff"><b>NO ENCOUNTER</td>
</tr>
<% end %>
<% if not @no_encounter %>
<tr>
<% if @event %>
<td colspan="14" bgcolor="#ffffff"><b><input type="text" size="115" name="string" value="<%= @e[0]["string"] %>"</b></td>
<% else %>
<td colspan="15" bgcolor="#cccccc"><input type="text" size="30" name="enc_attitude" value="<%= @enc_attitude %>"</td>
<% end %>
</tr>
<% if not @event %>
<% @enc_number.times do |i| %>
<tr>
<td width="180" bgcolor="#ffffff"><b><input type="text" size="30" name="string" value="<%= @e[i]["string"] %>"</b></td>
<td width="40" bgcolor="#cccccc"><b>SIZ</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="size" value="<%= @e[i]["size"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>STR</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="strength" value="<%= @e[i]["strength"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>END</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="endurance" value="<%= @e[i]["endurance"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>AWR</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="awareness" value="<%= @e[i]["awareness"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>MAG</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="mag" value="<%= @e[i]["mag"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Ddg</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="dodge" value="<%= @e[i]["dodge"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>RS</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="reaction" value="<%= @e[i]["reaction"] %>"</td>
</tr>
<% if @e[i]["mag_lore"] %>
<tr>
<td bgcolor="#ffffff"></td>
<td colspan="3" align="right" width="40" bgcolor="#cccccc"><b>Magic type</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="5" name="mag_type" value="<%= @e[i]["mag_type"] %>"</td>
<td colspan="3" align="right" width="40" bgcolor="#cccccc"><b>Magic lore</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="mag_lore" value="<%= @e[i]["mag_lore"] %>"</td>
<td colspan="3" align="right" width="40" bgcolor="#cccccc"><b>Spells</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="spells" value="<%= @e[i]["spells"] %>"</td>
<td colspan="2" bgcolor="#cccccc"></td>
</tr>
<% end %>
<tr>
<td width="180" bgcolor="#ffffff"><input type="text" style="text-align: right" size="30" name="wpn_name" value="<%= @e[i]["wpn_name"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Skill</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="wpn_skill" value="<%= @e[i]["wpn_skill"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Ini</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="wpn_ini" value="<%= @e[i]["wpn_ini"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Off</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="wpn_off" value="<%= @e[i]["wpn_off"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Def</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="wpn_def" value="<%= @e[i]["wpn_def"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Dam</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="wpn_dam" value="<%= @e[i]["wpn_dam"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>AP/BP</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="ap" value="<%= @e[i]["ap"] %> / <%= @e[i]["bp"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Stat</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="bp" value="<%= @e[i]["status"] %>"</td>
</tr>
<% if @e[i]["msl_name"] %>
<tr>
<td width="180" bgcolor="#ffffff"><input type="text" style="text-align: right" size="30" name="msl_name" value="<%= @e[i]["msl_name"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Skill</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="msl_skill" value="<%= @e[i]["msl_skill"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Ini</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="msl_ini" value="<%= @e[i]["msl_ini"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Off</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="msl_off" value="<%= @e[i]["msl_off"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Dam</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="msl_dam" value="<%= @e[i]["msl_dam"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Rng</b></td>
<td width="30" bgcolor="#ffffff"><input type="text" size="2" name="msl_rng" value="<%= @e[i]["msl_rng"] %>"</td>
<td width="40" bgcolor="#cccccc"><b>Note</b></td>
<td colspan="3" width="30" bgcolor="#ffffff"><input type="text" size="18" name="note" value=""</td>
</tr>
<% end %>
<tr>
<td colspan="16" bgcolor="#cccccc"></td>
</tr>
<% end %>
<% end %>
<% end %>
</tbody>
</table>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br />
<table width="480" border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td align="center">
<p><button class="pure-button button-download" onclick="location.href = 'saved/encounter.txt';" > Download encounter </button></p>
<form name="new" method="post" action="/cgi-bin/html_enc_input.rb">
<input type="submit" name="new" value=" New random encounter " class="pure-button button-enc"></form>
<p><button class="pure-button button-reload" onClick="history.go(0);"> Reload with same values </button></p>
<p><button class="pure-button button-front" onclick="location.href = '/amar.html';" > Front page </button></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>