<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kemze.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Commando950</id>
	<title>Kemoverse - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kemze.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Commando950"/>
	<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Special:Contributions/Commando950"/>
	<updated>2026-10-16T23:36:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=670</id>
		<title>User:Commando950</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=670"/>
		<updated>2023-07-09T19:55:16Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Updated what I'm using currently. :)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Commando950SCP.png|thumb|600px|Lurking in the shadows.]]&lt;br /&gt;
==Who Even Are You?==&lt;br /&gt;
I am a random person who showed up from [https://itch.io/ itch.io] literally only because of the fact I was looking for free games to play.&lt;br /&gt;
&lt;br /&gt;
I never considered myself a furry, but the winds of fate have blown me here. I'm basically very alien to the furry fandom besides having a lot of furry friends. In other words I just kind of now exist here by interest in the project and art style of it.&lt;br /&gt;
 	&lt;br /&gt;
==Computer Specs==&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: green&amp;quot;&amp;gt;&lt;br /&gt;
Distro: Arch Linux&lt;br /&gt;
Kernel: 6.4.2-arch1-1 (64-bit)&lt;br /&gt;
RAM: 32 GB&lt;br /&gt;
CPU: Amd Ryzen 5 3600 6-Core Processor&lt;br /&gt;
GPU: NVIDIA GeForce GTX 1660 SUPER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''I run the game through GE-Proton 8-8 using Lutris. This works absolutely great for Linux users.''&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
[https://www.youtube.com/watch?v=s9odzlxOpP0 This is basically me.]&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=624</id>
		<title>Scheduling</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=624"/>
		<updated>2023-05-16T20:22:24Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Trivia heading changed to Caveats. Much more fitting of a title.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Scheduling is used combined with [[Scripting]] to switch to different scripts based on the time of day. This allows you to load and unload certain scripts dynamically, allowing your [[Scripting#SPC_Mode|SPC]](Scripted Playable Character) to have different tasks on different times of the day. By using different actions on different times of the day your [[Scripting#SPC_Mode|SPC]] will feel more alive as a result.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
Schedules are actually pretty easy, but it is important to remember it follows a 24 hour time standard, not AM or PM. The following script shows a simple way to automate switching between fishing,lunch,fishing again, and going to sleep with this schedule.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# Start our fishing script at 6:00&lt;br /&gt;
&amp;gt;06.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to the lunch table at 12:00&lt;br /&gt;
&amp;gt;12.00&lt;br /&gt;
inter lunchinter&lt;br /&gt;
life lunchlife&lt;br /&gt;
# Start our fishing script at 13:00&lt;br /&gt;
&amp;gt;13.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to sleep at 19:00. Stay asleep until 6:00 again.&lt;br /&gt;
&amp;gt;19.00&lt;br /&gt;
inter&lt;br /&gt;
life sleepytime&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;inter &amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; sets what interaction script you are running while &amp;lt;code&amp;gt;life &amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; sets what life script you are running.&lt;br /&gt;
&lt;br /&gt;
Setting either &amp;lt;code&amp;gt;inter&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;life&amp;lt;/code&amp;gt; with no parameters will make them unload any currently loaded script. Essentially setting there to be no script for this time of day.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An important thing to note about these scripts is how these time statements work. Each &amp;lt;code&amp;gt;&amp;gt;time&amp;lt;/code&amp;gt; statement is essentially checking if the current time is '''''greater than''''' the time we are comparing to, if it is true it will load the scripts you have under it. Another thing of importance is how time activities actually wrap around. The scheduling system knows that 19:00 to 6:00 with this example script is still bedtime, waiting until bedtime is over. Since the script can't find any mention of &amp;lt;code&amp;gt;&amp;gt;0.00&amp;lt;/code&amp;gt; in your schedule it simply uses the &amp;lt;code&amp;gt;&amp;gt;19.00&amp;lt;/code&amp;gt; statement instead.&lt;br /&gt;
&lt;br /&gt;
=Caveats=&lt;br /&gt;
*In certain situations it will not load your script, especially if it has already been loaded.&lt;br /&gt;
*If a certain time condition has been triggered and you changed the interaction/life script, it might not always change it back.&lt;br /&gt;
*As previously stated, if the script can't find a time condition that matches the current time it will simply just continue off the last time condition.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=623</id>
		<title>Scheduling</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=623"/>
		<updated>2023-05-16T20:15:13Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Said more about life/inter keywords&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Scheduling is used combined with [[Scripting]] to switch to different scripts based on the time of day. This allows you to load and unload certain scripts dynamically, allowing your [[Scripting#SPC_Mode|SPC]](Scripted Playable Character) to have different tasks on different times of the day. By using different actions on different times of the day your [[Scripting#SPC_Mode|SPC]] will feel more alive as a result.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
Schedules are actually pretty easy, but it is important to remember it follows a 24 hour time standard, not AM or PM. The following script shows a simple way to automate switching between fishing,lunch,fishing again, and going to sleep with this schedule.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# Start our fishing script at 6:00&lt;br /&gt;
&amp;gt;06.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to the lunch table at 12:00&lt;br /&gt;
&amp;gt;12.00&lt;br /&gt;
inter lunchinter&lt;br /&gt;
life lunchlife&lt;br /&gt;
# Start our fishing script at 13:00&lt;br /&gt;
&amp;gt;13.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to sleep at 19:00. Stay asleep until 6:00 again.&lt;br /&gt;
&amp;gt;19.00&lt;br /&gt;
inter&lt;br /&gt;
life sleepytime&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;inter &amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; sets what interaction script you are running while &amp;lt;code&amp;gt;life &amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; sets what life script you are running.&lt;br /&gt;
&lt;br /&gt;
Setting either &amp;lt;code&amp;gt;inter&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;life&amp;lt;/code&amp;gt; with no parameters will make them unload any currently loaded script. Essentially setting there to be no script for this time of day.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An important thing to note about these scripts is how these time statements work. Each &amp;lt;code&amp;gt;&amp;gt;time&amp;lt;/code&amp;gt; statement is essentially checking if the current time is '''''greater than''''' the time we are comparing to, if it is true it will load the scripts you have under it. Another thing of importance is how time activities actually wrap around. The scheduling system knows that 19:00 to 6:00 with this example script is still bedtime, waiting until bedtime is over. Since the script can't find any mention of &amp;lt;code&amp;gt;&amp;gt;0.00&amp;lt;/code&amp;gt; in your schedule it simply uses the &amp;lt;code&amp;gt;&amp;gt;19.00&amp;lt;/code&amp;gt; statement instead.&lt;br /&gt;
&lt;br /&gt;
=Trivia=&lt;br /&gt;
*In certain situations it will not load your script, especially if it has already been loaded.&lt;br /&gt;
*If a certain time condition has been triggered and you changed the interaction/life script, it might not always change it back.&lt;br /&gt;
*As previously stated, if the script can't find a time condition that matches the current time it will simply just continue off the last time condition.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=622</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=622"/>
		<updated>2023-05-16T20:07:19Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Mentioned chat formatting and a big title warning.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
While you typically have to load an interaction and/or life script to be used by your SPC manually, there is a way to automatically load these depending on the time of day. [[Scheduling]] is used to automate the what script is used based on the time of day.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat messages, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
Tip: It could be a great idea to take advantage of chat formatting codes in the [[Chatting]] page to format chat text.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: The big title text does not disappear on it's own! Please remember to add ^ with nothing else after to remove the big title letters. It can be very annoying to have it stay on your screen.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 units next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 units.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: It's important to remember that distance between something like worms, players, plants, and other objects will be entirely different depending on the size of their collision boxes. 50 units for a worm is way smaller than 50 units away from a lot of larger objects. In other words, it 5 units feels different with different objects, it probably is different. Experiment and find out exactly what distance you want per object.&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mv to -38.35 1.77 41.12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn around a specified number of degrees}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: This command is likely bugged as of ALPHA 12(0.11.1). Specifying the number of degrees doesn't actually seem to properly turn you the number of degrees specified. Sometimes this command leads to randomized results as well with turning to random directions.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can turn a certain number of degrees with &amp;lt;code&amp;gt;tn around&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;tn around 50&amp;lt;/code&amp;gt; will make you turn around 50 degrees.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code. Mind the space! (&amp;quot;.5&amp;quot; without space doesn't mean anything)&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;br /&gt;
&lt;br /&gt;
==Cutscene==&lt;br /&gt;
&amp;lt;code&amp;gt;cm&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;camera&amp;lt;/code&amp;gt; lets you control cutscenes, cameras, and have a few cinematic controls.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Cutscene mode}}&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm cs&amp;lt;/code&amp;gt; and you will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides your hud.&lt;br /&gt;
&lt;br /&gt;
Cutscene mode can be canceled by holding escape.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Focus camera on object}}&lt;br /&gt;
&amp;lt;code&amp;gt;cm focus sera_hammock&amp;lt;/code&amp;gt; for example will allow you to focus on an object with the camera. The camera will rotate to look at the object for your cutscenes or simply convenience.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Fade out}}&lt;br /&gt;
Fading out allows you to make the current camera view fade out.&lt;br /&gt;
&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm fade&amp;lt;/code&amp;gt; to do a short fade. &amp;lt;code&amp;gt;cm fade 0&amp;lt;/code&amp;gt; will permanently fade to black.&lt;br /&gt;
&lt;br /&gt;
To have a fade out that happens slowly for you can do &amp;lt;code&amp;gt;cm fade 5&amp;lt;/code&amp;gt; to slowly fade out and after 5 seconds being completed faded to black. You can replace the number 5 with any length of time you want for this fade out.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=621</id>
		<title>Scheduling</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scheduling&amp;diff=621"/>
		<updated>2023-05-16T17:22:04Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Created a page talking about scheduling. Included basic trivia, introduction, and example.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Scheduling is used combined with [[Scripting]] to switch to different scripts based on the time of day. This allows you to load and unload certain scripts dynamically, allowing your [[Scripting#SPC_Mode|SPC]](Scripted Playable Character) to have different tasks on different times of the day. By using different actions on different times of the day your [[Scripting#SPC_Mode|SPC]] will feel more alive as a result.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
Schedules are actually pretty easy, but it is important to remember it follows a 24 hour time standard, not AM or PM. The following script shows a simple way to automate switching between fishing,lunch,fishing again, and going to sleep with this schedule.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# Start our fishing script at 6:00&lt;br /&gt;
&amp;gt;06.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to the lunch table at 12:00&lt;br /&gt;
&amp;gt;12.00&lt;br /&gt;
inter lunchinter&lt;br /&gt;
life lunchlife&lt;br /&gt;
# Start our fishing script at 13:00&lt;br /&gt;
&amp;gt;13.00&lt;br /&gt;
inter&lt;br /&gt;
life fishinglake&lt;br /&gt;
# Go to sleep at 19:00. Stay asleep until 6:00 again.&lt;br /&gt;
&amp;gt;19.00&lt;br /&gt;
inter&lt;br /&gt;
life sleepytime&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An important thing to note about these scripts is how these time statements work. Each &amp;lt;code&amp;gt;&amp;gt;time&amp;lt;/code&amp;gt; statement is essentially checking if the current time is '''''greater than''''' the time we are comparing to, if it is true it will load the scripts you have under it. Another thing of importance is how time activities actually wrap around. The scheduling system knows that 19:00 to 6:00 with this example script is still bedtime, waiting until bedtime is over. Since the script can't find any mention of &amp;lt;code&amp;gt;&amp;gt;0.00&amp;lt;/code&amp;gt; in your schedule it simply uses the &amp;lt;code&amp;gt;&amp;gt;19.00&amp;lt;/code&amp;gt; statement instead.&lt;br /&gt;
&lt;br /&gt;
=Trivia=&lt;br /&gt;
*In certain situations it will not load your script, especially if it has already been loaded.&lt;br /&gt;
*If a certain time condition has been triggered and you changed the interaction/life script, it might not always change it back.&lt;br /&gt;
*As previously stated, if the script can't find a time condition that matches the current time it will simply just continue off the last time condition.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=620</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=620"/>
		<updated>2023-05-16T16:16:19Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Mentioned scheduling.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
While you typically have to load an interaction and/or life script to be used by your SPC manually, there is a way to automatically load these depending on the time of day. [[Scheduling]] is used to automate the what script is used based on the time of day.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 units next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 units.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: It's important to remember that distance between something like worms, players, plants, and other objects will be entirely different depending on the size of their collision boxes. 50 units for a worm is way smaller than 50 units away from a lot of larger objects. In other words, it 5 units feels different with different objects, it probably is different. Experiment and find out exactly what distance you want per object.&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mv to -38.35 1.77 41.12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn around a specified number of degrees}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: This command is likely bugged as of ALPHA 12(0.11.1). Specifying the number of degrees doesn't actually seem to properly turn you the number of degrees specified. Sometimes this command leads to randomized results as well with turning to random directions.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can turn a certain number of degrees with &amp;lt;code&amp;gt;tn around&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;tn around 50&amp;lt;/code&amp;gt; will make you turn around 50 degrees.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code. Mind the space! (&amp;quot;.5&amp;quot; without space doesn't mean anything)&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;br /&gt;
&lt;br /&gt;
==Cutscene==&lt;br /&gt;
&amp;lt;code&amp;gt;cm&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;camera&amp;lt;/code&amp;gt; lets you control cutscenes, cameras, and have a few cinematic controls.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Cutscene mode}}&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm cs&amp;lt;/code&amp;gt; and you will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides your hud.&lt;br /&gt;
&lt;br /&gt;
Cutscene mode can be canceled by holding escape.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Focus camera on object}}&lt;br /&gt;
&amp;lt;code&amp;gt;cm focus sera_hammock&amp;lt;/code&amp;gt; for example will allow you to focus on an object with the camera. The camera will rotate to look at the object for your cutscenes or simply convenience.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Fade out}}&lt;br /&gt;
Fading out allows you to make the current camera view fade out.&lt;br /&gt;
&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm fade&amp;lt;/code&amp;gt; to do a short fade. &amp;lt;code&amp;gt;cm fade 0&amp;lt;/code&amp;gt; will permanently fade to black.&lt;br /&gt;
&lt;br /&gt;
To have a fade out that happens slowly for you can do &amp;lt;code&amp;gt;cm fade 5&amp;lt;/code&amp;gt; to slowly fade out and after 5 seconds being completed faded to black. You can replace the number 5 with any length of time you want for this fade out.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=619</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=619"/>
		<updated>2023-05-15T18:17:12Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Turning based on degrees&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 units next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 units.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: It's important to remember that distance between something like worms, players, plants, and other objects will be entirely different depending on the size of their collision boxes. 50 units for a worm is way smaller than 50 units away from a lot of larger objects. In other words, it 5 units feels different with different objects, it probably is different. Experiment and find out exactly what distance you want per object.&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mv to -38.35 1.77 41.12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn around a specified number of degrees}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: This command is likely bugged as of ALPHA 12(0.11.1). Specifying the number of degrees doesn't actually seem to properly turn you the number of degrees specified. Sometimes this command leads to randomized results as well with turning to random directions.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can turn a certain number of degrees with &amp;lt;code&amp;gt;tn around&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;tn around 50&amp;lt;/code&amp;gt; will make you turn around 50 degrees.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code. Mind the space! (&amp;quot;.5&amp;quot; without space doesn't mean anything)&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;br /&gt;
&lt;br /&gt;
==Cutscene==&lt;br /&gt;
&amp;lt;code&amp;gt;cm&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;camera&amp;lt;/code&amp;gt; lets you control cutscenes, cameras, and have a few cinematic controls.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Cutscene mode}}&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm cs&amp;lt;/code&amp;gt; and you will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides your hud.&lt;br /&gt;
&lt;br /&gt;
Cutscene mode can be canceled by holding escape.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Focus camera on object}}&lt;br /&gt;
&amp;lt;code&amp;gt;cm focus sera_hammock&amp;lt;/code&amp;gt; for example will allow you to focus on an object with the camera. The camera will rotate to look at the object for your cutscenes or simply convenience.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Fade out}}&lt;br /&gt;
Fading out allows you to make the current camera view fade out.&lt;br /&gt;
&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm fade&amp;lt;/code&amp;gt; to do a short fade. &amp;lt;code&amp;gt;cm fade 0&amp;lt;/code&amp;gt; will permanently fade to black.&lt;br /&gt;
&lt;br /&gt;
To have a fade out that happens slowly for you can do &amp;lt;code&amp;gt;cm fade 5&amp;lt;/code&amp;gt; to slowly fade out and after 5 seconds being completed faded to black. You can replace the number 5 with any length of time you want for this fade out.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=618</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=618"/>
		<updated>2023-05-15T18:03:47Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added information about cutscene command.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 units next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 units.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: It's important to remember that distance between something like worms, players, plants, and other objects will be entirely different depending on the size of their collision boxes. 50 units for a worm is way smaller than 50 units away from a lot of larger objects. In other words, it 5 units feels different with different objects, it probably is different. Experiment and find out exactly what distance you want per object.&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mv to -38.35 1.77 41.12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code. Mind the space! (&amp;quot;.5&amp;quot; without space doesn't mean anything)&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;br /&gt;
