Files
donnyandClaude Fable 5.1 ffbfbf8522 contract: the Lua API reference, generated from core/
TICKET-388. contract/lua-reference/generate.py is a Python port of yugioh-legacy-server's duel-engine/ocgcore/lua-reference.sh (bash + awk): one api-<class>.md per luaL_Reg table in core/lib*.cpp (Card, Duel, Effect, Group, Debug; 670 functions) and api-globals.md for the 37 globals interpreter.cpp sets. Row counts match the server repo's committed reference exactly. Regenerate and commit after any core change to those files.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-14 22:43:59 -07:00

69 lines
2.2 KiB
Markdown

# `Effect`
> Generated from `core/` by `contract/lua-reference/generate.py`; never edited by hand. Every function the core registers on `Effect` is listed, and nothing else: a name that isn't here isn't in the core (the card scripts' `library/` defines the rest). A method is called on an object too (`c:IsCode(id)` is `Card.IsCode(c, id)`). *Arguments* is the fewest the core accepts, counting the object.
| Function | Arguments |
|---|---|
| `Effect.CheckCountLimit` | 2 |
| `Effect.ClearMeta` | 1 |
| `Effect.Clone` | 1 |
| `Effect.CreateEffect` | 1 |
| `Effect.GetActivateLocation` | 1 |
| `Effect.GetActivateSequence` | 1 |
| `Effect.GetActiveType` | 1 |
| `Effect.GetCategory` | any |
| `Effect.GetCode` | any |
| `Effect.GetCondition` | 1 |
| `Effect.GetCost` | 1 |
| `Effect.GetCountLimit` | 1 |
| `Effect.GetDescription` | any |
| `Effect.GetFieldID` | any |
| `Effect.GetHandler` | 1 |
| `Effect.GetHandlerPlayer` | 1 |
| `Effect.GetLabel` | 1 |
| `Effect.GetLabelObject` | 1 |
| `Effect.GetMetaKeys` | 1 |
| `Effect.GetMetaValue` | 2 |
| `Effect.GetOperation` | 1 |
| `Effect.GetOwner` | 1 |
| `Effect.GetOwnerPlayer` | 1 |
| `Effect.GetProperty` | 1 |
| `Effect.GetRange` | any |
| `Effect.GetTarget` | 1 |
| `Effect.GetType` | any |
| `Effect.GetValue` | 1 |
| `Effect.GlobalEffect` | any |
| `Effect.HasMetaValue` | 2 |
| `Effect.IsActivatable` | 2 |
| `Effect.IsActivated` | 1 |
| `Effect.IsActiveType` | 2 |
| `Effect.IsCostChecked` | 1 |
| `Effect.IsHasCategory` | any |
| `Effect.IsHasProperty` | 2 |
| `Effect.IsHasRange` | any |
| `Effect.IsHasType` | any |
| `Effect.Reset` | 1 |
| `Effect.SetAbsoluteRange` | 4 |
| `Effect.SetCategory` | 2 |
| `Effect.SetCode` | 2 |
| `Effect.SetCondition` | 2 |
| `Effect.SetCost` | 2 |
| `Effect.SetCostCheck` | 2 |
| `Effect.SetCountLimit` | 2 |
| `Effect.SetDescription` | 2 |
| `Effect.SetHintTiming` | 2 |
| `Effect.SetLabel` | 2 |
| `Effect.SetLabelObject` | 2 |
| `Effect.SetMetaValue` | 3 |
| `Effect.SetOperation` | 2 |
| `Effect.SetOwner` | 2 |
| `Effect.SetOwnerPlayer` | 1 |
| `Effect.SetProperty` | 2 |
| `Effect.SetRange` | 2 |
| `Effect.SetReset` | 2 |
| `Effect.SetTarget` | 2 |
| `Effect.SetTargetRange` | 3 |
| `Effect.SetType` | 2 |
| `Effect.SetValue` | 2 |
| `Effect.UseCountLimit` | 2 |