Scripting: Difference between revisions

 
(2 intermediate revisions by the same user not shown)
Line 207: Line 207:
==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.
{{HeaderNoTOC|Equip item}}
{{HeaderNoTOC|Equip item}}
You can equip your fishing rod by simply <code>eq fishingpole</code> if you have the fishing rod.
<code>eq fishingpole</code> equips an item in to its respective slot.


Check the [[#Equipment List]] below for things you can equip.
{{HeaderNoTOC|Use item}}
<code>eq fishingpole use</code> uses an item, similar to pressing the left mouse button/using "V". The item has to have been equipped already.


{{HeaderNoTOC|Use item}}
{{HeaderNoTOC|Unequip item}}
You can use your fishing rod by simply <code>eq fishingpole use</code>.
<code>eq</code> unequips your primary item (typically, the one you're actively holding in your hand).


Check the [[#Equipment List]] below for things to use.
<code>eq all</code> unequips any of your equipped items (which includes accessories and other gear attached to parts of your body).


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


{{HeaderNoTOC|Equipment list}}
{{HeaderNoTOC|Equipment list}}
Line 249: Line 249:
<code>fc</code> to stop facial expressions.
<code>fc</code> to stop facial expressions.


==Play Animation==
==Play emote==
<code>an</code> or <code>animate</code> to play an animation.
<code>em</code> or <code>emote</code> to play a specific emote.
 
{{HeaderNoTOC|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.
 
{{HeaderNoTOC|List of animations}}
Social Animations:
<nowiki>
yes, no, shrug, clap, bow, yawn, wave</nowiki>


Emotive Animations:
{{HeaderNoTOC|Play emote}}
<nowiki>
<code>em yes</code> will play the "yes" emote, the same one that plays with the chat command "/em yes" or when pressing "yes" in the emoter window.
admire, giggle, angry, sada, scared, rave</nowiki>
 
Other Animations:
<nowiki>
poke, pose, think, type</nowiki>
 
Duo Animations:
<nowiki>
hug</nowiki>
 
Standing & Sitting & Laying Animations:
<nowiki>
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep</nowiki>


{{HeaderNoTOC|Stop animation}}
{{HeaderNoTOC|Cancel emote}}
<code>an</code>
<code>em</code> will cancel any currently playing emote.


==Wait/Delay==
==Wait/Delay==
Line 312: Line 285:
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.
This allows the script runner to move forward and pause for 2 seconds for a total of 5 times.


==Cutscene==
==Camera control==
<code>cm</code> or <code>camera</code> lets you control cutscenes, cameras, and have a few cinematic controls.
<code>cm</code> or <code>camera</code> lets you control cutscenes, cameras, and have a few cinematic controls.