ELDAMeth: Event-driven Lightweight Distilled StateCharts-based Agents Methodology