Auto-translated
if SetObjectiveState("vedma1", OBJECTIVE_COMPLETED) then
You have an error here. The `if` statement checks conditions, while `SetObjectiveState`/`SetObjectPosition`/`SetObjectOwner`, etc., change them. In this example, `if` only works with `GetObjectState`/`GetObjectPosition`/`GetObjectOwner`, etc.