Scripts

CharGenDoorGuardTalker

Morrowind.esm
Variables 2
Local Variables
done
timer
Source
1begin CharGenDoorGuardTalker 2 3;this guy needs to talk to you about the door and unlock it if you have the papers 4 5short done 6float timer 7 8if ( menumode == 1) 9 return 10endif 11 12 13if ( done == 0 ) 14 15 if ( GetDistance, Player < 180 ) 16 17 if ( player->GetItemCount, "CharGen StatsSheet" >= 1 ) 18 19 if ( SayDone == 1) 20 say, "vo\Misc\CharGen Door2.wav", "Continue through to the next building, and talk to Sellus Gravius." 21 "CharGen Door Hall"->Unlock 22 "CharGen Door Hall"->PlaySound3D, "Open Lock" 23 enableplayerfighting 24 enableplayermagic 25 set done to 1 26 endif 27 28 else ;does not have papers 29 30 set timer to timer + GetSecondsPassed 31 32 if ( timer > 3 ) 33 set timer to 0 34 endif 35 36 if ( SayDone == 1) 37 if ( timer == 0 ) ;using a timer so he doesn't talk ALL the time 38 say, "vo\Misc\CharGen Door1.wav", "You'll go no further until you have your papers." 39 endif 40 endif 41 42 endif 43 44 endif 45 46endif 47 48end CharGenDoorGuardTalker