<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coffeemud.net:8080/wiki/index.php?action=history&amp;feed=atom&amp;title=BasicScript</id>
	<title>BasicScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coffeemud.net:8080/wiki/index.php?action=history&amp;feed=atom&amp;title=BasicScript"/>
	<link rel="alternate" type="text/html" href="http://coffeemud.net:8080/wiki/index.php?title=BasicScript&amp;action=history"/>
	<updated>2026-05-08T08:34:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://coffeemud.net:8080/wiki/index.php?title=BasicScript&amp;diff=21186&amp;oldid=prev</id>
		<title>Loki: /* Notes */</title>
		<link rel="alternate" type="text/html" href="http://coffeemud.net:8080/wiki/index.php?title=BasicScript&amp;diff=21186&amp;oldid=prev"/>
		<updated>2024-09-17T13:32:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Notes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 13:32, 17 September 2024&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-l29&quot;&gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&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;=Notes=&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;=Notes=&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;.&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; 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;[[Category:UurDin(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Builder&lt;/del&gt;)]]&lt;/div&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;[[Category:UurDin(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Scripter&lt;/ins&gt;)]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Loki</name></author>
	</entry>
	<entry>
		<id>http://coffeemud.net:8080/wiki/index.php?title=BasicScript&amp;diff=21185&amp;oldid=prev</id>
		<title>Loki: Created page with &quot;{{CoffeeMUDWikiBuilderTOC}} = Simple starter script example = There are 2 different syntax/approaches to choose from: * in a separate file  * all within the scriptable behavio...&quot;</title>
		<link rel="alternate" type="text/html" href="http://coffeemud.net:8080/wiki/index.php?title=BasicScript&amp;diff=21185&amp;oldid=prev"/>
		<updated>2024-09-17T13:14:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CoffeeMUDWikiBuilderTOC}} = Simple starter script example = There are 2 different syntax/approaches to choose from: * in a separate file  * all within the scriptable behavio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CoffeeMUDWikiBuilderTOC}}&lt;br /&gt;
= Simple starter script example =&lt;br /&gt;
There are 2 different syntax/approaches to choose from:&lt;br /&gt;
* in a separate file &lt;br /&gt;
* all within the scriptable behavior parameter&lt;br /&gt;
&lt;br /&gt;
I prefer to have my scripts run from a file rather than all keyed into the parameter of the script behavior.  The syntax for a file script uses a new line for each new line rather than a semicolon for each new line which is done when it is all in the parameter.  So:&lt;br /&gt;
* use the file browser on the grinder to create a new directory structure where to keep your scripts.&lt;br /&gt;
** I like the naming convention of starting in the resources folder/directory and then adding a path like: progs/areas/Midgaard for example.&lt;br /&gt;
* use the file browser to create your new text file&lt;br /&gt;
* enter the example script as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
greet_prog 100&lt;br /&gt;
  #this line is a comment line.  Note that $i is a variable for the name of the mob the script is running on.&lt;br /&gt;
  mpecho $i turns to look your direction.&lt;br /&gt;
~&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* save the file name: GreeterMob.script&lt;br /&gt;
* copy the full path name progs/areas/Midgaard/GreeterMob.script&lt;br /&gt;
&lt;br /&gt;
In the grinder:&lt;br /&gt;
* edit the mob (in this case it assumes he is in the Midgaard area, just according to the naming convention)&lt;br /&gt;
** add the scriptable behavior&lt;br /&gt;
***enter the following parameter: load=progs/areas/Midgaard/GreeterMob.script&lt;br /&gt;
****note you can use paste to put in the path which you had copied earlier so you dont have to rekey it all and risk a typo&lt;br /&gt;
&lt;br /&gt;
Thats it, next time you walk into the room with that mob, it should do the one line shown in the script.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
.&lt;br /&gt;
[[Category:UurDin(Builder)]]&lt;/div&gt;</summary>
		<author><name>Loki</name></author>
	</entry>
</feed>