Scripting: Difference between revisions

m (Corrected typing animation name typo to type instead of typing.)
Line 41: Line 41:
<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.
<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 ===
{{HeaderNoTOC|Move a direction}}
  <nowiki>
  <nowiki>
mv forward
mv forward
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 ===
{{HeaderNoTOC|Move to an object}}
  <nowiki>
  <nowiki>
mv to sera_hammock</nowiki>
mv to sera_hammock</nowiki>
Line 55: Line 55:
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.
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 ===
{{HeaderNoTOC|Move to an object with a specific distance}}
  <nowiki>
  <nowiki>
mv to sera_hammock 3</nowiki>
mv to sera_hammock 3</nowiki>
Line 65: Line 65:
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.
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 ===
{{HeaderNoTOC|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 73: Line 73:
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 moving===
{{HeaderNoTOC|Stop moving}}
<code>mv</code> to stop moving.
<code>mv</code> to stop moving.