&lt;br /&gt;
==Cutscene==&lt;br /&gt;
&amp;lt;code&amp;gt;cm&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;camera&amp;lt;/code&amp;gt; lets you control cutscenes, cameras, and have a few cinematic controls.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Cutscene mode}}&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm cs&amp;lt;/code&amp;gt; and you will enable cutscene mode. Cutscene mode adds black borders and the top and bottom of your screen and hides your hud.&lt;br /&gt;
&lt;br /&gt;
Cutscene mode can be canceled by holding escape.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Focus camera on object}}&lt;br /&gt;
&amp;lt;code&amp;gt;cm focus sera_hammock&amp;lt;/code&amp;gt; for example will allow you to focus on an object with the camera. The camera will rotate to look at the object for your cutscenes or simply convenience.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Fade out}}&lt;br /&gt;
Fading out allows you to make the current camera view fade out.&lt;br /&gt;
&lt;br /&gt;
Simply do &amp;lt;code&amp;gt;cm fade&amp;lt;/code&amp;gt; to do a short fade. &amp;lt;code&amp;gt;cm fade 0&amp;lt;/code&amp;gt; will permanently fade to black.&lt;br /&gt;
&lt;br /&gt;
To have a fade out that happens slowly for you can do &amp;lt;code&amp;gt;cm fade 5&amp;lt;/code&amp;gt; to slowly fade out and after 5 seconds being completed faded to black. You can replace the number 5 with any length of time you want for this fade out.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=617</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=617"/>
		<updated>2023-05-15T17:29:40Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Slight format changes. Reworked section to say &amp;quot;units&amp;quot; rather than &amp;quot;meters&amp;quot; and explain the difference between objects.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv to sera_hammock 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 units next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 units.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;Warning: It's important to remember that distance between something like worms, players, plants, and other objects will be entirely different depending on the size of their collision boxes. 50 units for a worm is way smaller than 50 units away from a lot of larger objects. In other words, it 5 units feels different with different objects, it probably is different. Experiment and find out exactly what distance you want per object.&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mv to -38.35 1.77 41.12&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code. Mind the space! (&amp;quot;.5&amp;quot; without space doesn't mean anything)&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=614</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=614"/>
		<updated>2023-05-15T05:56:10Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Small typo fixed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=613</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=613"/>
		<updated>2023-05-15T05:50:10Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Additional spacing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC have a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=612</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=612"/>
		<updated>2023-05-15T05:49:28Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added some more examples regarding life scripts.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
