#NEWLINE# def get_npc_by_kw( self , keyword ) : #NEWLINE# #INDENT# 'Get an NPC from this room if its name is equal to the keyword given.' #NEWLINE# keyword = keyword . strip ( ) . lower ( ) #NEWLINE# for npc in self . npcs : #NEWLINE# #INDENT# if ( keyword in npc . keywords ) : #NEWLINE# #INDENT# return npc #NEWLINE# #UNINDENT# #UNINDENT# return None