The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

DoctorBarrowsScript not working as intended

General mod discussion and requests.
Post Reply
anstand
Posts: 223
Joined: Tue Feb 11, 2014 10:41 am

DoctorBarrowsScript not working as intended

Post by anstand » Wed Sep 14, 2016 7:25 am

Hello there,


whenever Doctor Barrows patches me up, I can freely move and he just stands there without playing his "Healing Doctor"-idle animation. I however lose 75 caps, get healed and he talks to me after some seconds.


I checked the NPC entry of him and saw that his script technically should make sure that everything works like as getting healed by the other doctors in the waste (aka doctor patching up idle).



;Healing block (as per Erik's model)



    ;When set to 1, plays medical animations for eight seconds then restarts conversation with the player

    if ( GetAV Variable01 == 1 )

        if ( DoOnce== 0 )

            disablePlayerControls

            resetai

            sayto player MegDocChurchMedicalChatter

            PlayIdle LooseDoctorHeal

            set Timer to 8

            set DoOnce to 1

        endif



        set Timer to ( Timer - GetSecondsPassed )



        if ( Timer <= 3 ) && ( DoOnce == 1 )

            IMod FadeToBlackISFX

            set DoOnce to 2

        endif



        if ( Timer <= 0 ) && ( IsImagespaceActive FadeToBlackISFX == 0 )

            setstage Doctors 10

            enablePlayerControls

            SetAv Variable01 3

            resetai

            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

            resetai

            PlayIdle LooseDoctorHeal

            set Timer to 8

            set DoOnce to 1

        endif



        set Timer to ( Timer - GetSecondsPassed )



        if ( IsAnimPlaying == 0 )

            PlayIdle LooseDoctorHeal

        endif



        if ( Timer <= 3 ) && ( DoOnce == 1 )

            IMod FadeToBlackISFX

            set DoOnce to 2

        endif



        if ( Timer <= 0 ) && ( IsImagespaceActive FadeToBlackISFX == 0 )

            setstage Doctors 20

            enablePlayerControls

            SetAv Variable01 3

            resetai

            Set DoOnce to 0

        endif

        

    endif





END



But it does not.


Could ( GetAV Variable01 == 1 ) and ( GetAV Variable01 == 2 ) maybe be the problems? And where do these values come from to begin with?



Post Reply