Template:MoveInherit/doc: Difference between revisions

Template page
(Created page with "{{Uses Cargo|Special:CargoTables/Move}} {{Lua|Module:Move|Module:Move/functions|Module:Move/game}} {{Hatnote|This page is for ''Tekken 8''. For ''Tekken 7'', see Template:Mo...")
 
(rewrite)
 
Line 1: Line 1:
{{Uses Cargo|Special:CargoTables/Move}}
{{Uses Cargo|Special:CargoTables/Move}}
{{Lua|Module:Move|Module:Move/functions|Module:Move/game}}
{{Lua|Module:Move|Module:Game}}
{{Hatnote|This page is for ''Tekken 8''. For ''Tekken 7'', see [[Template:MoveInherit7]].}}
{{Navbox Cargo}}
{{Hatnote|{{tl|MoveInherit7}} is the same as {{tl|MoveInherit}} but uses [[Special:CargoTables/Move7]] instead.}}


This template defines a new move based on an already existing one. Main use is to define move which is based on a generic move. E.g. <code>Generic-1</code> is shared by most of the cast but it's hitbox and extensions may differ character by character.
This template defines a new move based on an already existing one.


{{Move/doc/related}}
Main use is to define a move based on a generic move, e.g. <code>Generic-d+1</code> is shared by most of the cast but its range, tracking, and input differs for each character.
 
It can also be helpful when writing [[movelist]]s to avoid duplication, e.g. when a character has distinct moves that are largely the same.


== Usage ==
== Usage ==


<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
{{MoveInherit|Generic-1
{{MoveInherit|Generic-d+1
|id=Bryan-1
|id=Lidia-d+1
|range=2.30
|input=db+1
|notes={{Plainlist|
|range=1.82
* Alternate input:
** f+1
** Sway.1}}
}}
}}
</syntaxhighlight>
</syntaxhighlight>
== Parameters ==
Parameters are largely the same as {{tl|Move}}, with the addition of <code>1</code> which is the id of the move to be inherited.
If no <code>id</code> parameter is given, the new move won't be saved in the database.
If any of the following parameters are given, the new move is not considered a clone (meaning no <code>clonedFrom</code> link will be generated): <code>target</code>, <code>damage</code>, <code>startup</code>, <code>recv</code>, <code>tot</code>, <code>crush</code>, <code>block</code>, <code>hit</code>, <code>ch</code>, <code>notes</code>.

Latest revision as of 12:30, 5 March 2024

{{MoveInherit7}} is the same as {{MoveInherit}} but uses Special:CargoTables/Move7 instead.

This template defines a new move based on an already existing one.

Main use is to define a move based on a generic move, e.g. Generic-d+1 is shared by most of the cast but its range, tracking, and input differs for each character.

It can also be helpful when writing movelists to avoid duplication, e.g. when a character has distinct moves that are largely the same.

Usage

{{MoveInherit|Generic-d+1
|id=Lidia-d+1
|input=db+1
|range=1.82
}}

Parameters

Parameters are largely the same as {{Move}}, with the addition of 1 which is the id of the move to be inherited.

If no id parameter is given, the new move won't be saved in the database.

If any of the following parameters are given, the new move is not considered a clone (meaning no clonedFrom link will be generated): target, damage, startup, recv, tot, crush, block, hit, ch, notes.