<?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%2Foffensive</id>
	<title>Manual:DIL Manual/offensive - 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%2Foffensive"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/offensive&amp;action=history"/>
	<updated>2026-11-23T20:33:41Z</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/offensive&amp;diff=2814&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/offensive&amp;diff=2814&amp;oldid=prev"/>
		<updated>2026-11-14T23:00:09Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= offensive =&lt;br /&gt;
'''Field''' (integer, read/write; units: characters).&lt;br /&gt;
&lt;br /&gt;
 ch.offensive : integer&lt;br /&gt;
&lt;br /&gt;
A flat bonus (or, below 0, penalty) to the character's attacks. Every melee and spell attack the character makes gets &amp;lt;code&amp;gt;offensive&amp;lt;/code&amp;gt; minus the target's [[Manual:DIL Manual/defensive|defensive]] added to its attack bonus, which with the dice roll decides the damage. A zone file sets it with &amp;lt;code&amp;gt;offensive&amp;lt;/code&amp;gt; in an NPC; it is saved with players.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On an object, a room or null it fails.&lt;br /&gt;
* Stored as a signed 16-bit number: values outside -32768 to 32767 wrap around. There is no other limit, and no access level is needed to assign it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin battle_rage(dur : integer);&lt;br /&gt;
var&lt;br /&gt;
   bonus : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   bonus := 10;&lt;br /&gt;
   self.offensive := self.offensive + bonus;&lt;br /&gt;
   act(&amp;quot;$1n roars and attacks wildly!&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   heartbeat := PULSE_SEC * dur;&lt;br /&gt;
   pause;&lt;br /&gt;
   self.offensive := self.offensive - bonus;&lt;br /&gt;
   act(&amp;quot;$1n calms down.&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives an NPC a better attack for a while and takes it back.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/defensive|defensive]]&lt;br /&gt;
* [[Manual:DIL Manual/attack type|attack_type]]&lt;br /&gt;
* [[Manual:DIL Manual/natural armour|natural_armour]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>