Script call for changing enemy state

(couldn't find it in https://forums.rpgmakerweb.com/index.php?threads/script-call-collection-for-vxace.25759/ )

Anyway, I need a script call that will make enemy of index v[26] get a state of id 37. Tried few things but didn't work. Thanks!
Uh, seems indeed missing.

However, the actor commands for Change HP/MP/State/Parameters also work for enemies if you replace
$game_actors[id] with
$game_troop.members[index] (index starting at 0)
or
$game_party.members with
$game_troop.members to target the entire troop.

Edit: remembered the troop setup a bit wrong, .compact is not a necessary here, but does not break anything either.
yesyes that's exactly what I needed, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-changing-enemy-state.111829/