Download link from xdownloads:
[ external image ]
Outdated links[/url]
[ external image ] download unpacked verson
[ external image ]
Cycrow installer version
The download contains 4 files, The 3 ALP scripts needed for every plugin and a t file to show how to load t files and add the description of the plugin for the players AL Menu
To use these scripts as a template all you need to do is copy them from the scripts dir and paste into your scripts dir again
Next rename them to the new name, the templates are named
Code: Select all
al.plugin.blank.template
al.blank.template.main
al.blank.template.events
Code: Select all
al.plugin.fish.hunt
al.fish.hunt.main
al.fish.hunt.events
next you can rename through notepad which must be done.
there will be 2 entries, one at the top 1 further down at the start of the huge block of text. If you get this worng the game when you load it will not see the script
You must rename within the notepad 2x al.plugin.blank.template to al.plugin.fish.hunt
e.g.
Code: Select all
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl" ?>
<script>
<name>al.plugin.blank.template</name>
<version>0</version>
<engineversion>42</engineversion>
<description>Tutorial - AL Plugin by LV : use as a template</description>
<arguments>
</arguments>
<sourcetext>
<line linenr="001" indent=""><text>load text: id=</text><var>9998</var></line>
<line linenr="002" indent=""><comment><text>* </text><var>load your t file number</var></comment></line>
<line linenr="003" indent=""></line>
<line linenr="004" indent=""><text>al engine: register script=</text><call>al.rrf.main</call></line>
<line linenr="005" indent=""><comment><text>* </text><var>this load the al main script</var></comment></line>
<line linenr="006" indent=""></line>
<line linenr="007" indent=""></line>
<line linenr="008" indent=""><text>return </text><var>null</var></line>
</sourcetext>
<codearray>
<sval type="array" size="10">
<sval type="string" val="al.plugin.blank.template"/>
<sval type="int" val="42"/>
<sval type="string" val="Tutorial - AL Plugin by LV : use as a template"/>
<sval type="int" val="0"/>
<sval type="int" val="0"/>
<sval type="int" val="0"/>
<sval type="array" size="3">
<sval type="array" size="3">
<sval type="int" val="151"/>
<sval type="int" val="4"/>
<sval type="int" val="9998"/>
</sval>
<sval type="array" size="2">
<sval type="int" val="1000"/>
<sval type="string" val="al.rrf.main"/>
</sval>
<sval type="array" size="3">
<sval
You obviously need to create a new t file for each time you create a new al plugin initialisation which is the same renaming method.
_____________________________________
Why should I bother
------------
When using a ALP you can set the time every time you want to call a specific script. More importantly you can run an uninstall script if a user wants to remove one of your scripts without leaving READTEXT issues and such in the game which they will rightly complain about and make you script look a little dirty to other users if your script thread has these complaints.
Once you get your head around the C+P method above it takes about 3 mins to create the 3 ALP scripts needed opening the door to better script usage in many areas.
I have also added comments inside the scripts to show your more ways of refining your abilities in the dark arts

________
LV
Edit: reuploaded to Xdownloads. X2-Illuminatus