Scripting Cheatsheet: Difference between revisions
Port scripting cheatsheet by Okami to the wiki + Minor fixes |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| 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 | 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 | 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"> | ||
| Line 269: | Line 269: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Tutorials]] | |||