Skip to content

MD Framework

  • Cue β€” the building block of an MD script. Has conditions and actions.
  • Library β€” reusable callable block (purpose="run_actions" or purpose="cue_ref").
  • Action β€” operations (<set_value>, <create_ship>, <set_owner>, <run_actions>, …).
  • Condition / Event β€” triggers (<event_cue_signalled>, <event_object_destroyed>, <check_value>, …).
  • Expression β€” variable access ($x, .cargo.list, faction.argon.relationto.{X}).
  • β€œHow do I make a cue run periodically?” β†’ Cue β†’ Attributes β†’ checktime + checkinterval.
  • β€œHow do I share state between scripts?” β†’ Expression β†’ global.$X vs md.X.$Y.
  • β€œHow do I version my mod’s persistent state?” β†’ Cue β†’ Attributes β†’ version=N + <patch sinceversion>.
  • β€œHow do I write a reusable function in MD?” β†’ Library β†’ purpose=run_actions example.