Skip to content

API ​

Choose the reference for the scripting layer you need. These pages follow this project's MDPro4/YGOPro core and helper sources; available functions can differ between simulators.

Choose a Reference ​

ReferenceWhat you will find
Core and standard helper functionsCard, Effect, Group, Duel, and standard Lua helpers.
Standard constantsLocations, events, effect codes, and standard-format flags.
Rush Duel helpersThe RushDuel namespace and its RD alias.
Rush Duel constantsConstants defined by the Rush rules and helper library.

Using the Rush API ​

Rush scripts use Card, Effect, Group, and Duel alongside the Rush helpers, so you will use both references. The matching Rush bootstrap must load the helper library and rules before your card script runs; the database's Rush label alone does not enable them.

Start with the Rush API overview, or follow the Rush Duel learning path for complete examples. Keep Rush-specific constants separate from the standard definitions.

Sources ​

  • ygopro-core/lib*.cpp
  • Define/def.lua
  • Utilities/utility.lua
  • Utilities/procedure.lua
  • Rush/Utilities/RD*.lua and Rush/Utilities/special.lua