Roycesraphim Posted July 17, 2011 Share Posted July 17, 2011 So I have a character I want to perform a doctors script animation like Red and the guy in Megaton. I looked at Red's script and found the following and tried to copy and paste it over into a new script but when I save, it gives me an error at line 13 or 14. scn VTFIMQAniCassieDoctor ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! COPIED FROM DOCTOR TEMPLATE SCRIPT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! short DoOnce ;Script blocker float Timer ;Timer used for animation control ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! COPIED FROM DOCTOR TEMPLATE SCRIPT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;When set to 1, plays medical animations for eight seconds then restarts conversation with the player if ( GetAV Variable01 == 1 ) if ( DoOnce== 0 ) disablePlayerControls sayto player MegDocChurchMedicalChatter set Timer to 8 set DoOnce to 1 if ( GetIsID Sawbones == 0 ) PlayIdle LooseDoctorHeal endif endif set Timer to ( Timer - GetSecondsPassed ) if ( Timer <= 6 ) && ( DoOnce == 1 ) IMod FadeToBlackISFX set DoOnce to 2 endif if ( Timer <= 0 ) && ( IsImagespaceActive FadeToBlackISFX == 0 ) setstage Doctors 10 enablePlayerControls evp SetAv Variable01 3 Set DoOnce to 0 endif endif ;When set to 1, plays medical animations for eight seconds then restarts conversation with the player if ( GetAV Variable01 == 2 ) if ( DoOnce== 0 ) disablePlayerControls evp set Timer to 8 set DoOnce to 1 if ( GetIsID Sawbones == 0 ) PlayIdle LooseDoctorHeal endif endif set Timer to ( Timer - GetSecondsPassed ) if ( Timer <= 6 ) && ( DoOnce == 1 ) IMod FadeToBlackISFX set DoOnce to 2 endif if ( Timer <= 0 ) && ( IsImagespaceActive FadeToBlackISFX == 0 ) setstage Doctors 20 enablePlayerControls evp SetAv Variable01 3 Set DoOnce to 0 endif endif ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
rickerhk Posted July 17, 2011 Share Posted July 17, 2011 Try adding a space:if ( DoOnce== 0 )change toif ( DoOnce == 0 ) Link to comment Share on other sites More sharing options...
Recommended Posts