void main() { int iIndex = GetLocalInt(OBJECT_SELF, "index"); SetLocalInt(OBJECT_SELF, "index", iIndex + 1); }