Jump to content

Doctor animations script


Recommended Posts

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...