Scripting: Difference between revisions

 
(4 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:
<nowiki>
admire, giggle, angry, sada, scared, rave</nowiki>
 
Other Animations:
<nowiki>
poke, pose, think, type</nowiki>


Duo 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.
hug</nowiki>


Standing & Sitting & Laying Animations:
{{HeaderNoTOC|Cancel emote}}
<nowiki>
<code>em</code> will cancel any currently playing emote.
groundstand, groundstand2, groundstand3, groundsit, groundsit2, groundlay, groundsleep</nowiki>
 
{{HeaderNoTOC|Stop animation}}
<code>an</code>


==Wait/Delay==
==Wait/Delay==
Line 290: Line 263:
{{HeaderNoTOC|Wait for a certain amount of time}}
{{HeaderNoTOC|Wait for a certain amount of time}}


<code>. 5</code> waits for 5 seconds before running more of the code. Mind the space! (".5" without space doesn't mean anything)
<code>wait 5</code> waits for 5 seconds before running more of the code. Mind the space! (".5" without space doesn't mean anything)


{{HeaderNoTOC|Wait until action is finished}}
{{HeaderNoTOC|Wait until action is finished}}


<code>.</code> simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.
<code>wait</code> simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure finishing moving to a location.
 
<code>wait:Target</code> can be used to target an action wait for a specific character.


==Repeat/For Loop==
==Repeat/For Loop==
Line 310: 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.


Line 338: Line 313:


Remember to put <code>wait</code> to wait for the fade. (eg. <code>wait 1.0</code> to wait one second after doing <code>cm fade 1.0</code>)
Remember to put <code>wait</code> to wait for the fade. (eg. <code>wait 1.0</code> to wait one second after doing <code>cm fade 1.0</code>)
{{HeaderNoTOC|Fading to player}}
<code>cm fadeplayer</code> is a shorthand to fade to black, reset camera to player, then fade out (with automatic waiting).


{{HeaderNoTOC|Dissolving}}
{{HeaderNoTOC|Dissolving}}
<code>cm dissolve</code> creates a short dissolve effect (a snapshot of the screen is faded out to a new shot).
<code>cm dissolve</code> creates a short dissolve effect (a snapshot of the screen is faded out to a new shot).
{{HeaderNoTOC|Blurring}}
<code>cm blur 2.0</code> toggles a blurry effect on the screen with 2.0x power.
<code>cm blur</code> toggles the blurry effect off.