<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fgetaffects%28%29</id>
	<title>Manual:DIL Manual/getaffects() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fgetaffects%28%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/getaffects()&amp;action=history"/>
	<updated>2026-09-16T09:51:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/getaffects()&amp;diff=893&amp;oldid=prev</id>
		<title>Papi: Created page with &quot;= stringlist getaffects(u : unitptr) =    u : The unit to scan for affects   result : Returns stringlist of affects as described below.  '''Example''':    sl := getaffects(sel...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/getaffects()&amp;diff=893&amp;oldid=prev"/>
		<updated>2022-03-06T22:24:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= stringlist getaffects(u : unitptr) =    u : The unit to scan for affects   result : Returns stringlist of affects as described below.  &amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:    sl := getaffects(sel...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= stringlist getaffects(u : unitptr) =&lt;br /&gt;
&lt;br /&gt;
  u : The unit to scan for affects&lt;br /&gt;
  result : Returns stringlist of affects as described below.&lt;br /&gt;
&lt;br /&gt;
'''Example''':&lt;br /&gt;
&lt;br /&gt;
  sl := getaffects(self);&lt;br /&gt;
&lt;br /&gt;
For each affect on a unit, two strings are added to the stringlist.&lt;br /&gt;
The first string is the description of what gets modified, e.g. an &lt;br /&gt;
ability. The second string contains the three data value data0,data1&lt;br /&gt;
and data2, as well as the duration left.&lt;br /&gt;
&lt;br /&gt;
Could look like this:&lt;br /&gt;
&lt;br /&gt;
  {&amp;quot;Ability Adjustment&amp;quot;, &amp;quot;6,6,0,-1&amp;quot;,&lt;br /&gt;
   &amp;quot;Weapon adjustment&amp;quot;, &amp;quot;12,14,0,-1&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
Use the [[Manual:DIL_Manual/split()|split()]] command to separate the numerical values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; [[Manual:DIL_Manual/isaff()|isaff()]]&lt;br /&gt;
  &amp;gt; [[Manual:DIL_Manual/addaff()|addaff()]]&lt;br /&gt;
  &amp;gt; [[Manual:DIL_Manual/getaffects()|getaffects()]]&lt;/div&gt;</summary>
		<author><name>Papi</name></author>
		
	</entry>
</feed>