<!DOCTYPE html>
<html>
<head>
	<title>Character Leveling Table</title>
	<style>
		table {
  			border-collapse: collapse;
  			width: 100%;
		}
<pre><code>	th, td {
		text-align: left;
		padding: 8px;
		border-bottom: 1px solid #ddd;
	}

	tr:hover {background-color:#f5f5f5;}
&lt;/style&gt;
</code></pre>
</head>
<body>
<pre><code>&lt;h1&gt;Character Leveling Table&lt;/h1&gt;

&lt;table&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th&gt;Level&lt;/th&gt;
			&lt;th&gt;Attribute Points&lt;/th&gt;
			&lt;th&gt;Willpower Points&lt;/th&gt;
			&lt;th&gt;Bone Points&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;?php 
			for($i=1; $i&lt;=1000; $i++) {
				if($i&lt;=1000) {
					$attribute_points = $i * 2;
					$willpower_points = $i * 15;
					$bone_points = $i * 10;
				} else {
					$attribute_points = $i - 1000;
					$willpower_points = 15000 + ($attribute_points-1)*15;
					$bone_points = 10000 + ($attribute_points-1)*10;
				}
				echo &quot;&lt;tr&gt;&quot;;
				echo &quot;&lt;td&gt;{$i}&lt;/td&gt;&quot;;
				echo &quot;&lt;td&gt;{$attribute_points}&lt;/td&gt;&quot;;
				echo &quot;&lt;td&gt;{$willpower_points}&lt;/td&gt;&quot;;
				echo &quot;&lt;td&gt;{$bone_points}&lt;/td&gt;&quot;;
				echo &quot;&lt;/tr&gt;&quot;;
			}
		?&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
</body>
</html>
帮我生成一个HTML页面1-1000级每级给2点1点15的意志1点10的骨1000级以后每升一级给1点属性点

原文地址: https://www.cveoy.top/t/topic/bELO 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录