I need a clear example of how to use "append_vehicle(player_x pl, convoy_x cnv, vehicle_desc_x desc)" to assemble vehicles.
This is a bit confusing for me. :-[
You can have a look at the sample AI
https://github.com/aburch/simutrans/blob/master/simutrans/ai/sqai/vehicle_constructor.nut