Here are some threads on how and what you need.
http://forum.thegamecreators.com/?m=forum_view&t=195009&b=21
http://forum.thegamecreators.com/?m=forum_view&t=180808&b=21
the file in the download button is the converter program.
The script in the code is an fpi script with some examples.
;Artificial Intelligence Script
;Header
desc = Animate character based on which body part gets shot
;Triggers
;:state=0,raycast=0 99:runfpidefault=1,state=1
:state=0:state=1
:shotdamagetype=1:state=25,setframe=1
:shotdamagetype=2:state=2,setframe=7
:shotdamagetype=3:state=3,setframe=3
:shotdamagetype=4:state=4,setframe=5
:state=1:runfpidefault=1,state=0
;Close
:state=2:state=1
:state=3:incframe=3,state=55
:state=4:incframe=5,state=60
:state=25:incframe=1,state=50
:state=50,frameatend=1:etimerstart,activateifused=1,state=51
:state=51,etimergreater=3000:decframe=1,state=51
:state=52,frameatstart=1:state=0
:state=55,frameatend=3:etimerstart,state=56
:state=56,etimergreater=3000:decframe=3,state=57
:state=57,frameatstart=3:state=0
:state=60,frameatend=5:etimerstart,state=61
:state=61,etimergreater=3000:decframe=5,state=62
:state=62,frameatstart=5:state=0
;End of Script
Hope this helps.