GetSpellCatalog: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 27: Line 27:
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions]]

Latest revision as of 09:53, 15 August 2026

getSpellCatalog

Returns every spell definition known by the authoritative magic system.

Syntax

table getSpellCatalog()

Parameters

This function does not accept parameters.

Returns

Returns a 1-indexed array of spell definition tables plus catalog version/hash metadata.

Examples

Print all implemented spells:

for _, spell in ipairs(getSpellCatalog()) do
    if spell.implemented then
        print(spell.id, spell.key, spell.requiredCircle)
    end
end

Notes

  • Available only in server-side resource scripts.