hy, in this skript the last citizen suffers no damage. no error in this skript, and the {_id} is set correctly I know this because when I made the citizen say something it made the last spawned citizen to say it (aka the citizen I'm trying to make it take damage).
Code:
command /testnpc <text>:
permission: op
trigger:
create citizen named arg-1 at location of player
set {_id} to last created citizen id
make citizen {_id} vulnerable
set citizen {_id} max health to 10