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 in Tuxemon can be created by adding a JSON file to the <code>mods/tuxemon/db/technique</code> directory. With each new technique, the following data must be specified:
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 10: Line 10:
|-
|-
| accuracy
| accuracy
| Float parameter between 0 and 1 which decides against a random value if the technique hits or not.
| The id of the individual technique.
|-
|-
| animation
| animation
| Name of the animation under `mods/tuxemon/animations/technique` to use when the move is used.  
| Name of the animation under `resources/animations/technique` to use when the move is used.  
|-
|-
| conditions
| conditions
| Conditions are the prerequisites on which a technique fails or not.
| A comma-separated list of effects that will go off when this move is used. Multiple effects can be bound to a single technique.
|-
|-
| effects
| effects
| Effects can change some characteristics of the enemy. By using the example below: "give poison,target" will give [[Poisoned]] status to the enemy and "damage" will inflict damage to the enemy.
| A comma-separated list of effects that will go off when this move is used. Multiple effects can be bound to a single technique.
|-
|-
| flip_axes
| flip_axes
| On which axes the animation needs to be flipped, by default is empty '''""'''.
| The id of the individual technique.
|-
|-
| is_fast
| is_fast
| Boolean, whether the technique is fast or not. Fast means that will be used before the enemy ones. By default is '''False'''.
| The id of the individual technique.
|-
|-
| potency
| potency
| Float parameter between 0 and 1 which decides against a random value if the technique will give a [[:Category:Condition]].
| Amount of power the technique has. Used in "effect" calculations (such as damage).  
|-
|-
| power
| power
| Float parameter between 0 and 3 that will be used to calculate the quantity of damages.
| Amount of power the technique has. Used in "effect" calculations (such as damage).  
|-
|-
| range
| range
| The kind of technique: [[Melee]], [[Ranged]], [[Touch]], [[Special]], [[Reach]] or [[Reliable]].
| The kind of technique. Can be either "physical" or "special". Coincides with the monster's attack and special attack stats.  
|-
| recharge
| Recharging time of the technique (eg 2 = it can be used every 2 turns).
|-
|-
| sfx
| sfx
Line 43: Line 40:
|-
|-
| slug
| slug
| The slug identifier of the technique. It defines the name of the technique and there is a translation in the PO file (msgid "sting" - msgstr "Sting") as well as the description (msgid "sting_description" - msgstr "Describing the technique").  
| The slug identifier of the technique. It defines the name of the technique, since inside the PO file there is a translation corresponding at the slug (msgid "sting" - msgstr "Sting") as well as the description (msgid "sting_description" - msgstr "Describing the technique").  
|-
|-
| sort
| sort
Line 52: Line 49:
|-
|-
| types
| types
| The technique's types [[:Category:Type]].  
| The technique's types ([[Wood]], [[Fire]], [[Water]], etc.).  
|-
|-
| use_failure (optional)
| use_failure (optional)
| Corresponding msgid (translation PO file) will appear if the technique fails.
| Text will appear if the technique fails.
|-
|-
| use_success (optional)
| use_success (optional)
| Corresponding msgid (translation PO file) will appear if the technique hits.
| Text will appear if the technique hits.
|-
|-
| use_tech
| use_tech
| Corresponding msgid (translation PO file) will appear when the technique is used in battle.
| Text will appear when the technique is used in battle.
|}
|}


Here is an example of what a technique file might look like:
Here is an example of what a technique file might look like:


`mods/tuxemon/db/technique/sting.json`
`resources/db/technique/sting.json`


   json
   json

Please note that all contributions to Tuxepedia are considered to be released under the Creative Commons Attribution-ShareAlike (see Tuxepedia:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)