Scripting: Difference between revisions

4,289 bytes added ,  10 May 2023
Lots of scripting commands added.
(Lots of scripting commands added.)
Line 39: Line 39:


== Movement ==
== Movement ==
mv,move is one of the most important movement commands. There is various ways to get a character to move.
<code>mv</code> or <code>move</code> is one of the most important movement commands. There is various ways to get a character to move.


=== Move a direction ===
=== Move a direction ===
Line 49: Line 49:


You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.
You can also specify how many steps you want a character to take. mv forward 5 will move 5 steps forward.
=== Move to an object ===
<nowiki>
mv to sera_hammock</nowiki>
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.
=== Move to an object with a specific distance ===
<nowiki>
mv to sera_hammock 3</nowiki>
Move up to 3 meters next to sera's hammock.
It also accepts decimals such a 0.5 meters.
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.
=== Move to an exact spot ===
=== Move to an exact spot ===
You can move to an exact spot in the world using coordinates.
You can move to an exact spot in the world using coordinates.
Line 56: Line 72:


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.
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.
=== Move to an object ===
<nowiki>
mv to sera_hammock</nowiki>


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.
===Stop moving===
<code>mv</code> to stop moving.


== Interaction ==
== Interaction ==
<code>in</code> or <code>interact</code> is a command used to interact with objects.
=== Interact with an object. ===
=== Interact with an object. ===
Interacting with objects is fairly reasonable.
Interacting with objects is fairly reasonable.
Line 75: Line 90:


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.
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.
==Turning==
<code>turn</code> or <code>tn</code> is a command used to turn your character.
===Turn to a compass direction===
<nowiki>
tn north
tn west
tn east
tn south</nowiki>
===Turn to face an object===
<nowiki>
tn to sera_hammock</nowiki>
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.
=== Turn to an exact spot ===
You can turn to an exact spot in the world using coordinates.
<nowiki>
tn to -38.35 1.77 41.12</nowiki>
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.
===Stop Turning===
<code>tn</code> to stop turning.
==Looking==
<code>lk</code> or <code>look</code> is a command used to turn your head to look at something.
===Look to a compass direction===
<nowiki>
lk north
lk west
lk east
lk south</nowiki>
===Look at an object===
<nowiki>
lk to sera_hammock</nowiki>
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.
=== Look at an exact spot ===
You can look at an exact spot in the world using coordinates.
<nowiki>
lk to -38.35 1.77 41.12</nowiki>
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.
===Stop Looking===
<code>lk</code> to stop looking.
==Facial Expression==
<code>fc</code> or <code>face</code> lets you make a facial expression.
===Expressions===
<code>fc happy</code> for a happy expression.
<code>fc sad</code> for a sad expression.
<code>fc close</code> to close your eyes.
<code>fc tongue</code> to put your tongue out.
<code>fc angry</code> for an angry expression.
<code>fc fear</code> for a fearful expression.
===Make expressions for a length of time===
<code>fc happy 3</code> will be happy for 3 seconds.
===Stop Expressions===
<code>fc</code> to stop facial expressions.
==Play Animation==
<code>an</code> or <code>animate</code> to play an animation.
===Play Animation===
<code>an yes</code> will play an animation where you nod your head yes.
<code>an dance 3</code> will play the dance animation 3 times.
<code>an dance -1</code> will play the dance animation forever.
<code>an bow 3 0.5</code> plays the bow animation for 3 seconds, however, it starts the animation from the middle instead of the beginning.
Social Animations:
<nowiki>
yes, no, shrug, clap, bow, yawn, wave</nowiki>
Emotive Animations:
<nowiki>
admire, giggle, angry, sada, scared, rave</nowiki>
Other Animations:
<nowiki>
poke, pose, think, typing</nowiki>
Duo Animations:
<nowiki>
hug</nowiki>
Standing & Sitting & Laying Animations:
<nowiki>
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep</nowiki>
===Stop Animation===
<code>an</code>
==Equipment==
<code>eq</code> or <code>equip</code> lets you equip, unequip, and use equipment.
===Equip Item===
You can equip your fishing rod by simply <code>eq fishingpole</code> if you have the fishing rod.
Check the [[#Equipment List]] below for things you can equip.
===Use Item===
You can use your fishing rod by simply <code>eq fishingpole use</code>.
Check the [[#Equipment List]] below for things to use.
===Unequip Item===
You can unequip your item by simply using <code>eq</code>.
===Equipment List===
A list a few valid items to equip or use:
<nowiki>
watergun, fishingpole, waterbucket, glowstick, stickynote, spraycan, slingshot, shovelknife, catchnet, foodbowl</nowiki>
62

edits