<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.dspt.info/index.php?action=history&amp;feed=atom&amp;title=How_to_Add_Item_Latents</id>
		<title>How to Add Item Latents - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.dspt.info/index.php?action=history&amp;feed=atom&amp;title=How_to_Add_Item_Latents"/>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;action=history"/>
		<updated>2026-05-11T17:52:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22848&amp;oldid=prev</id>
		<title>Delaide: Edit the link</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22848&amp;oldid=prev"/>
				<updated>2019-05-25T13:02:41Z</updated>
		
		<summary type="html">&lt;p&gt;Edit the link&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:02, 25 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding latent effects to items is similar to [&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http://wiki.dspt.info/index.php/&lt;/del&gt;How_to_Add_Item_Mods adding item modifiers] except you check conditions before activating that mod.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Adding latent effects to items is similar to [&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;How_to_Add_Item_Mods &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| &lt;/ins&gt;adding item modifiers&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;] except you check conditions before activating that mod.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Finding the latent id ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Finding the latent id ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Delaide</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22847&amp;oldid=prev</id>
		<title>Teo: GDI media wiki, it looked perfectly fine in the previw window!!</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22847&amp;oldid=prev"/>
				<updated>2019-05-25T06:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;GDI media wiki, it looked perfectly fine in the previw window!!&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:31, 25 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding the latent effect to the item ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding the latent effect to the item ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to [[How_to_Add_Item_Mods &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;adding item mods&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;]]. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to [[How_to_Add_Item_Mods &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| &lt;/ins&gt;adding item mods]]. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Navigate to the &amp;lt;code&amp;gt;sql&amp;lt;/code&amp;gt; folder and open &amp;lt;code&amp;gt;item_latents.sql&amp;lt;/code&amp;gt;, add a new SQL statement with the item's id, mod to activate if condition is met, value of the mod, latent check, latent param e.g.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Navigate to the &amp;lt;code&amp;gt;sql&amp;lt;/code&amp;gt; folder and open &amp;lt;code&amp;gt;item_latents.sql&amp;lt;/code&amp;gt;, add a new SQL statement with the item's id, mod to activate if condition is met, value of the mod, latent check, latent param e.g.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Teo</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22846&amp;oldid=prev</id>
		<title>Teo: that should be an internal link, not external link</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=22846&amp;oldid=prev"/>
				<updated>2019-05-25T06:30:28Z</updated>
		
		<summary type="html">&lt;p&gt;that should be an internal link, not external link&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:30, 25 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding the latent effect to the item ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding the latent effect to the item ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to [&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http://wiki.dspt.info/index.php/&lt;/del&gt;How_to_Add_Item_Mods adding item mods]. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to [&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;How_to_Add_Item_Mods &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;adding item mods&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)]&lt;/ins&gt;]. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Navigate to the &amp;lt;code&amp;gt;sql&amp;lt;/code&amp;gt; folder and open &amp;lt;code&amp;gt;item_latents.sql&amp;lt;/code&amp;gt;, add a new SQL statement with the item's id, mod to activate if condition is met, value of the mod, latent check, latent param e.g.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Navigate to the &amp;lt;code&amp;gt;sql&amp;lt;/code&amp;gt; folder and open &amp;lt;code&amp;gt;item_latents.sql&amp;lt;/code&amp;gt;, add a new SQL statement with the item's id, mod to activate if condition is met, value of the mod, latent check, latent param e.g.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Teo</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=21754&amp;oldid=prev</id>
		<title>Demolish: Created page with &quot;Adding latent effects to items is similar to [http://wiki.dspt.info/index.php/How_to_Add_Item_Mods adding item modifiers] except you check conditions before activating that mo...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=How_to_Add_Item_Latents&amp;diff=21754&amp;oldid=prev"/>
				<updated>2014-02-01T22:51:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Adding latent effects to items is similar to [http://wiki.dspt.info/index.php/How_to_Add_Item_Mods adding item modifiers] except you check conditions before activating that mo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Adding latent effects to items is similar to [http://wiki.dspt.info/index.php/How_to_Add_Item_Mods adding item modifiers] except you check conditions before activating that mod.&lt;br /&gt;
&lt;br /&gt;
== Finding the latent id ==&lt;br /&gt;
You can find the latent id by navigating to &amp;lt;code&amp;gt;src/map/latent_effect.h&amp;lt;/code&amp;gt;. As well as finding the latent id, you'll also see a description of each latent commented in with the parameters it takes/checks in order for the latent to activate.&lt;br /&gt;
&lt;br /&gt;
== Adding the latent effect to the item ==&lt;br /&gt;
Similar to [http://wiki.dspt.info/index.php/How_to_Add_Item_Mods adding item mods]. &lt;br /&gt;
Navigate to the &amp;lt;code&amp;gt;sql&amp;lt;/code&amp;gt; folder and open &amp;lt;code&amp;gt;item_latents.sql&amp;lt;/code&amp;gt;, add a new SQL statement with the item's id, mod to activate if condition is met, value of the mod, latent check, latent param e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- -------------------------------------------------------&lt;br /&gt;
-- Example Item&lt;br /&gt;
-- -------------------------------------------------------&lt;br /&gt;
INSERT INTO `item_latents` VALUES(ItemId, modId, modValue, latentId, latentParam);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you can't find the latent id in latent_effect.h, it probably isn't coded. Feel free to bug me (demolish) about it in our irc channel and i'll probably code them eventually.&lt;/div&gt;</summary>
		<author><name>Demolish</name></author>	</entry>

	</feed>