==Interaction Scripts==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do.&lt;br /&gt;
&lt;br /&gt;
==Life Scripts==&lt;br /&gt;
Let's talk quickly about life scripts. Life scripts are scripts that you can trigger to just happen randomly. They make good idle scripts for your SPC as well as allow you to automatically do somewhat complex tasks without any interaction.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 50&lt;br /&gt;
mv forward&lt;br /&gt;
mv back&lt;br /&gt;
= random 40&lt;br /&gt;
tn left&lt;br /&gt;
tn right&lt;br /&gt;
tn right&lt;br /&gt;
tn left&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC have a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do &amp;lt;code&amp;gt; = random 100&amp;lt;/code&amp;gt; to ensure the code always runs. In the next example, lets look at a script that always runs.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= random 100&lt;br /&gt;
eq &lt;br /&gt;
eq fishingpole&lt;br /&gt;
eq fishingpole use&lt;br /&gt;
. 60&lt;br /&gt;
eq fishingpole use&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fishing script will always run and repeat itself. There is a 100% chance you'll cast your fishingpole, wait 60 seconds, and unreel hoping to catch a fish. This is a great simple script for automatically catching fish. Be sure to hit alt + v and run your character in Scripted Player Character mode, as this will automatically repeat your life scripts.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=611</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=611"/>
		<updated>2023-05-15T05:26:59Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added information about how to make characters talk and chat messages appear.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Communication ==&lt;br /&gt;
