begin script NewScript
oTown = get town with id 0
oPen = get building ABODE_NUMBER_CREATURE_PEN in oTown min built 1.0
oCreature = create SCRIPT_OBJECT_TYPE_CREATURE CREATURE_TYPE_LION at {oPen}
start
set player 0 creature to oCreature
release oCreature
end script NewScript