Event structures with higher-order dynamics