There is some ways to have your SPC talk, those interacting with you talk, display grey chat, and display big title messages.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|SPC Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; followed by something you want your scripted character to say will make it talk.&lt;br /&gt;
&amp;lt;code&amp;gt;- Hello there!&amp;lt;/code&amp;gt; will make your SPC say &amp;quot;Hello There!&amp;quot; in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Interactor Talking}}&lt;br /&gt;
&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; followed by something you want someone interacting with you to say.&lt;br /&gt;
&amp;lt;code&amp;gt;+ Hi there!&amp;lt;/code&amp;gt; will make someone interacting with your SPC say &amp;quot;Hi there!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Grey Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt; followed by something you want in chat to appear in grey color.(People see this if they are interacting with you)&lt;br /&gt;
&amp;lt;code&amp;gt;_ Something spooky happens.&amp;lt;/code&amp;gt; will make &amp;quot;Something spooky happens.&amp;quot; appear and be grey in chat.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Big Title Text}}&lt;br /&gt;
&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; followed by something you want to see in big title letters.(People see this if they are interacting with you)&lt;br /&gt;
&amp;lt;code&amp;gt;^ Super Epic Title&amp;lt;/code&amp;gt; will make &amp;quot;Super Epic Title&amp;quot; appear in giant title text in the center of the screen.&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=610</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=610"/>
		<updated>2023-05-15T05:12:58Z</updated>

		<summary type="html">&lt;p&gt;Commando950: For loops/Delay&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move a direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
{{HeaderNoTOC|Move to an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an object with a specific distance}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Move to an exact spot}}&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop moving}}&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to face an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Turn to an exact spot}}&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop turning}}&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look to a compass direction}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an object}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Look at an exact spot}}&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop looking}}&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
{{HeaderNoTOC|Interact with an object}}&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
{{HeaderNoTOC|Equip item}}&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Use item}}&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Unequip item}}&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Equipment list}}&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Make expressions for a length of time}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop expressions}}&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Play animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|List of animations}}&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Stop animation}}&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Wait/Delay==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait for a certain amount of time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;. 5&amp;lt;/code&amp;gt; waits for 5 seconds before running more of the code.&lt;br /&gt;
&lt;br /&gt;
{{HeaderNoTOC|Wait until action is finished}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.&lt;br /&gt;
&lt;br /&gt;
==Repeat/For Loop==&lt;br /&gt;
&lt;br /&gt;
For loops allow you to repeat sections multiple times. &amp;lt;code&amp;gt;[ &amp;lt;number&amp;gt;&amp;lt;/code&amp;gt; begins a for loop and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ends it with all code between being repeated multiple times.&lt;br /&gt;
&lt;br /&gt;
As an example &amp;lt;code&amp;gt;[ 5&amp;lt;/code&amp;gt; followed by some code and &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; afterwards would run code 5 times. See the below example.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[ 5&lt;br /&gt;
mv forward&lt;br /&gt;
. 2&lt;br /&gt;
]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=585</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=585"/>
		<updated>2023-05-10T19:27:16Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Corrected typing animation name typo to type instead of typing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
=== Move a direction ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
=== Move to an object ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an object with a specific distance ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an exact spot ===&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop moving===&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
=== Interact with an object. ===&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
===Turn to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn to face an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Turn to an exact spot ===&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Turning===&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
===Equip Item===&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
===Use Item===&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
===Unequip Item===&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Equipment List===&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
===Look to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Look at an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Look at an exact spot ===&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Looking===&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
===Make expressions for a length of time===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
===Stop Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
===Play Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stop Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=584</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=584"/>
		<updated>2023-05-10T19:25:27Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added phone and planner to valid equipment list.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
=== Move a direction ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
=== Move to an object ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an object with a specific distance ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an exact spot ===&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop moving===&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
=== Interact with an object. ===&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
===Turn to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn to face an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Turn to an exact spot ===&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Turning===&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
===Equip Item===&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
===Use Item===&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
===Unequip Item===&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Equipment List===&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl, phone, planner&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most items are required to be in your pack before you can use them. Exceptions are phone and planner as they kind of just always exist.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
===Look to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Look at an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Look at an exact spot ===&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Looking===&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
===Make expressions for a length of time===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
===Stop Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
===Play Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, typing&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stop Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=583</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=583"/>
		<updated>2023-05-10T19:20:39Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Fixed small typo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
=== Move a direction ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
=== Move to an object ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an object with a specific distance ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an exact spot ===&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop moving===&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
=== Interact with an object. ===&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
===Turn to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn to face an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Turn to an exact spot ===&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Turning===&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
===Equip Item===&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
===Use Item===&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
===Unequip Item===&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Equipment List===&lt;br /&gt;
A list of a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
===Look to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Look at an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Look at an exact spot ===&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Looking===&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
===Make expressions for a length of time===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
===Stop Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
===Play Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, typing&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stop Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=582</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=582"/>
		<updated>2023-05-10T19:18:29Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Moved look, facial, and animation categories down below equipment.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
=== Move a direction ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
=== Move to an object ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an object with a specific distance ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an exact spot ===&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop moving===&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
=== Interact with an object. ===&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
===Turn to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn to face an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Turn to an exact spot ===&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Turning===&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
===Equip Item===&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
===Use Item===&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
===Unequip Item===&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Equipment List===&lt;br /&gt;
A list a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
===Look to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Look at an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Look at an exact spot ===&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Looking===&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
===Make expressions for a length of time===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
===Stop Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
===Play Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, typing&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stop Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Scripting&amp;diff=581</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Scripting&amp;diff=581"/>
		<updated>2023-05-10T19:17:15Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Lots of scripting commands added.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scripting is a way for characters to behave in-game. You can even script yourself!&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
[[File:Inter.png|thumb|An example of a script with three options.]]&lt;br /&gt;
Scripting. What is it, anyways? Well, think of a movie script - you read it from top to bottom to check what you have to do or say next. In this case, the character script (which I call Action Script) directs what characters do and behave, including you. So if you script yourself, your character can start doing stuff by themselves without your control. A script is actually quite simple, it's just a text file that you write in the in-game script editor.&lt;br /&gt;
&lt;br /&gt;
Every character has two scripts - a &amp;quot;life script&amp;quot; and an &amp;quot;interaction script&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* A life script runs automatically at random, so basically, it makes your character have a life on its own. It's used to make them automatically do stuff, like walking around, sitting down, think for themselves and generally act like an NPC.&lt;br /&gt;
* An interaction script is the script that does stuff in response to interaction, so when you (or someone else) walk up to an NPC (or you) and click, the interaction script will be shown.&lt;br /&gt;
&lt;br /&gt;
Script files are divided in to ''options'', basically sub-sections of both life and interaction scripts. Options are important - neither life script or interaction script will execute if you don't have options. You specify options by beginning a line with &amp;quot;=&amp;quot; and typing the title after. In interaction scripts, writing &amp;quot;= Hello&amp;quot; makes others see a button &amp;quot;Hello&amp;quot; when interacting with you, and executes the script under that option when they click it. In life scripts, writing &amp;quot;= random 10&amp;quot; tells the automated life script to execute that part of the script 10% of the time, so essentially a random choice.&lt;br /&gt;
&lt;br /&gt;
== SPC Mode ==&lt;br /&gt;
&lt;br /&gt;
By default, the interaction/life scripts won't bother you as you play (you have to explicitly run the options through the &amp;quot;Run&amp;quot; button in the script editor). If someone wants to interact with you, you can approve that one interaction request by clicking on them and clicking &amp;quot;Answer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
However, there is a way to auto-accept any request and run your loaded scripts automatically - I name this '''SPC mode''' ('''SPC''' being Scripted Playable Character). You can enable it by pressing Alt+V. By enabling SPC mode, your interaction script auto-accepts any interaction, and your life script starts living out by itself, letting the game pick options based on the &amp;quot;= random&amp;quot; title.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
= Say Hello&lt;br /&gt;
tn t&lt;br /&gt;
+ Hello there.&lt;br /&gt;
lk left&lt;br /&gt;
lk right&lt;br /&gt;
lk l&lt;br /&gt;
- I'll tell you a secret.&lt;br /&gt;
+ What?&lt;br /&gt;
- I have a snail in my pocket.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Here's a short interaction script example. It presents and option to interact (&amp;quot;say hello&amp;quot;). Let's say that you wrote this script and put it on your character. If a player clicks on this option when interacting with you, it starts this script. Both players turn to each others, exchange dialog, and the script player (you) look to the left, right, then continues the dialog. As you can see, it's very easy to make a simple conversation. But there's way more than that! You can make your character walk around, animate, do facial expression... and such. &lt;br /&gt;
&lt;br /&gt;
See the first word/symbol that starts on each line? It's the command - this determines what you want the character to do. After that command, you type in parameters to specify what exactly you want it to do. Let's have a look of all the commands you can do.&lt;br /&gt;
&lt;br /&gt;
= Script commands =&lt;br /&gt;
&lt;br /&gt;
== Movement ==&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;move&amp;lt;/code&amp;gt; is one of the most important movement commands. There is various ways to get a character to move.&lt;br /&gt;
&lt;br /&gt;
=== Move a direction ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv forward&lt;br /&gt;
mv left&lt;br /&gt;
mv back&lt;br /&gt;
mv right&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.&lt;br /&gt;
=== Move to an object ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an object with a specific distance ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to sera_hammock 3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move up to 3 meters next to sera's hammock.&lt;br /&gt;
&lt;br /&gt;
It also accepts decimals such a 0.5 meters.&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to move to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Move to an exact spot ===&lt;br /&gt;
You can move to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
mv to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop moving===&lt;br /&gt;
&amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; to stop moving.&lt;br /&gt;
&lt;br /&gt;
== Interaction ==&lt;br /&gt;
&amp;lt;code&amp;gt;in&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;interact&amp;lt;/code&amp;gt; is a command used to interact with objects.&lt;br /&gt;
=== Interact with an object. ===&lt;br /&gt;
Interacting with objects is fairly reasonable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also interact with an object that has multiple interaction options.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
in kitchen_chair 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the correct interaction of an object you wish to interact with middle click the interaction you wish to choose twice while having the script text cursor at the place you want the interaction to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
==Turning==&lt;br /&gt;
&amp;lt;code&amp;gt;turn&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; is a command used to turn your character.&lt;br /&gt;
&lt;br /&gt;
===Turn to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn north&lt;br /&gt;
tn west&lt;br /&gt;
tn east&lt;br /&gt;
tn south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn to face an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to turn to middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Turn to an exact spot ===&lt;br /&gt;
You can turn to an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
tn to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Turning===&lt;br /&gt;
&amp;lt;code&amp;gt;tn&amp;lt;/code&amp;gt; to stop turning.&lt;br /&gt;
&lt;br /&gt;
==Looking==&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;look&amp;lt;/code&amp;gt; is a command used to turn your head to look at something.&lt;br /&gt;
&lt;br /&gt;
===Look to a compass direction===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk north&lt;br /&gt;
lk west&lt;br /&gt;
lk east&lt;br /&gt;
lk south&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Look at an object===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to sera_hammock&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the name of an object you wish to look at middle click it twice while having the script text cursor at the place you want the name to be pasted into your code.&lt;br /&gt;
&lt;br /&gt;
=== Look at an exact spot ===&lt;br /&gt;
You can look at an exact spot in the world using coordinates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lk to -38.35 1.77 41.12&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tip: To get the coordinates you can right click the life script as you are working on it and hit paste coordinates. It'll paste the current coordinates you are standing on. This is very helpful.&lt;br /&gt;
&lt;br /&gt;
===Stop Looking===&lt;br /&gt;
&amp;lt;code&amp;gt;lk&amp;lt;/code&amp;gt; to stop looking.&lt;br /&gt;
&lt;br /&gt;
==Facial Expression==&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; lets you make a facial expression.&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy&amp;lt;/code&amp;gt; for a happy expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc sad&amp;lt;/code&amp;gt; for a sad expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc close&amp;lt;/code&amp;gt; to close your eyes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc tongue&amp;lt;/code&amp;gt; to put your tongue out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc angry&amp;lt;/code&amp;gt; for an angry expression.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc fear&amp;lt;/code&amp;gt; for a fearful expression.&lt;br /&gt;
&lt;br /&gt;
===Make expressions for a length of time===&lt;br /&gt;
&amp;lt;code&amp;gt;fc happy 3&amp;lt;/code&amp;gt; will be happy for 3 seconds.&lt;br /&gt;
&lt;br /&gt;
===Stop Expressions===&lt;br /&gt;
&amp;lt;code&amp;gt;fc&amp;lt;/code&amp;gt; to stop facial expressions.&lt;br /&gt;
&lt;br /&gt;
==Play Animation==&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;animate&amp;lt;/code&amp;gt; to play an animation.&lt;br /&gt;
&lt;br /&gt;
===Play Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an yes&amp;lt;/code&amp;gt; will play an animation where you nod your head yes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance 3&amp;lt;/code&amp;gt; will play the dance animation 3 times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an dance -1&amp;lt;/code&amp;gt; will play the dance animation forever.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;an bow 3 0.5&amp;lt;/code&amp;gt; plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.&lt;br /&gt;
&lt;br /&gt;
Social Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
yes, no, shrug, clap, bow, yawn, wave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emotive Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
admire, giggle, angry, sada, scared, rave&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
poke, pose, think, typing&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Duo Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
hug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Standing &amp;amp; Sitting &amp;amp; Laying Animations:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stop Animation===&lt;br /&gt;
&amp;lt;code&amp;gt;an&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
&amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;equip&amp;lt;/code&amp;gt; lets you equip, unequip, and use equipment.&lt;br /&gt;
===Equip Item===&lt;br /&gt;
You can equip your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole&amp;lt;/code&amp;gt; if you have the fishing rod.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things you can equip.&lt;br /&gt;
&lt;br /&gt;
===Use Item===&lt;br /&gt;
You can use your fishing rod by simply &amp;lt;code&amp;gt;eq fishingpole use&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Check the [[#Equipment List]] below for things to use.&lt;br /&gt;
&lt;br /&gt;
===Unequip Item===&lt;br /&gt;
You can unequip your item by simply using &amp;lt;code&amp;gt;eq&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Equipment List===&lt;br /&gt;
A list a few valid items to equip or use:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=580</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=580"/>
		<updated>2023-05-09T07:19:29Z</updated>

		<summary type="html">&lt;p&gt;Commando950: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish. You can also unreel when you hear a bubble or splash sound, which is a very likely time you'll catch a fish while also being more likely to catch a larger fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;br /&gt;
&lt;br /&gt;
Is is technically possible to catch a fish really quickly by throwing your line and reeling it back in often, but the chance is low... so it's probably worth it to fish for a bit longer if you aren't catching anything.&lt;br /&gt;
&lt;br /&gt;
It's generally good though to unreel when you hear a water splash sound, as it's very likely you'll catch a fish then.The fish caught during the sound cue is probably more likely a larger fish as well.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=579</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=579"/>
		<updated>2023-05-09T07:07:07Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Mentioned splashes regarding fishing mechanics.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish. You can also unreel when you hear a bubble or splash sound, which is a very likely time you'll catch a fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;br /&gt;
&lt;br /&gt;
Is is technically possible to catch a fish really quickly by throwing your line and reeling it back in often, but the chance is low... so it's probably worth it to fish for a bit longer if you aren't catching anything.&lt;br /&gt;
&lt;br /&gt;
It's generally good though to unreel when you hear a water splash sound, as it's very likely you'll catch a fish then.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=568</id>
		<title>Bugfinding</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=568"/>
		<updated>2023-05-07T05:51:49Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added the Jaskia snake. Did some page reformatting.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=How To Catch Bugs=&lt;br /&gt;
To catch bugs you need to use a bug net. A bug net can be found near the kitchen building directly to the right of the [[Foodraise]] box.&lt;br /&gt;
&lt;br /&gt;
Once you get your bug net get it out of your pack and swing it at the bug you want to catch.&lt;br /&gt;
&lt;br /&gt;
[[File:Bugnet.png|500px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
=Bugs=&lt;br /&gt;
Bugs spawn in various areas of the map. The following bugs can be found and caught. They appear at their spawn locations consistently during the day and are a reliable way to catch something to eat.&lt;br /&gt;
&lt;br /&gt;
==Isesz==&lt;br /&gt;
[[File:Isesz.png|150px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
An Isesz is a small worm that crawls along the ground.&lt;br /&gt;
&lt;br /&gt;
===Spawn Locations===&lt;br /&gt;
*Along the south wall of the school building, where the planting plots are located.&lt;br /&gt;
&lt;br /&gt;
==Marzka==&lt;br /&gt;
[[File:Marzka.png|150px|border|Marzka butterfly flying around flowers.]]&lt;br /&gt;
&lt;br /&gt;
A Marzka is a kind of pale butterfly.&lt;br /&gt;
&lt;br /&gt;
===Spawn Locations===&lt;br /&gt;
*Among the clusters of red flowers south of the central campus tree&lt;br /&gt;
*In the tall reeds near the school kitchen. Butterflies will be flying around and can be easily spotted if you nose around the kitchen a bit.&lt;br /&gt;
*In the forest near a certain tree stump.&lt;br /&gt;
&lt;br /&gt;
==Otkjata==&lt;br /&gt;
[[File:Otkjata.png|150px|border|An Otkjata in some grass.]]&lt;br /&gt;
&lt;br /&gt;
Otkjata seem to be very close to or if not entirely just regular grasshoppers. They are green and will be seen hopping decent distance through the air. They can be easily missed due to their small size.&lt;br /&gt;
&lt;br /&gt;
===Spawn Locations===&lt;br /&gt;
*Near the exit to the forest which has a hammock tied to two trees nearby. The path to get to this also had some tall reeds with an additional grasshopper or two before you even get there.&lt;br /&gt;
&lt;br /&gt;
==Emer==&lt;br /&gt;
[[File:Emer.png|150px|border|An Emer slithering across the forest floor.]]&lt;br /&gt;
&lt;br /&gt;
An Emer is a snail that can be found in the forest.&lt;br /&gt;
&lt;br /&gt;
==Jaskia==&lt;br /&gt;
[[File:Jaskia.png|150px|border|A Jaskia snake in the night.]]&lt;br /&gt;
&lt;br /&gt;
A Jaskia is a snake that is often found crawling in the forest during night. Despite not being a bug they are treated categorically as one so for the purposes of this listing are here.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Jaskia.png&amp;diff=567</id>
		<title>File:Jaskia.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Jaskia.png&amp;diff=567"/>
		<updated>2023-05-07T05:50:48Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Commando950 uploaded a new version of File:Jaskia.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A Jaskia snake.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Jaskia.png&amp;diff=566</id>
		<title>File:Jaskia.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Jaskia.png&amp;diff=566"/>
		<updated>2023-05-07T05:47:25Z</updated>

		<summary type="html">&lt;p&gt;Commando950: A Jaskia snake.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A Jaskia snake.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Harvesting&amp;diff=560</id>
		<title>Harvesting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Harvesting&amp;diff=560"/>
		<updated>2023-05-06T18:30:36Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Harvesting mushrooms with 3 mushroom types listed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Harvesting==&lt;br /&gt;
Harvesting various types of mushrooms can be very helpful and important for the [[Foodraise]]. It's important to note there are multiple kinds of mushrooms you can find in the forest and there is not just one variety.&lt;br /&gt;
&lt;br /&gt;
To harvest a mushroom, use a shovel! Walk up close to the mushroom, hold left click for a bit until your shovel is properly in the ground, and then release left click to dig up the mushroom.&lt;br /&gt;
==Mushrooms==&lt;br /&gt;
===Aratz===&lt;br /&gt;
[[File:Aratz.png|250px|border|A ring of dome shaped Aratz mushrooms.]]&lt;br /&gt;
&lt;br /&gt;
Aratz are a very plain looking brown mushroom. Their smooth dome shape gives them away and small size by comparison sets them apart from the rest.&lt;br /&gt;
===Kamenas===&lt;br /&gt;
[[File:Kamenas.png|250px|border|Two massive Kamenas mushrooms.]]&lt;br /&gt;
&lt;br /&gt;
Kamenas are mushrooms with a very  saucer like shape. They are white/tan at the bottom of the shape, have a blue stripe in the middle, and then brown at the top. They can grow to be rather large when fully grown.&lt;br /&gt;
===Letjza===&lt;br /&gt;
[[File:Letjza.png|250px|border|Two tall and pointy Letjza mushrooms.]]&lt;br /&gt;
&lt;br /&gt;
A Letjza is a tall brown and white pointy mushroom.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Aratz.png&amp;diff=559</id>
		<title>File:Aratz.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Aratz.png&amp;diff=559"/>
		<updated>2023-05-06T18:28:34Z</updated>

		<summary type="html">&lt;p&gt;Commando950: A bunch of dome shaped Aratz mushrooms.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A bunch of dome shaped Aratz mushrooms.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Letjza.png&amp;diff=558</id>
		<title>File:Letjza.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Letjza.png&amp;diff=558"/>
		<updated>2023-05-06T18:27:14Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Letjza mushrooms.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Letjza mushrooms.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=557</id>
		<title>Bugfinding</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=557"/>
		<updated>2023-05-06T18:25:42Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added Emer snail.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How To Catch Bugs==&lt;br /&gt;
To catch bugs you need to use a bug net. A bug net can be found near the kitchen building directly to the right of the [[Foodraise]] box.&lt;br /&gt;
&lt;br /&gt;
Once you get your bug net get it out of your pack and swing it at the bug you want to catch.&lt;br /&gt;
&lt;br /&gt;
[[File:Bugnet.png|500px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
==Bugs==&lt;br /&gt;
Bugs spawn in various areas of the map. The following bugs can be found and caught. They appear at their spawn locations consistently during the day and are a reliable way to catch something to eat.&lt;br /&gt;
&lt;br /&gt;
===Isesz===&lt;br /&gt;
[[File:Isesz.png|150px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
An Isesz is a small worm that crawls along the ground.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Along the south wall of the school building, where the planting plots are located.&lt;br /&gt;
&lt;br /&gt;
===Marzka===&lt;br /&gt;
[[File:Marzka.png|150px|border|Marzka butterfly flying around flowers.]]&lt;br /&gt;
&lt;br /&gt;
A Marzka is a kind of pale butterfly.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Among the clusters of red flowers south of the central campus tree&lt;br /&gt;
*In the tall reeds near the school kitchen. Butterflies will be flying around and can be easily spotted if you nose around the kitchen a bit.&lt;br /&gt;
*In the forest near a certain tree stump.&lt;br /&gt;
&lt;br /&gt;
===Otkjata===&lt;br /&gt;
[[File:Otkjata.png|150px|border|An Otkjata in some grass.]]&lt;br /&gt;
&lt;br /&gt;
Otkjata seem to be very close to or if not entirely just regular grasshoppers. They are green and will be seen hopping decent distance through the air. They can be easily missed due to their small size.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations ====&lt;br /&gt;
*Near the exit to the forest which has a hammock tied to two trees nearby. The path to get to this also had some tall reeds with an additional grasshopper or two before you even get there.&lt;br /&gt;
&lt;br /&gt;
===Emer===&lt;br /&gt;
[[File:Emer.png|150px|border|An Emer slithering across the forest floor.]]&lt;br /&gt;
&lt;br /&gt;
An Emer is a snail that can be found in the forest.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Emer.png&amp;diff=556</id>
		<title>File:Emer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Emer.png&amp;diff=556"/>
		<updated>2023-05-06T18:23:13Z</updated>

		<summary type="html">&lt;p&gt;Commando950: An Emer snail slithering across the ground.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
An Emer snail slithering across the ground.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=555</id>
		<title>Bugfinding</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=555"/>
		<updated>2023-05-06T17:51:35Z</updated>

		<summary type="html">&lt;p&gt;Commando950: /* Spawn Locations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How To Catch Bugs==&lt;br /&gt;
To catch bugs you need to use a bug net. A bug net can be found near the kitchen building directly to the right of the [[Foodraise]] box.&lt;br /&gt;
&lt;br /&gt;
Once you get your bug net get it out of your pack and swing it at the bug you want to catch.&lt;br /&gt;
&lt;br /&gt;
[[File:Bugnet.png|500px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
==Bugs==&lt;br /&gt;
Bugs spawn in various areas of the map. The following bugs can be found and caught. They appear at their spawn locations consistently during the day and are a reliable way to catch something to eat.&lt;br /&gt;
&lt;br /&gt;
===Isesz===&lt;br /&gt;
[[File:Isesz.png|150px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
An Isesz is a small worm that crawls along the ground.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Along the south wall of the school building, where the planting plots are located.&lt;br /&gt;
&lt;br /&gt;
===Marzka===&lt;br /&gt;
[[File:Marzka.png|150px|border|Marzka butterfly flying around flowers.]]&lt;br /&gt;
&lt;br /&gt;
A Marzka is a kind of pale butterfly.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Among the clusters of red flowers south of the central campus tree&lt;br /&gt;
*In the tall reeds near the school kitchen. Butterflies will be flying around and can be easily spotted if you nose around the kitchen a bit.&lt;br /&gt;
*In the forest near a certain tree stump.&lt;br /&gt;
&lt;br /&gt;
===Otkjata===&lt;br /&gt;
[[File:Otkjata.png|150px|border|An Otkjata in some grass.]]&lt;br /&gt;
&lt;br /&gt;
Otkjata seem to be very close to or if not entirely just regular grasshoppers. They are green and will be seen hopping decent distance through the air. They can be easily missed due to their small size.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations ====&lt;br /&gt;
*Near the exit to the forest which has a hammock tied to two trees nearby. The path to get to this also had some tall reeds with an additional grasshopper or two before you even get there.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=554</id>
		<title>Bugfinding</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=554"/>
		<updated>2023-05-06T17:50:40Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Grasshopper added :)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How To Catch Bugs==&lt;br /&gt;
To catch bugs you need to use a bug net. A bug net can be found near the kitchen building directly to the right of the [[Foodraise]] box.&lt;br /&gt;
&lt;br /&gt;
Once you get your bug net get it out of your pack and swing it at the bug you want to catch.&lt;br /&gt;
&lt;br /&gt;
[[File:Bugnet.png|500px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
==Bugs==&lt;br /&gt;
Bugs spawn in various areas of the map. The following bugs can be found and caught. They appear at their spawn locations consistently during the day and are a reliable way to catch something to eat.&lt;br /&gt;
&lt;br /&gt;
===Isesz===&lt;br /&gt;
[[File:Isesz.png|150px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
An Isesz is a small worm that crawls along the ground.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Along the south wall of the school building, where the planting plots are located.&lt;br /&gt;
&lt;br /&gt;
===Marzka===&lt;br /&gt;
[[File:Marzka.png|150px|border|Marzka butterfly flying around flowers.]]&lt;br /&gt;
&lt;br /&gt;
A Marzka is a kind of pale butterfly.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Among the clusters of red flowers south of the central campus tree&lt;br /&gt;
*In the tall reeds near the school kitchen. Butterflies will be flying around and can be easily spotted if you nose around the kitchen a bit.&lt;br /&gt;
*In the forest near a certain tree stump.&lt;br /&gt;
&lt;br /&gt;
===Otkjata===&lt;br /&gt;
[[File:Otkjata.png|150px|border|An Otkjata in some grass.]]&lt;br /&gt;
&lt;br /&gt;
Otkjata seem to be very close to or if not entirely just regular grasshoppers. They are green and will be seen hopping decent distance through the air. They can be easily missed due to their small size.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations ====&lt;br /&gt;
*Near the exit to the forest which has a hammock tied to two trees nearby. The path to get to this also had some tall reeds with an additional grasshopper before you even get here.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Kamenas.png&amp;diff=553</id>
		<title>File:Kamenas.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Kamenas.png&amp;diff=553"/>
		<updated>2023-05-06T17:40:38Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Two Kamenas mushrooms chilling.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Two Kamenas mushrooms chilling.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Otkjata.png&amp;diff=552</id>
		<title>File:Otkjata.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Otkjata.png&amp;diff=552"/>
		<updated>2023-05-06T17:31:39Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Commando950 uploaded a new version of File:Otkjata.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
An Otkjata in tehe grass.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Otkjata.png&amp;diff=551</id>
		<title>File:Otkjata.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Otkjata.png&amp;diff=551"/>
		<updated>2023-05-06T17:27:33Z</updated>

		<summary type="html">&lt;p&gt;Commando950: An Otkjata in tehe grass.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
An Otkjata in tehe grass.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=550</id>
		<title>Bugfinding</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Bugfinding&amp;diff=550"/>
		<updated>2023-05-06T17:21:14Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Some additional butterfly spawn locations.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How To Catch Bugs==&lt;br /&gt;
To catch bugs you need to use a bug net. A bug net can be found near the kitchen building directly to the right of the [[Foodraise]] box.&lt;br /&gt;
&lt;br /&gt;
Once you get your bug net get it out of your pack and swing it at the bug you want to catch.&lt;br /&gt;
&lt;br /&gt;
[[File:Bugnet.png|500px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
==Bugs==&lt;br /&gt;
Bugs spawn in various areas of the map. The following bugs can be found and caught. They appear at their spawn locations consistently during the day and are a reliable way to catch something to eat.&lt;br /&gt;
&lt;br /&gt;
===Isesz===&lt;br /&gt;
[[File:Isesz.png|150px|border|Isesz worms crawling near crops.]]&lt;br /&gt;
&lt;br /&gt;
An Isesz is a small worm that crawls along the ground.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Along the south wall of the school building, where the planting plots are located.&lt;br /&gt;
&lt;br /&gt;
===Marzka===&lt;br /&gt;
[[File:Marzka.png|150px|border|Marzka butterfly flying around flowers.]]&lt;br /&gt;
&lt;br /&gt;
A Marzka is a kind of pale butterfly.&lt;br /&gt;
&lt;br /&gt;
====Spawn Locations====&lt;br /&gt;
*Among the clusters of red flowers south of the central campus tree&lt;br /&gt;
*In the tall reeds near the school kitchen. Butterflies will be flying around and can be easily spotted if you nose around the kitchen a bit.&lt;br /&gt;
*In the forest near a certain tree stump.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=541</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=541"/>
		<updated>2023-05-03T17:48:41Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Add mentions that you run the windows builds with Proton/Wine not the native builds.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing Linux Version==&lt;br /&gt;
'''This is the recommended way to play Kemoverse Online!'''&lt;br /&gt;
&lt;br /&gt;
Kemoverse Online has a Linux build where you can play Kemoverse without Wine or Proton. This is the preferred way of playing on Linux as it has no overhead. It's the easiest, most efficient, and least resource intensive way to enjoy the game. Simply download the Linux version from [[https://kemze.itch.io/tko itch.io]].&lt;br /&gt;
&lt;br /&gt;
Double click TKo.x86_64 to launch it or alternatively run &amp;lt;code&amp;gt;./TKo.x86_64&amp;lt;/code&amp;gt; in your terminal at the game's directory.&lt;br /&gt;
&lt;br /&gt;
Make sure the application is marked as executable if it does not have permission to run for some reason.&lt;br /&gt;
==Playing with Wine==&lt;br /&gt;
Running the Windows version of the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have stuttering or issues it could be a good idea to try playing with Proton.&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to easily use Proton to play the Windows version of [[Kemoverse Online]] is to use Lutris. Make sure the version of Lutris you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install at all. This is a known bug and developers are aware of it. It'll be fixed likely when higher priority issues and game features are tackled with first.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=442</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=442"/>
		<updated>2023-05-02T05:21:42Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added information about native linux builds.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing Linux Version==&lt;br /&gt;
'''This is the recommended way to play Kemoverse Online!'''&lt;br /&gt;
&lt;br /&gt;
Kemoverse Online has a Linux build where you can play Kemoverse without Wine or Proton. This is the preferred way of playing on Linux as it has no overhead. It's the easiest, most efficient, and least resource intensive way to enjoy the game. Simply download the Linux version from [[https://kemze.itch.io/tko itch.io]].&lt;br /&gt;
&lt;br /&gt;
Double click TKo.x86_64 to launch it or alternatively run &amp;lt;code&amp;gt;./TKo.x86_64&amp;lt;/code&amp;gt; in your terminal at the game's directory.&lt;br /&gt;
&lt;br /&gt;
Make sure the application is marked as executable if it does not have permission to run for some reason.&lt;br /&gt;
==Playing with Wine==&lt;br /&gt;
Downloading wine and running the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have stuttering or issues it could be a good idea to try playing with Proton.&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to quickly use Proton to play [[Kemoverse Online]] is to use Lutris. Make sure the version you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install at all. This is a known bug and developers are aware of it. It'll be fixed likely when higher priority issues and game features are tackled with first.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=440</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=440"/>
		<updated>2023-05-02T02:51:53Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Added an extra line break.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing with Wine==&lt;br /&gt;
Downloading wine and running the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have stuttering or issues it could be a good idea to try playing with Proton.&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to quickly use Proton to play [[Kemoverse Online]] is to use Lutris. Make sure the version you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
===Wine/Proton===&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install or rendering errors could occur. This is quite expected and common though in many games.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=436</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=436"/>
		<updated>2023-05-02T02:36:25Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Another bad and irrelevant line of text.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing with Wine==&lt;br /&gt;
Downloading wine and running the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have stuttering or issues it could be a good idea to try playing with Proton.&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to quickly use Proton to play [[Kemoverse Online]] is to use Lutris. Make sure the version you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
===Wine/Proton===&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install or rendering errors could occur. This is quite expected and common though in many games.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=435</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=435"/>
		<updated>2023-05-02T02:34:32Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Fixed ugly looking link that was mostly irrelevant anyways.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing with Wine==&lt;br /&gt;
Downloading wine and running the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. If you want something slightly more robust check below in the [[[Playing with Proton]]] section. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have stuttering or issues it could be a good idea to try playing with Proton.&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to quickly use Proton to play [[Kemoverse Online]] is to use Lutris. Make sure the version you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
===Wine/Proton===&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install or rendering errors could occur. This is quite expected and common though in many games.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=434</id>
		<title>Kemoverse Online with Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Kemoverse_Online_with_Linux&amp;diff=434"/>
		<updated>2023-05-02T02:33:17Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Sort of unfinished guide on playing with Linux.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Playing with Wine==&lt;br /&gt;
Downloading wine and running the game with wine typically works out of the box. There might be some noticeable bugs and a few performance hiccups though. If you want something slightly more robust check below in the [[[Playing with Proton]]] section. Downloading wine is usually pretty simple, if it isn't already on your system simply use your package manager to download it. There is guides nearly for every system. You probably should use and download the 64 bit version of wine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting the game should be as easy as typing the following in a terminal window after navigating to the correct directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wine TKo.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If this has stuttering or issues it could be a good idea to try [[#Playing with Proton]].&lt;br /&gt;
&lt;br /&gt;
==Playing with Proton==&lt;br /&gt;
===Using Lutris===&lt;br /&gt;
A good way to quickly use Proton to play [[Kemoverse Online]] is to use Lutris. Make sure the version you download is up to date and works properly. If it fails to launch any game or install anything it's probably broken. On Linux Mint I ran into an outdated version of Lutris that didn't work so I used the Flatpak version as it was more up to date.&lt;br /&gt;
&lt;br /&gt;
After opening Lutris click the wine tab and hit the manage versions button to the right of the word wine. After clicking this you'll get a pop up of different versions of Proton/Wine you can download. Download the version you'd like to use. Close this window after you are done.&lt;br /&gt;
&lt;br /&gt;
At the top left of Lutris hit the plus button and pick add locally installed game. Select the runner to be wine. In game options tab put the TKo.exe as the executable(It's the game you are trying to run after all). In runner options you should select the version of Proton you'd like to use. It's worth noting you can also use Wine here as well.&lt;br /&gt;
&lt;br /&gt;
Hit the save button and you should be able to run the game from Lutris.&lt;br /&gt;
===Using Steam===&lt;br /&gt;
You can add non-steam games to your Steam games list with the add a game button at the bottom left. After adding a non steam game to Steam go to properties and enable compatibility tools in the compatibility tab. Pick the version of Proton you'd like to use and it should be good to go.&lt;br /&gt;
&lt;br /&gt;
It will create a new wine prefix as it does for every Steam game ran through Proton. If you ever need to find where this wine prefix is ProtonTricks will help you find where that prefix is.&lt;br /&gt;
==Notable Bugs==&lt;br /&gt;
===Wine/Proton===&lt;br /&gt;
* In game video streaming doesn't properly work. CEF won't install or rendering errors could occur. This is quite expected and common though in many games.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=431</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=431"/>
		<updated>2023-05-01T21:45:31Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Removed imprecise information.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;br /&gt;
&lt;br /&gt;
Is is technically possible to catch a fish really quickly by throwing your line and reeling it back in often, but the chance is low... so it's probably worth it to fish for a bit longer if you aren't catching anything.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=430</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=430"/>
		<updated>2023-05-01T21:21:18Z</updated>

		<summary type="html">&lt;p&gt;Commando950: /* Mechanics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number from 0-100[verification needed] is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;br /&gt;
&lt;br /&gt;
Is is technically possible to catch a fish really quickly by throwing your line and reeling it back in often, but the chance is low... so it's probably worth it to fish for a bit longer if you aren't catching anything.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=429</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=429"/>
		<updated>2023-05-01T21:20:54Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Slight mention to fish longer if you aren't catching anything.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number from 0-100[verification needed] is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;br /&gt;
&lt;br /&gt;
Is is technically possible to catch a fish really by throwing your line and reeling it back in often, but the chance is low... so it's probably worth it to fish for a bit longer if you aren't catching anything.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Fishing&amp;diff=428</id>
		<title>Fishing</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Fishing&amp;diff=428"/>
		<updated>2023-05-01T21:18:49Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Created page with &amp;quot;==Fishing== Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more lik...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Fishing==&lt;br /&gt;
Fishing is accomplished by using the fishing rod from your pack. Simply cast your line and reel it back in. The longer you have your line in the water the more likely you'll catch fish.&lt;br /&gt;
&lt;br /&gt;
==Mechanics==&lt;br /&gt;
As your fishing rod is in the water a value called chance goes up. When you unreel a random number from 0-100[verification needed] is generated. If your random number is less than chance value, you'll catch a fish. In other words the longer you are fishing the more likely you'll catch a fish because of a higher chance number.&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=427</id>
		<title>User:Commando950</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=427"/>
		<updated>2023-05-01T20:37:42Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Ohhh green is nice.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Commando950SCP.png|thumb|600px|Lurking in the shadows.]]&lt;br /&gt;
==Who Even Are You?==&lt;br /&gt;
I am a random person who showed up from [https://itch.io/ itch.io] literally only because of the fact I was looking for free games to play.&lt;br /&gt;
&lt;br /&gt;
I never considered myself a furry, but the winds of fate have blown me here. I'm basically very alien to the furry fandom besides having a lot of furry friends. In other words I just kind of now exist here by interest in the project and art style of it.&lt;br /&gt;
 	&lt;br /&gt;
==Computer Specs==&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: green&amp;quot;&amp;gt;&lt;br /&gt;
OS: Linux Mint 21.1&lt;br /&gt;
RAM: 32 GB&lt;br /&gt;
CPU: Amd Ryzen 5 3600 6-Core Processor&lt;br /&gt;
GPU: NVIDIA GeForce GTX 1660 SUPER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''I run the game through Proton GE-7-43 using Lutris. This works absolutely great for Linux users.''&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
[https://www.youtube.com/watch?v=s9odzlxOpP0 This is basically me.]&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=426</id>
		<title>User:Commando950</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=426"/>
		<updated>2023-05-01T20:31:24Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Basic content.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Commando950SCP.png|thumb|600px|Lurking in the shadows.]]&lt;br /&gt;
==Who Even Are You?==&lt;br /&gt;
I am a random person who showed up from [https://itch.io/ itch.io] literally only because of the fact I was looking for free games to play.&lt;br /&gt;
&lt;br /&gt;
I never considered myself a furry, but the winds of fate have blown me here. I'm basically very alien to the furry fandom besides having a lot of furry friends. In other words I just kind of now exist here by interest in the project and art style of it.&lt;br /&gt;
 	&lt;br /&gt;
==Computer Specs==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OS: Linux Mint 21.1&lt;br /&gt;
RAM: 32 GB&lt;br /&gt;
CPU: Amd Ryzen 5 3600 6-Core Processor&lt;br /&gt;
GPU: NVIDIA GeForce GTX 1660 SUPER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''I run the game through Proton GE-7-43 using Lutris. This works absolutely great for Linux users.''&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
[https://www.youtube.com/watch?v=s9odzlxOpP0 This is basically me.]&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=File:Commando950SCP.png&amp;diff=423</id>
		<title>File:Commando950SCP.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=File:Commando950SCP.png&amp;diff=423"/>
		<updated>2023-05-01T19:59:06Z</updated>

		<summary type="html">&lt;p&gt;Commando950: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=422</id>
		<title>User:Commando950</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=User:Commando950&amp;diff=422"/>
		<updated>2023-05-01T19:53:24Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Created the page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TODO: CONTENT&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
	<entry>
		<id>https://wiki.kemze.net/index.php?title=Cooking&amp;diff=419</id>
		<title>Cooking</title>
		<link rel="alternate" type="text/html" href="https://wiki.kemze.net/index.php?title=Cooking&amp;diff=419"/>
		<updated>2023-05-01T19:34:17Z</updated>

		<summary type="html">&lt;p&gt;Commando950: Changed images section to a gallery of images.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Cooking==&lt;br /&gt;
Since hunger is a mechanic in Kemoverse Online it is a good idea to create stews with your fellow players to keep everyone fed. After getting the supplies to make food you'll need to know how to start making your very own stew.&lt;br /&gt;
&lt;br /&gt;
==Steps for Stewing==&lt;br /&gt;
# Put on your kitchen outfit. It is located on the very right side of the room.&lt;br /&gt;
# Add water to the pot, make sure it is full.&lt;br /&gt;
# Get the prep tray that is on the kitchen sinks in the right of the room. Just to the left of your outfit.&lt;br /&gt;
# Collect or get a food item from your pack and put it on the tray. Remember on the very right side of the pack inventory there are &amp;quot;food categories&amp;quot; you can select. Click one of your foods and it will be put on the tray automatically. '''Be sure to check the foodraise boxes on the very left of the kitchen for fresh vegetables and more.'''&lt;br /&gt;
## Vegetables can be found in the vegetable box under the counter.&lt;br /&gt;
## Mushrooms can be found in the mushroom basket on top of the counter.&lt;br /&gt;
## Bugs can be found on top of the counter at the very end with a worm and butterfly icon on it.&lt;br /&gt;
## Fish can be found under the counter at the very end in a strange looking tub.&lt;br /&gt;
# Wash food ingredient at the kitchen sink. Interact with the sink by clicking the faucet.&lt;br /&gt;
# Prepare your food ingredient. It may need to be cut or sliced depending on the ingredient.&lt;br /&gt;
## Cut your food ingredient at the cutting board near the boxes directly behind you and the sink.&lt;br /&gt;
## Slice your food ingredient with the slicing board on the counter on the left side of the room.&lt;br /&gt;
# Put your food ingredient in the pot.&lt;br /&gt;
# Stir a bit. You don't need any item to do this. Just interact with the pot and click stir.&lt;br /&gt;
# Wait a really long time and check the pot. It should say the food items are &amp;quot;cooked&amp;quot; instead of &amp;quot;uncooked&amp;quot;.&lt;br /&gt;
# Grab a bowl and enjoy with everyone.&lt;br /&gt;
&lt;br /&gt;
==Images==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
KitchenIngredients.png|Kitchen ingredients located on the left side of the Kitchen.&lt;br /&gt;
Sinks.png|Kitchen prep tray and sinks.&lt;br /&gt;
Cuttingboard.png|Kitchen cutting board on top of some boxes.&lt;br /&gt;
KitchenSlicer.png|Kitchen slicer.&lt;br /&gt;
KitchenPot.png|Kitchen pot where you make stew.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Commando950</name></author>
	</entry>
</feed>