Difference between revisions of "Module:DefInfo/doc"
Jump to navigation
Jump to search
m |
m (→Examples) |
||
Line 21: | Line 21: | ||
<code><nowiki>{{#invoke:DefInfo|query|Races|Hare|description}}</nowiki></code> | <code><nowiki>{{#invoke:DefInfo|query|Races|Hare|description}}</nowiki></code> | ||
− | will return: {{#invoke:DefInfo|query|Races|Hare|description}} | + | will return: |
+ | |||
+ | {{#invoke:DefInfo|query|Races|Hare|description}} | ||
<noinclude>[[Category:Module documentation]]</noinclude> | <noinclude>[[Category:Module documentation]]</noinclude> |
Revision as of 13:45, 14 March 2021
Description
This module is used to obtain information about certain game objects. It uses data stored in the subpages of the module. The data that is in those subpages is gathered from the game's XML Defs files.
Usage
{{#invoke:DefInfo|query|type|object|property}}
- type
- For now, the only type that is available is: Races. More will be added.
- object
- If we're querying Races, then, an object is for example: Hare, Lynx, Lancer, etc.
- property
- MoveSpeed, description, baseBodySize, ...
Examples
{{#invoke:DefInfo|query|Races|Hare|description}}
will return:
Script error: The module returned a nil value. It is supposed to return an export table.