<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://drl.chaosforge.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3AModArray</id>
		<title>Modding:ModArray - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3AModArray"/>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:ModArray&amp;action=history"/>
		<updated>2026-04-11T16:34:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.1</generator>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:ModArray&amp;diff=1731&amp;oldid=prev</id>
		<title>Game Hunter: i'm on a roll here</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:ModArray&amp;diff=1731&amp;oldid=prev"/>
				<updated>2012-01-27T22:01:24Z</updated>
		
		<summary type="html">&lt;p&gt;i&amp;#039;m on a roll here&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Starting in v0.9.9.4, in addition [[Modding:Item|items]] and [[Modding:ItemSet|item sets]], there are also ModArray objects, commonly referred to in-game as assemblies. These are produced by adding the right combination of mods to a particular item base and confirming that the assembly is to be created.&lt;br /&gt;
&lt;br /&gt;
== Prototype ==&lt;br /&gt;
It is important to note that the id of an item modified by a ModArray object will not change its id to this one: the item base is only being modified by ModArray, and a completely new item is not given to the player.&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;&amp;quot;&lt;br /&gt;
 ! colspan=&amp;quot;3&amp;quot; style=&amp;quot;background: darkred; color: yellow; font-size: 120%; text-align: center&amp;quot;|'''Item Prototype'''&lt;br /&gt;
 {{Table3Col&lt;br /&gt;
  |es=background: #333;&lt;br /&gt;
  |c1=font-weight:bold; text-align:right; vertical-align:top; padding:0px 2px;&lt;br /&gt;
  |c2=vertical-align:top; padding:0px 2px;&lt;br /&gt;
  |c3=padding:0px 2px;&lt;br /&gt;
  |'''string'''|&amp;lt;u&amp;gt;name&amp;lt;/u&amp;gt;|This is the item's name.&lt;br /&gt;
  |'''string'''|id|This is the item's sid. It must be distinct from other string ids. (The numeric id is automatically generated and stored in the nid field of the prototype.) It defaults to the first word of the name in all lowercase.&lt;br /&gt;
  |'''list'''|&amp;lt;u&amp;gt;mods&amp;lt;/u&amp;gt;|This is a list containing the assembly schematic (of the form &amp;lt;tt&amp;gt;mod_shorthand &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; integer&amp;lt;/tt&amp;gt;). The shorthand for each mod is as follows: &amp;lt;nowiki&amp;gt;A = agility, B = bulk, F = firestorm, N = nano, O = onyx, P = power, S = sniper, T = technical.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |'''integer'''|level|This is the degree of complexity relating to the assembly. From a technical standpointg, it is the level of [[Modding:Being#Properties|techbonus]] required for the being to create the assembly. 0 is for basic, 1 is for advanced, 2 is for master.&lt;br /&gt;
  |[[Modding:Item|Item ID]]|request_id|This is the sid of the item required to create the assembly, if only a single item can be made into the assembly.&lt;br /&gt;
  |[[Modding:Constants#ItemTYpe|ItemType]]|request_type|This is the item type required to create the assembly, if only an item type can be made into the assembly.&lt;br /&gt;
  |'''string'''|desc|This is the portion of the schematic description that explains what item base is required to create the assembly. If ''request_id'' or ''request_type'' have been included in the prototype, then this can be left blank.&lt;br /&gt;
  |}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Engine Hooks ==&lt;br /&gt;
Hooks for ModArrays are few, but they serve as the backbone of the entire assembly.&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;&amp;quot;&lt;br /&gt;
 ! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background: darkred; color: yellow; font-size: 120%; text-align: center&amp;quot;|Item Hooks&lt;br /&gt;
{{Table2Col&lt;br /&gt;
  |es=background: #333;&lt;br /&gt;
  |c1=font-weight:bold; text-align:right; vertical-align:top; padding:0px 2px;&lt;br /&gt;
  |c2=padding:0px 2px;&lt;br /&gt;
  |'''boolean'''|[[#modarray_Match|Match]]([[Modding:Item|Item]] self) &lt;br /&gt;
  |'''void'''|[[#modarray_OnApply|OnApply]]([[Modding:Item|Item]] self) &lt;br /&gt;
  |}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Anchor|modarray_Match}}&lt;br /&gt;
;Match([[Modding:Item|Item]] self)&lt;br /&gt;
:Triggers whenever all of the mods in the assembly schematic are placed on a particular item, and returns a value determining whether or not the assembly attempting to be created consists of an appropriate item base. If ''request_id'' and ''request_type'' are insufficient for the needs of a particular assembly, this is used instead. If '''Match''' is included in the ModArray prototype, then a ''desc'' should also be included.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|modarray_OnApply}}&lt;br /&gt;
;OnApply([[Modding:Item|Item]] self)&lt;br /&gt;
:Triggers if the player decides to create the assembly (that is, they press 'y' in response to making it). This is where all modifications to the item are made.&lt;/div&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	</feed>