Scripting Cheatsheet: Difference between revisions

m Add to tutorials category
Caitemis (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
This is a cheat sheet of some of the most common actions and effects for actors to perform in a cutscene. Some of the things explained in this page include: how to make an actor move, how to make them talk, how to make them emote, change animation, etc.
This is a cheat sheet of some of the most common actions and effects for actors to perform in a cutscene. Some of the things explained in this page include: how to make an actor move, how to make them talk, how to make them emote, change animation, etc.


If you want to test this yourself, make sure that you copy ALL of the lines required. For example, if you wish to change the animation of a character, you need the with statement, and the SetAnimation code, as well as the line underneath it. You also cannot put multiple actions in a with statement. You must put a new with statement for every command that requires it.
If you want to test this yourself, make sure that you copy ALL of the lines required. For example, if you wish to change the animation of a character, you need the "with" statement and the [[List of Opcodes#0xfd - SetAnimation|SetAnimation]] code, as well as the line underneath it. You also cannot put multiple actions in a "with" statement. You must put a new with statement for every command that requires it.


All these actions should go inside a <code>def</code> statement, like so:<syntaxhighlight lang="text">
All these actions should go inside a <code>def</code> statement, like so:<syntaxhighlight lang="text">