Feature

Duels of the Planeswalkers: The Magic Engine

  • Boards
  • Print
Author Image
Back to main article

OK, programmer types, here's that code in a format that's a little easier on the eyes:


They use our bespoke system for passing object references from C++ to Lua (Subject, Object, and TriggerObject in the above examples), and for calling C++ from Lua (GetCurrentCharacteristics, Badge_Set, FX_Set, CanOnlyBeBlockedBy_Set, CanBlock_Set, GetPlayer and GainLife).

Back to main article
  • Planeswalker Points
  • Facebook Twitter
  • Gatherer: The Magic Card Database
  • Forums: Connect with the Magic Community
  • Magic Locator