<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Health_scripts</id>
	<title>Health scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Health_scripts"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Health_scripts&amp;action=history"/>
	<updated>2026-04-21T05:31:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Health_scripts&amp;diff=2366&amp;oldid=prev</id>
		<title>Qrow: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Health_scripts&amp;diff=2366&amp;oldid=prev"/>
		<updated>2026-03-03T23:55:46Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:55, 3 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Health_scripts&amp;diff=2365&amp;oldid=prev</id>
		<title>interemmanuel&gt;Maddox: another formatting fix</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Health_scripts&amp;diff=2365&amp;oldid=prev"/>
		<updated>2017-09-21T18:25:21Z</updated>

		<summary type="html">&lt;p&gt;another formatting fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Get the health of the unit in AnimDef==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*read the &amp;quot;damage&amp;quot; full health in UnitDef data:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
local maxhealth&lt;br /&gt;
local percenthealth,health,maxHealth,paralyzeDamage,captureProgress,buildProgress&lt;br /&gt;
&lt;br /&gt;
health,maxHealth,paralyzeDamage,captureProgress,buildProgress=Spring.GetUnitHealth(unitID)&lt;br /&gt;
&lt;br /&gt;
percenthealth=(health/maxHealth)*100&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*print all the data in the chat box and infolog for control :&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
Spring.Echo(&amp;quot;health=&amp;quot;..health,&amp;quot;maxHealth=&amp;quot;..maxHealth,&amp;quot;paralyzeDamage=&amp;quot;..paralyzeDamage,&lt;br /&gt;
&amp;quot;captureProgress=&amp;quot;..captureProgress,&amp;quot;buildProgress=&amp;quot;..buildProgress,&amp;quot;percenthealth=&amp;quot;..percenthealth..&amp;quot; %&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
--health=19921.25390625,maxHealth=20000,paralyzeDamage=0,captureProgress=0,buildProgress=1,percenthealth=99.606269836426 %&lt;br /&gt;
(unitID)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
**note the buildprogress and captureprogress values are in the range 0 to 1 (1 = complete)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[[SpringRtsTutorialAnimDef]] return to the list of animDef exemples&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Emmanuel]]&lt;/div&gt;</summary>
		<author><name>interemmanuel&gt;Maddox</name></author>
	</entry>
</feed>