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