Scripting: Difference between revisions

no edit summary
No edit summary
Line 78: Line 78:
== Interaction ==
== Interaction ==
<code>in</code> or <code>interact</code> is a command used to interact with objects.
<code>in</code> or <code>interact</code> is a command used to interact with objects.
=== Interact with an object. ===
{{HeaderNoTOC|Interact with an object}}
Interacting with objects is fairly reasonable.
Interacting with objects is fairly reasonable.


Line 94: Line 94:
<code>turn</code> or <code>tn</code> is a command used to turn your character.
<code>turn</code> or <code>tn</code> is a command used to turn your character.


===Turn to a compass direction===
{{HeaderNoTOC|Turn to a compass direction}}
  <nowiki>
  <nowiki>
tn north
tn north
Line 101: Line 101:
tn south</nowiki>
tn south</nowiki>


===Turn to face an object===
{{HeaderNoTOC|Turn to face an object}}
  <nowiki>
  <nowiki>
tn to sera_hammock</nowiki>
tn to sera_hammock</nowiki>
Line 107: Line 107:
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.
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 ===
{{HeaderNoTOC|Turn to an exact spot}}
You can turn to an exact spot in the world using coordinates.
You can turn to an exact spot in the world using coordinates.


Line 115: Line 115:
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.


===Stop Turning===
{{HeaderNoTOC|Stop turning}}
<code>tn</code> to stop turning.
<code>tn</code> to stop turning.


==Equipment==
==Equipment==
<code>eq</code> or <code>equip</code> lets you equip, unequip, and use equipment.
<code>eq</code> or <code>equip</code> lets you equip, unequip, and use equipment.
===Equip Item===
{{HeaderNoTOC|Equip item}}
You can equip your fishing rod by simply <code>eq fishingpole</code> if you have the fishing rod.
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.
Check the [[#Equipment List]] below for things you can equip.


===Use Item===
{{HeaderNoTOC|Use item}}
You can use your fishing rod by simply <code>eq fishingpole use</code>.
You can use your fishing rod by simply <code>eq fishingpole use</code>.


Check the [[#Equipment List]] below for things to use.
Check the [[#Equipment List]] below for things to use.


===Unequip Item===
{{HeaderNoTOC|Unequip item}}
You can unequip your item by simply using <code>eq</code>.
You can unequip your item by simply using <code>eq</code>.


===Equipment List===
{{HeaderNoTOC|Equipment list}}
A list of a few valid items to equip or use:
A list of a few valid items to equip or use:
  <nowiki>
  <nowiki>
Line 143: Line 143:
<code>lk</code> or <code>look</code> is a command used to turn your head to look at something.
<code>lk</code> or <code>look</code> is a command used to turn your head to look at something.


===Look to a compass direction===
{{HeaderNoTOC|Look to a compass direction}}
  <nowiki>
  <nowiki>
lk north
lk north
Line 150: Line 150:
lk south</nowiki>
lk south</nowiki>


===Look at an object===
{{HeaderNoTOC|Look at an object}}
  <nowiki>
  <nowiki>
lk to sera_hammock</nowiki>
lk to sera_hammock</nowiki>
Line 156: Line 156:
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.
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 ===
{{HeaderNoTOC|Look at an exact spot}}
You can look at an exact spot in the world using coordinates.
You can look at an exact spot in the world using coordinates.


Line 164: Line 164:
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.


===Stop Looking===
{{HeaderNoTOC|Stop looking}}
<code>lk</code> to stop looking.
<code>lk</code> to stop looking.


Line 170: Line 170:
<code>fc</code> or <code>face</code> lets you make a facial expression.
<code>fc</code> or <code>face</code> lets you make a facial expression.


===Expressions===
{{HeaderNoTOC|Expressions}}
<code>fc happy</code> for a happy expression.
<code>fc happy</code> for a happy expression.


Line 183: Line 183:
<code>fc fear</code> for a fearful expression.
<code>fc fear</code> for a fearful expression.


===Make expressions for a length of time===
{{HeaderNoTOC|Make expressions for a length of time}}
<code>fc happy 3</code> will be happy for 3 seconds.
<code>fc happy 3</code> will be happy for 3 seconds.


===Stop Expressions===
{{HeaderNoTOC|Stop expressions}}
<code>fc</code> to stop facial expressions.
<code>fc</code> to stop facial expressions.


Line 192: Line 192:
<code>an</code> or <code>animate</code> to play an animation.
<code>an</code> or <code>animate</code> to play an animation.


===Play Animation===
{{HeaderNoTOC|Play animation}}
<code>an yes</code> will play an animation where you nod your head yes.
<code>an yes</code> will play an animation where you nod your head yes.


Line 201: Line 201:
<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.
<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.


{{HeaderNoTOC|List of animations}}
Social Animations:
Social Animations:
  <nowiki>
  <nowiki>
Line 221: Line 222:
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep</nowiki>
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep</nowiki>


===Stop Animation===
{{HeaderNoTOC|Stop animation}}
<code>an</code>
<code>an</code>