XBOBER,
Welcome to the
FPSC forum. What you're asking is totally possible via the .fpi scripting that
FPSC uses.
While it might allow you to have the function you seek, providing a new member such as yourself with a scripting solution will not help you to learn the .fpi scripting language (
which really isn't hard at all), or force you to find solutions for yourself.
Realize that nobody will create something for anyone here, unless they are willing to make an effort themselves.
Examine existing scripts. You can learn a great deal by looking at these. Create your own scripts, using existing scripts as templates/tutorials.
The search button really is your best friend on these boards. Get familiar with it, and use it often. There are tons of posts that you can examine, that will often tell you exactly how to script exactly what it is you seek.
Again, welcome to the forum. Best of luck to you in your endeavours.
Thanks,
Seth Black