As an example, if the polyol constituent of a terpolymer of this invention is polybutadiene diol, the resultant terpolymer could be, after the lactam-polyol-polyacyl lactam polymerization, subsequently reacted with a vinyl compound such as styrene to crosslink the polymer through its vinyl unsaturation.