Scripting: Difference between revisions

12 bytes removed ,  7 May 2023
No edit summary
Line 38: Line 38:
= Script commands =
= Script commands =


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


==== Move a direction ====
=== 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 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 56:


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


=== Interaction ===
== Interaction ==
==== Interact with an object. ====
=== Interact with an object. ===
Interacting with objects is fairly reasonable.
Interacting with objects is fairly reasonable.