Your questions aren't really very clear, but this might help you:
- give the enemy a variable shootingchance
for each enemy
-enemy set shootingchance : floor(random(201))
subevent:
enemy compare variable shootingchance = 200
-enemy shoot
if enemy hits wall
pick all enemies - perform action.