Changes

Jump to navigation Jump to search
1,123 bytes added ,  11:08, 29 October 2021
Line 247: Line 247:  
| Adds either a Battered Sword or Return Scepter to the player's inventory. The ''Battered Sword'' is unobtainable in vanilla and is incomplete and not implemented.
 
| Adds either a Battered Sword or Return Scepter to the player's inventory. The ''Battered Sword'' is unobtainable in vanilla and is incomplete and not implemented.
 
|-
 
|-
| <tt>advancedMove {{t|npc}} {{t|loop}} {{t|x y}}...</tt>
+
| <tt>advancedMove {{t|npc}} {{t|loop}} {{t|x y}}... OR {{t|x y direction duration}}</tt>
 
| Set multiple movements for an NPC.  You can set True to have NPC walk the path continuously. Example: <tt>/advancedMove Robin false 0 3 2 0 0 2 -2 0 0 -2 2 0/</tt>
 
| Set multiple movements for an NPC.  You can set True to have NPC walk the path continuously. Example: <tt>/advancedMove Robin false 0 3 2 0 0 2 -2 0 0 -2 2 0/</tt>
 +
 +
If you want to assign pauses in between the movement, you would need to add <tt>direction</tt> and <tt>duration</tt> right after <tt>x y</tt> such as the example below: <tt>/advancedMove Clint true 4 0 2 5000 -4 0 1 3000</tt>.
 +
 +
In this example, Clint will have continuous movement moving 4 tiles to the right, facing down upon arriving, waiting for 5 seconds, then moving 4 tiles to the left, facing right upon arriving, then waiting for 3 seconds, then loops because the loop was set to true(see above).
 +
 +
You can also create movement with no pauses and pauses mixed in it. You can refer to the example below:
 +
<tt>advancedMove Pam true 5 0 0 3 3 5000 -6 0 0 -4</tt>
 +
In this example, Pam first moves 5 tiles to the right, then directly moves 3 tiles downward, faces the to the left upon arriving then waits 5 seconds before moving 6 tiles to the left then moves up 4 tiles directly.
 +
 +
NOTE: <tt>direction</tt> works a bit differently here compared to the <tt>faceDirection</tt> command. You should use the value 4 instead of 0 to make the NPC look north/up or else your command will bug out.
 
|-
 
|-
 
| <tt>ambientLight {{t|r}} {{t|g}} {{t|b}}</tt>
 
| <tt>ambientLight {{t|r}} {{t|g}} {{t|b}}</tt>
7

edits

Navigation menu