<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chronocrash.com/openbor/wiki/index.php?action=history&amp;feed=atom&amp;title=Ondoattackscript</id>
	<title>Ondoattackscript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://chronocrash.com/openbor/wiki/index.php?action=history&amp;feed=atom&amp;title=Ondoattackscript"/>
	<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;action=history"/>
	<updated>2026-11-25T14:44:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=905&amp;oldid=prev</id>
		<title>Dcurrent at 23:26, 17 August 2026</title>
		<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=905&amp;oldid=prev"/>
		<updated>2026-08-17T23:26:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:26, 17 August 2026&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-l298&quot;&gt;Line 298:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 298:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Didblockscript]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Didblockscript]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Script Overview]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Script Overview]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Openbor]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Model]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Model]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script Events]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script Events]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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:OpenBOR Index]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dcurrent</name></author>
	</entry>
	<entry>
		<id>https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=875&amp;oldid=prev</id>
		<title>Dcurrent at 21:09, 17 August 2026</title>
		<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=875&amp;oldid=prev"/>
		<updated>2026-08-17T21:09:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:09, 17 August 2026&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-l302&quot;&gt;Line 302:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 302:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Model]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Model]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Script]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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:Script Events]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dcurrent</name></author>
	</entry>
	<entry>
		<id>https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=874&amp;oldid=prev</id>
		<title>Dcurrent: /* Practical Combat Patterns */</title>
		<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=874&amp;oldid=prev"/>
		<updated>2026-08-17T21:09:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Practical Combat Patterns&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:09, 17 August 2026&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-l70&quot;&gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Directional armor and weak points&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Directional armor and weak points&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Compare participant facing, positions, and impact coordinates. Ignore attacks against protected regions, or replace them with armor sparks, guard loss, rear-hit reactions, or exposed-point damage.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Compare participant facing, positions, and impact coordinates. Ignore attacks against protected regions, or replace them with armor sparks, guard loss, rear-hit reactions, or exposed-point damage.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| Elemental and attack-class reactions&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| Use &amp;lt;code&amp;gt;attacktype&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt; to turn selected impacts into immunity, healing, resource gain, status changes, alternate reactions, or fully scripted damage.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Shields and boss phase gates&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Shields and boss phase gates&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dcurrent</name></author>
	</entry>
	<entry>
		<id>https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=873&amp;oldid=prev</id>
		<title>Dcurrent at 21:01, 17 August 2026</title>
		<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=873&amp;oldid=prev"/>
		<updated>2026-08-17T21:01:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;amp;diff=873&amp;amp;oldid=872&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Dcurrent</name></author>
	</entry>
	<entry>
		<id>https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=872&amp;oldid=prev</id>
		<title>Dcurrent: Created page with &quot;&lt;code&gt;ondoattackscript&lt;/code&gt; is a model event that runs when an entity&#039;s attack becomes a candidate to hit another entity. OpenBOR invokes the recipient&#039;s script first and the conferring entity&#039;s script second, before native block, counter, and damage resolution.  The event is an attack-interception hook rather than hit confirmation. Scripts may inspect the proposed attack, coordinate custom responses, or cancel native handling through the shared last-hit confirmation v...&quot;</title>
		<link rel="alternate" type="text/html" href="https://chronocrash.com/openbor/wiki/index.php?title=Ondoattackscript&amp;diff=872&amp;oldid=prev"/>
		<updated>2026-08-17T20:39:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; is a model event that runs when an entity&amp;#039;s attack becomes a candidate to hit another entity. OpenBOR invokes the recipient&amp;#039;s script first and the conferring entity&amp;#039;s script second, before native block, counter, and damage resolution.  The event is an attack-interception hook rather than hit confirmation. Scripts may inspect the proposed attack, coordinate custom responses, or cancel native handling through the shared last-hit confirmation v...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; is a model event that runs when an entity&amp;#039;s attack becomes a candidate to hit another entity. OpenBOR invokes the recipient&amp;#039;s script first and the conferring entity&amp;#039;s script second, before native block, counter, and damage resolution.&lt;br /&gt;
