Editing Creating Techniques
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Techniques | Techniques can be created by creating a simple [http://en.wikipedia.org/wiki/JSON JSON] text file in the [[Technique Table]] folder under `resources/db/technique`. This folder contains all of the details of each technique available in Tuxemon. Here you can specify the technique's type(s), power, and [[Technique effects]]. You can create **brand new** technique effects by adding it as a new method to the [http://www.tuxemon.org/docs/core.components.monster.html#core.components.monster.Technique core.components.monster.Technique] class. With each new technique, the following data must be specified: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 6: | Line 6: | ||
! Description | ! Description | ||
|- | |- | ||
| | | id | ||
| The id of the individual technique. | | The id of the individual technique. | ||
|- | |- | ||
| | | name | ||
| | | The name of the technique. | ||
|- | |- | ||
| | | effect | ||
| | | A comma-separated list of effects that will go off when this move is used. Multiple effects can be bound to a single technique. | ||
|- | |- | ||
| | | type1 | ||
| | | The primary type of technique. Used for super-effectiveness, etc. | ||
|- | |- | ||
| | | type2 | ||
| | | The secondary type of technique. Used for super-effectiveness, etc. | ||
|- | |- | ||
| power | | power | ||
| | | Amount of power the technique has. Used in "effect" calculations (such as damage). | ||
|- | |- | ||
| | | category | ||
| The kind of technique | | The kind of technique. Can be either "physical" or "special". Coincides with the monster's attack and special attack stats. | ||
|- | |- | ||
| | | animation | ||
| | | Name of the animation under `resources/animations/technique` to use when the move is used. | ||
|- | |- | ||
| sfx | | sfx | ||
| The sound effect under `resources/sounds/technique` to play when using the move. | | The sound effect under `resources/sounds/technique` to play when using the move. | ||
|} | |} | ||
Here is an example of what a technique file might look like: | Here is an example of what a technique file might look like: | ||
` | `resources/db/technique/poison_sting.json` | ||
<code>json | |||
{ | |||
"animation": "spike", | |||
"sfx": "bite1.ogg", | |||
"category": "special", | |||
"effects": [ | |||
" | "damage", | ||
"poison" | |||
], | |||
"id": 2, | |||
"name": "Poison Sting", | |||
"power": 40, | |||
"types": [ | |||
"Poison" | |||
] | |||
} | |||
</code> | |||
" | |||
" | |||
" | |||