<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.alandfaraway.info/Wiki/index.php?action=history&amp;feed=atom&amp;title=Spell_Scripting</id>
		<title>Spell Scripting - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.alandfaraway.info/Wiki/index.php?action=history&amp;feed=atom&amp;title=Spell_Scripting"/>
		<link rel="alternate" type="text/html" href="https://www.alandfaraway.info/Wiki/index.php?title=Spell_Scripting&amp;action=history"/>
		<updated>2026-04-27T07:57:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://www.alandfaraway.info/Wiki/index.php?title=Spell_Scripting&amp;diff=2942&amp;oldid=prev</id>
		<title>Foambats4all at 18:18, 16 October 2017</title>
		<link rel="alternate" type="text/html" href="https://www.alandfaraway.info/Wiki/index.php?title=Spell_Scripting&amp;diff=2942&amp;oldid=prev"/>
				<updated>2017-10-16T18:18:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&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;' lang='en'&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 18:18, 16 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&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 colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Technical Manuals]]&lt;/ins&gt;&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;quot;Spells&amp;quot; may be many things, from an ability, an item property, to an actual [[Spell]].&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;quot;Spells&amp;quot; may be many things, from an ability, an item property, to an actual [[Spell]].&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;/table&gt;</summary>
		<author><name>Foambats4all</name></author>	</entry>

	<entry>
		<id>https://www.alandfaraway.info/Wiki/index.php?title=Spell_Scripting&amp;diff=1465&amp;oldid=prev</id>
		<title>Foambats4all: Created page with &quot;&quot;Spells&quot; may be many things, from an ability, an item property, to an actual Spell.  Creating a spell typically starts with adding a new row to the relevant 2DA file. ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.alandfaraway.info/Wiki/index.php?title=Spell_Scripting&amp;diff=1465&amp;oldid=prev"/>
				<updated>2014-01-31T22:19:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;quot;Spells&amp;quot; may be many things, from an ability, an item property, to an actual &lt;a href=&quot;/wiki/Spell&quot; title=&quot;Spell&quot;&gt;Spell&lt;/a&gt;.  Creating a spell typically starts with adding a new row to the relevant &lt;a href=&quot;/Wiki/index.php?title=2DA&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;2DA (page does not exist)&quot;&gt;2DA&lt;/a&gt; file. ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;quot;Spells&amp;quot; may be many things, from an ability, an item property, to an actual [[Spell]].&lt;br /&gt;
&lt;br /&gt;
Creating a spell typically starts with adding a new row to the relevant [[2DA]] file. See the [[spells.2da]] information for specifics for each column.&lt;br /&gt;
&lt;br /&gt;
== Impact Script ==&lt;br /&gt;
The value of the ''ImpactScript'' column is the name of the script that will fire when this spell is triggered. The [[acr_spells_i.nss]] library contains many useful functions for defining spells.&lt;br /&gt;
&lt;br /&gt;
A typical impact script will follow this shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;// Required includes.&lt;br /&gt;
#include &amp;quot;acr_spells_i&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// The entry point for our spell impact script.&lt;br /&gt;
void main() {&lt;br /&gt;
	// Precast event. Required to return TRUE to proceed.&lt;br /&gt;
	if ( !ACR_PrecastEvent() ) return;&lt;br /&gt;
	&lt;br /&gt;
	// Get who is casting the spell.&lt;br /&gt;
	object oCaster = OBJECT_SELF;&lt;br /&gt;
	&lt;br /&gt;
	// Get who or what they are casting the spell at.&lt;br /&gt;
	object oTarget = GetSpellTargetObject();&lt;br /&gt;
	&lt;br /&gt;
	// Get the caster level for the spell.&lt;br /&gt;
	int iCasterLevel = ACR_GetCorrectCasterLevel( oCaster );&lt;br /&gt;
	&lt;br /&gt;
	// Our spell will last 1 hour per caster level.&lt;br /&gt;
	float fDuration = ACR_GetSpellDuration( oCaster, ACR_DURATION_TYPE_PER_CL, ACR_DURATION_1H );&lt;br /&gt;
	&lt;br /&gt;
	// Do our fancy spell effects...&lt;br /&gt;
	[...]&lt;br /&gt;
	&lt;br /&gt;
	// Post-cast event. Cleans up spell data.&lt;br /&gt;
	ACR_PostcastEvent();&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Foambats4all</name></author>	</entry>

	</feed>