using(ScriptAPI) { AddByte("invenslot"); if (Remaining() == 1) { AddByte("invenType"); } }