clic droit sur jiub, ouvre le script et met celui ci a la place de l´ancien:
begin CharGenNameNPC
; this is the prisoner who asks you you´re name
short state
float timer
short wandering
if ( menumode == 1)
return
endif
if ( OnActivate == 1 )
return
endif
; done, standing
if ( state == -1 )
if ( GetDistance, Player < 150 )
set timer to timer + GetSecondsPassed
if ( timer > 14 )
set timer to 0
say, " vo\Misc\CharGenName4.wav", " Vous avez intérêt à faire ce qu´il dit."
endif
endif
endif
if ( wandering == 0 )
if ( GetDistance, Player > 500 )
if ( state == -1 )
;AIWander 32 0 0 75 20 20
set wandering to 1
endif
endif
endif
if ( state == 0 )
set timer to ( timer + Getsecondspassed )
if ( timer > = 1 ) ;fader delay
;he asks if you are ok
Say, " Vo\Misc\CharGenName1.wav", " Réveillez-vous. Ah, bien ! Vous étiez en train de rêver. Quel est votre nom ? "
set State to 10
set timer to 0
endif
;show name menu when done talking
elseif ( State == 10 )
if ( SayDone == 1 )
EnableNameMenu
set State to 20
endif
;name is entered, guy says we´re there
elseif ( State == 20 )
set timer to ( timer + Getsecondspassed )
if ( timer > = 1 ) ;delay
;he asks if you are ok
Say, " vo\Misc\CharGenName2.wav", " Même la tempête de la nuit dernière n´a pas réussi à vous réveiller. J´ai entendu dire que nous étions arrivés en Morrowind. Je suis sûr qu´ils vont nous libérer."
set State to 40
set timer to 0
endif
;says the guard is coming when he gets close
elseif ( State == 40 )
if ( SayDone == 1 )
if ( GetDistance, " CharGen Boat Guard 2" < = 400 )
;PlayGroup idle3 1
Say, " vo\Misc\CharGenName3.wav", " Silence, voilà le garde."
set State to -1
set timer to 5 ;force him to say next line a little earlier
endif
endif
endif
end CharGenNameNPC
set State to -1
set timer to 5 ;force him to say next line a little earlier
endif
endif
endif
end CharGenNameNPC