User Input

Hi, im new to scripting in blender. What im trying to write is a script that will set key frames for animation based on a sequence of moves on a 3 player chess board. I have the key frame setting code working but what I would like it to have is an input field at the top of the panel that will be the amount of moves the piece will make. That value would then set an amount of other input fields to appear which are the coordinated of the spaces it will move to (the space coordinate is a 3 dimensional vector). Is it possible to do something like this?