Resources: Difference between revisions

Jump to navigation Jump to search
212 bytes added ,  12 August 2021
no edit summary
No edit summary
No edit summary
Line 5: Line 5:


== Using resources ==
== Using resources ==
Script files can be created with any of the supported languages: Lua, Squirrel, or JavaScript. These can be mixed in the same resource (although in different files). You can have one file running Lua, another with JavaScript, and another with Squirrel, all working together in the same resource.
Place the resource in your server's "resources" folder. Then, open the [[ServerConfiguration|server config]] (default is server.xml) in Notepad or your preferred code editor, and find the <code><resources></code> section. Add resources by inserting a new line containing the resource: <code><resource src="something" /></code>. This new line must be '''inside''' the resources section. Here's an example:
{{XMLCode|1=<resources>
<resource src="something"/>
<resource src="something-else" />
</resources>}}




2,591

edits

Navigation menu