&lt;br /&gt;
The event is an attack-interception hook rather than hit confirmation. Scripts may inspect the proposed attack, coordinate custom responses, or cancel native handling through the shared last-hit confirmation value. Use [[Didhitscript]] when logic should run only after OpenBOR accepts a hit.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ondoattackscript {path}&lt;br /&gt;
&lt;br /&gt;
# Default&lt;br /&gt;
# No Ondoattack script&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;{path}&amp;lt;/code&amp;gt; - Path to an OpenBOR Script source file.&lt;br /&gt;
* The command belongs in a model definition.&lt;br /&gt;
* OpenBOR loads and compiles the script with the model.&lt;br /&gt;
* The script&amp;#039;s return value is ignored.&lt;br /&gt;
&lt;br /&gt;
Example model definition:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
name example_character&lt;br /&gt;
type enemy&lt;br /&gt;
&lt;br /&gt;
ondoattackscript data/scripts/example_ondoattack.c&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Event code may also be embedded directly in the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;br /&gt;
ondoattackscript @script&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
    void self       = getlocalvar(&amp;quot;self&amp;quot;);&lt;br /&gt;
    void other      = getlocalvar(&amp;quot;other&amp;quot;);&lt;br /&gt;
    int which       = getlocalvar(&amp;quot;which&amp;quot;);&lt;br /&gt;
    int attack_type = getlocalvar(&amp;quot;attacktype&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
@end_script&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Event Scope ==&lt;br /&gt;
&lt;br /&gt;
OpenBOR invokes &amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; for candidate impacts that reach the attack-resolution stage. Relevant native paths include ordinary attack-box collisions, active item attack-box collisions, and configured damage on landing.&lt;br /&gt;
&lt;br /&gt;
Preliminary rules are evaluated before the event. These include collision, target life state, invincibility, faction permission, next-hit timing, attack-ID duplication, ground-hit permission, juggle availability, and the presence of a take-damage handler. Rejected candidates do not invoke the event.&lt;br /&gt;
&lt;br /&gt;
Passing the preliminary rules does not guarantee a hit. Native processing may still reject the candidate after both scripts run, or may resolve it as a block or counter. Consequently, this event can run without a later Didhit event.&lt;br /&gt;
&lt;br /&gt;
Ordinary item pickup paths may invoke an item&amp;#039;s collection script directly. &amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; should not be treated as a universal item-collection callback.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt; is always the entity whose model owns the currently executing script. For a projectile impact, the projectile is the conferring entity; OpenBOR does not automatically substitute its owner.&lt;br /&gt;
&lt;br /&gt;
== Execution Order ==&lt;br /&gt;
&lt;br /&gt;
For an ordinary candidate impact, OpenBOR performs the relevant operations in this order:&lt;br /&gt;
&lt;br /&gt;
# Confirms collision and preliminary attack eligibility.&lt;br /&gt;
# Initializes the shared last-hit context with confirmation enabled.&lt;br /&gt;
# Runs the recipient&amp;#039;s &amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;which = EXCHANGE_RECIPIENT&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Runs the conferring entity&amp;#039;s &amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;which = EXCHANGE_CONFERRER&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Continues only when the shared last-hit confirmation remains enabled.&lt;br /&gt;
# Applies remaining identity, ownership, projectile, block, counter, and take-damage rules.&lt;br /&gt;
# Runs later events, including [[Didblockscript]] or [[Didhitscript]], when their conditions are met.&lt;br /&gt;
&lt;br /&gt;
Both Ondoattack scripts operate on the same last-hit context. The recipient runs first, the conferrer runs second, and the value remaining after the second callback controls native continuation. Setting &amp;lt;code&amp;gt;lasthitc&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; in the recipient&amp;#039;s script does not prevent the conferrer&amp;#039;s script from running.&lt;br /&gt;
&lt;br /&gt;
== Exchange Roles ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;which&amp;lt;/code&amp;gt; local identifies the current entity&amp;#039;s role in the proposed exchange.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Constant&lt;br /&gt;
! Numeric value&lt;br /&gt;
! Current &amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt;&lt;br /&gt;
! Execution order&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EXCHANGE_RECIPIENT&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;&lt;br /&gt;
| Recipient or defender&lt;br /&gt;
| First&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EXCHANGE_CONFERRER&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;&lt;br /&gt;
| Attacker, projectile, or other entity conferring the attack&lt;br /&gt;
| Second&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Comparing &amp;lt;code&amp;gt;which&amp;lt;/code&amp;gt; with named constants is clearer and safer than relying on raw numeric values.&lt;br /&gt;
&lt;br /&gt;
== Local Variables ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Local variable&lt;br /&gt;
! Type&lt;br /&gt;
! Value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt;&lt;br /&gt;
| Entity pointer&lt;br /&gt;
| Entity whose Ondoattack script is currently running.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;other&amp;lt;/code&amp;gt;&lt;br /&gt;
| Entity pointer&lt;br /&gt;
| Other participant in the exchange. Recipient scripts receive the conferrer; conferrer scripts receive the recipient.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;damage&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Raw &amp;lt;code&amp;gt;attack.damage.force&amp;lt;/code&amp;gt; at the time of the event. This is not final HP loss.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;drop&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Raw &amp;lt;code&amp;gt;attack.reaction.fall.force&amp;lt;/code&amp;gt; - the attack&amp;#039;s knockdown force.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;attacktype&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Internal attack-type identifier. Compare it with named &amp;lt;code&amp;gt;ATK_*&amp;lt;/code&amp;gt; constants from &amp;lt;code&amp;gt;openborconstant()&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;noblock&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Raw &amp;lt;code&amp;gt;attack.block.penetrate&amp;lt;/code&amp;gt; value. The local retains its legacy name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;guardcost&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Raw &amp;lt;code&amp;gt;attack.block.cost&amp;lt;/code&amp;gt; value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;jugglecost&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Attack&amp;#039;s juggle-point cost.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pauseadd&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Raw &amp;lt;code&amp;gt;attack.reaction.pause.time&amp;lt;/code&amp;gt; in logical clock ticks.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Creator-defined &amp;lt;code&amp;gt;attack.tag&amp;lt;/code&amp;gt; metadata.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;which&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Current exchange role: &amp;lt;code&amp;gt;EXCHANGE_RECIPIENT&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;EXCHANGE_CONFERRER&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;attack_id&amp;lt;/code&amp;gt;&lt;br /&gt;
| Integer&lt;br /&gt;
| Current outgoing attack ID used by native duplicate-hit control. Both callbacks receive the same value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;attack_id&amp;lt;/code&amp;gt; is not an entity ID or collision-box index. Synthetic landing-damage events may supply &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;. The local name includes the underscore; &amp;lt;code&amp;gt;attackid&amp;lt;/code&amp;gt; is not the current event local.&lt;br /&gt;
&lt;br /&gt;
Numeric attack locals are copied from the current attack when each callback begins. Assigning new values to these local variables does not write them back to native attack data. Use the last-hit interface when native context must be changed.&lt;br /&gt;
&lt;br /&gt;
== Cancelling Native Hit Handling ==&lt;br /&gt;
&lt;br /&gt;
The shared OpenBOR variant &amp;lt;code&amp;gt;lasthitc&amp;lt;/code&amp;gt; exposes the current last-hit confirmation flag. Collision setup normally initializes it to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Setting it to &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; during Ondoattack tells the engine to abandon native handling after both callbacks finish.&lt;br /&gt;
&lt;br /&gt;
The following recipient-side example cancels native handling for freeze attacks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
    int which       = getlocalvar(&amp;quot;which&amp;quot;);&lt;br /&gt;
    int attack_type = getlocalvar(&amp;quot;attacktype&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    if(which != openborconstant(&amp;quot;EXCHANGE_RECIPIENT&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    if(attack_type == openborconstant(&amp;quot;ATK_FREEZE&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
        changeopenborvariant(&amp;quot;lasthitc&amp;quot;, 0);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cancellation prevents the normal block, counter, damage, and Didhit processing for that candidate. Custom effects or responses may be performed before clearing the flag.&lt;br /&gt;
&lt;br /&gt;
The conferrer&amp;#039;s callback still runs after the example clears &amp;lt;code&amp;gt;lasthitc&amp;lt;/code&amp;gt;. If that later callback sets the flag back to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, native handling resumes. Projects that cancel from the recipient side should establish a clear convention for conferrer scripts.&lt;br /&gt;
&lt;br /&gt;
Returning &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, or another value from &amp;lt;code&amp;gt;main()&amp;lt;/code&amp;gt; does not accept or cancel the impact. OpenBOR ignores the script return value for this event.&lt;br /&gt;
&lt;br /&gt;
== Shared Last-Hit Context ==&lt;br /&gt;
&lt;br /&gt;
Ondoattack scripts may inspect the full candidate through OpenBOR&amp;#039;s last-hit variants.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Variant&lt;br /&gt;
! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthitc&amp;lt;/code&amp;gt;&lt;br /&gt;
| Reads or changes candidate confirmation.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthit_attack&amp;lt;/code&amp;gt;&lt;br /&gt;
| Provides the current attack object for property access.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthit_attacker&amp;lt;/code&amp;gt;&lt;br /&gt;
| Provides the entity conferring the attack.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthit_target&amp;lt;/code&amp;gt;&lt;br /&gt;
| Provides the proposed recipient.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthitt&amp;lt;/code&amp;gt;&lt;br /&gt;
| Reads or changes the current attack type.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lasthitx&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lasthity&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lasthitz&amp;lt;/code&amp;gt;&lt;br /&gt;
| Provide the recorded impact coordinates.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Read these values with &amp;lt;code&amp;gt;openborvariant()&amp;lt;/code&amp;gt;. Writable variants may be changed with &amp;lt;code&amp;gt;changeopenborvariant()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Since the recipient callback runs first, native context changes it makes can be visible to the conferrer&amp;#039;s callback. For example, changing &amp;lt;code&amp;gt;lasthitt&amp;lt;/code&amp;gt; in the recipient callback changes the attack type used to populate the later conferrer&amp;#039;s &amp;lt;code&amp;gt;attacktype&amp;lt;/code&amp;gt; local. Treat such changes as shared state rather than private per-entity data.&lt;br /&gt;
&lt;br /&gt;
== Role-Specific Example ==&lt;br /&gt;
&lt;br /&gt;
This example shows one file shared by several models. Recipient logic may reject a tagged attack, while conferrer logic records that the candidate reached Ondoattack processing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
    void self    = getlocalvar(&amp;quot;self&amp;quot;);&lt;br /&gt;
    void other   = getlocalvar(&amp;quot;other&amp;quot;);&lt;br /&gt;
    int which    = getlocalvar(&amp;quot;which&amp;quot;);&lt;br /&gt;
    int tag      = getlocalvar(&amp;quot;tag&amp;quot;);&lt;br /&gt;
    int attack_id = getlocalvar(&amp;quot;attack_id&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    if(which == openborconstant(&amp;quot;EXCHANGE_RECIPIENT&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
        if(tag == 42)&lt;br /&gt;
        {&lt;br /&gt;
            changeopenborvariant(&amp;quot;lasthitc&amp;quot;, 0);&lt;br /&gt;
        }&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    if(which == openborconstant(&amp;quot;EXCHANGE_CONFERRER&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
        log(&amp;quot;Candidate attack reached Ondoattack&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unused variables are retained to demonstrate the usual event setup. Real scripts may pass &amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;other&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;attack_id&amp;lt;/code&amp;gt; into project-specific combat, immunity, parry, statistics, or debugging systems.&lt;br /&gt;
&lt;br /&gt;
== Damage on Landing ==&lt;br /&gt;
&lt;br /&gt;
Configured landing damage also passes through Ondoattack processing. OpenBOR builds a temporary attack, chooses a living opponent as the conferrer when possible, and otherwise uses the landing entity itself. The recipient callback runs before the conferrer callback, following the same confirmation rules as an ordinary candidate impact.&lt;br /&gt;
&lt;br /&gt;
Landing events use a synthetic attack context. Some values, including &amp;lt;code&amp;gt;attack_id&amp;lt;/code&amp;gt;, may therefore be &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; or differ from ordinary attack-box collisions.&lt;br /&gt;
&lt;br /&gt;
== Global Model ==&lt;br /&gt;
&lt;br /&gt;
Unlike Didhit and Onspawn, &amp;lt;code&amp;gt;ondoattackscript&amp;lt;/code&amp;gt; is not automatically forwarded through a model named &amp;lt;code&amp;gt;global_model&amp;lt;/code&amp;gt;. Only the scripts belonging to the two participating entities run. Shared project-wide behavior should be placed in a common script included by participating models or called from their individual Ondoattack scripts.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Event&lt;br /&gt;
! Entity&lt;br /&gt;
! Relative purpose&lt;br /&gt;
|-&lt;br /&gt;
| [[Ondoattackscript]]&lt;br /&gt;
| Recipient first, then conferrer&lt;br /&gt;
| Intercepts a candidate impact before native block, counter, and damage handling. May cancel native processing through &amp;lt;code&amp;gt;lasthitc&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| [[Takedamagescript]]&lt;br /&gt;
| Recipient&lt;br /&gt;
| Runs while native damage and reaction handling are being applied.&lt;br /&gt;
|-&lt;br /&gt;
| [[Didhitscript]]&lt;br /&gt;
| Conferrer&lt;br /&gt;
| Runs after OpenBOR accepts a normal hit, block, qualifying item event, or landing-damage event.&lt;br /&gt;
|-&lt;br /&gt;
| [[Didblockscript]]&lt;br /&gt;
| Defender&lt;br /&gt;
| Runs after a successful native block and applicable guard-cost deduction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Collision]]&lt;br /&gt;
* [[Attack Type]]&lt;br /&gt;
* [[Blocking]]&lt;br /&gt;
* [[Damage Control]]&lt;br /&gt;
* [[Didhitscript]]&lt;br /&gt;
* [[Takedamagescript]]&lt;br /&gt;
* [[Didblockscript]]&lt;br /&gt;
* [[Script Overview]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Openbor]]&lt;br /&gt;
[[Category:Model]]&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>Dcurrent</name></author>
	</entry>
</feed>