Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3699098B2 - GAME PROGRAM AND GAME DEVICE - Google Patents
[go: Go Back, main page]

JP3699098B2 - GAME PROGRAM AND GAME DEVICE - Google Patents

GAME PROGRAM AND GAME DEVICE Download PDF

Info

Publication number
JP3699098B2
JP3699098B2 JP2003313173A JP2003313173A JP3699098B2 JP 3699098 B2 JP3699098 B2 JP 3699098B2 JP 2003313173 A JP2003313173 A JP 2003313173A JP 2003313173 A JP2003313173 A JP 2003313173A JP 3699098 B2 JP3699098 B2 JP 3699098B2
Authority
JP
Japan
Prior art keywords
word
data
keyword group
group
sentence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003313173A
Other languages
Japanese (ja)
Other versions
JP2005080711A (en
Inventor
勉 渡邉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konami Group Corp
Original Assignee
Konami Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konami Corp filed Critical Konami Corp
Priority to JP2003313173A priority Critical patent/JP3699098B2/en
Publication of JP2005080711A publication Critical patent/JP2005080711A/en
Application granted granted Critical
Publication of JP3699098B2 publication Critical patent/JP3699098B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Description

本発明は、プレーヤが操作自在なキャラクタとコンピュータ側で自動操作するキャラクタとの間で、文章の遣り取りをすることの出来るゲームプログラム及びゲーム装置に係り、詳しくは、膨大なデータ容量を必要とすることなくかつ簡単な処理で、プレーヤが自由な言い回しで表現した文章を遣り取りすることの出来る、ゲームプログラム及びゲーム装置に関する。
The present invention relates to a game program and a game apparatus capable of exchanging sentences between a character that can be operated by a player and a character that is automatically operated on the computer side, and in particular, requires a huge amount of data. The present invention relates to a game program and a game device that allow a player to exchange sentences expressed in free words without any simple processing.

本明細書において、「ゲームソフトウェア」とは、プログラムそれ自体及び必要に応じて該プログラムに付随して関連づけられた各種のデータを含む概念である。しかし、「ゲームソフトウェア」は必ずしもデータと関連づけられている必要はないが、プログラムは必ず有している。また、この「関連づけられた各種のデータ」は、プログラムと共にROMディスクなどのメモリ手段に格納されていてもよく、更には、外部のメモリ手段にインターネットなどの通信媒介手段を介して読み出し自在に格納されていてもよい。     In this specification, the “game software” is a concept including the program itself and various data associated with the program as necessary. However, the “game software” does not necessarily have to be associated with the data, but the program always has it. In addition, the “various associated data” may be stored in a memory means such as a ROM disk together with a program, and further stored in an external memory means so as to be readable via a communication mediating means such as the Internet. May be.

一般的に、この種のゲームソフトウェアにおいて、プレーヤは、当該プレーヤが操作自在なキャラクタ(以下「操作キャラクタ」という。)を通じて、コンピュータ側で自動操作されるキャラクタ(以下「コンピュータキャラクタ」という。)と、ゲーム世界内で文章を遣り取りすることが出来るようになっている。このような文章の遣り取りとして、日常生活で一般的に行なわれる遣り取りの手段、例えば手紙や電子メールが表現されたものが多い。このように、日常生活に行なわれる遣り取りの手段が、ゲーム世界内でリアルに再現されるので、コンピュータキャラクタに対するプレーヤの感情移入の度合いを増大させることが出来、ゲームの興趣を高めることが出来る。     Generally, in this type of game software, a player is a character (hereinafter referred to as “computer character”) that is automatically operated on the computer side through a character (hereinafter referred to as “operation character”) that can be operated by the player. , You can exchange sentences in the game world. As exchanges of such sentences, there are many exchanges that are generally performed in daily life, such as letters and e-mails. As described above, since the means of exchange performed in daily life is realistically reproduced in the game world, the degree of emotion transfer of the player to the computer character can be increased, and the interest of the game can be enhanced.

従来、関連する技術としては、特許文献1に開示されたものが知られている。Conventionally, as a related technique, what was disclosed by patent document 1 is known.
特開2001−314653号公報JP 2001-314653 A

しかし、コンピュータキャラクタから操作キャラクタに返答する文章(以下「返答文章」という。)は、一般的に、特定の文章や特定の単語と1対1対応のデータとして、上述したゲームソフトウェア内に格納されている。そのため、プレーヤが実際に入力した文章が、上記特定の文章や特定の単語と比較して、僅かな言い回しでも異なってしまうと、コンピュータは、その入力された文章を受け付けないため、返答文章が出力されない。その結果、プレーヤは、入力する文章が、特定の文章と一致するまで又は特定の単語を含むまで、その文章を修正しなければならず、プレーヤに過大な入力操作の負担を与えてしまい、ゲームの興趣を損なう不都合があった。     However, a sentence that is returned from the computer character to the operation character (hereinafter referred to as “response sentence”) is generally stored in the above-described game software as data corresponding to a specific sentence or a specific word. ing. Therefore, if the sentence actually entered by the player is different from the above-mentioned specific sentence or specific word even with a slight wording, the computer will not accept the input sentence, so a reply sentence will be output. Not. As a result, the player must correct the sentence until the sentence to be input matches the specific sentence or includes a specific word, which gives the player an excessive input operation burden, There was an inconvenience that spoiled the interest of

このような入力操作の負担を軽減するために、プレーヤが入力するであろう文章として、予め、多様な表現の文章を多数準備しておく方策もあるが、上述したように、返答文章とプレーヤが入力するであろう文章とは、1対1対応のデータとしてゲームソフトウェア内に格納されるため、膨大な文章をデータとして格納しておく必要が生じ、データ容量が膨大となる不都合があった。     In order to reduce the burden of such an input operation, there is a method in which a large number of sentences with various expressions are prepared in advance as sentences that the player will input. Will be input as one-to-one data in the game software, so it would be necessary to store a huge amount of text as data, resulting in a huge data capacity. .

また、返答文章とプレーヤが入力するであろう文章とを、1対1対応のデータとして格納することなく、プレーヤが実際に入力した文章を、文法や文脈などから文章解析を行ない、その解析結果に応じて適切な返答文章を出力する方策もあるが、このような文章解析処理は処理が複雑であるため、ゲーム処理全体を円滑に行うには実用的でなく、特に、携帯型ゲーム機のように、CPUの処理能力が十分でない場合、そのような文章解析処理を実行するのは困難であった。     Also, without storing the response text and the text that the player will input as one-to-one correspondence data, the text actually input by the player is analyzed from the grammar and context, and the analysis result Depending on the situation, there is a way to output an appropriate response text, but such text analysis processing is complicated, so it is not practical for smooth game processing. As described above, when the processing capability of the CPU is not sufficient, it is difficult to execute such sentence analysis processing.

そこで、膨大なデータ容量を必要とすることなくかつ簡単な処理で、プレーヤが自由な言い回しで表現した文章を、コンピュータキャラクタと遣り取りすることの出来る、ゲームプログラム及びゲーム装置を提供することを目的とする。
Accordingly, an object of the present invention is to provide a game program and a game apparatus that allow a player to exchange a sentence expressed by a free wording with a computer character without requiring an enormous amount of data and with a simple process. To do.

請求項1の発明は、入力手段(4)を介して入力された文章データ(例えばITD1)が示す入力文章(IS1)に対応した返答文章(RS1)を、表現手段(3)上に表現して、プレーヤが操作自在なキャラクタとコンピュータ(1)側で自動操作するキャラクタとの間で、文章の遣り取りをするゲームを、前記コンピュータ(1)に実行させることの出来る、ゲームプログラム(GSW)において、
前記ゲームプログラム(GSW)は、前記コンピュータに、
単語の意味を類型化する形で複数の単語データ(wd11、wd12、…)をグループ化した単語グループ(WG1、WG2、…)を、複数格納した、単語グループデータファイル(WGL)を前記コンピュータの主記憶装置に格納する手順、
前記返答文章(RS1、RS2、…)を示す、所定のテキストデータから構成される返答文章データ(RTD1、RTD2、…)を、当該返答文章に対応した複数の前記単語グループ(WG1、WG2、…)からなるキーワードグループ(KG1、KG2、…)に対応させて格納した、返答文章データファイル(RTL1)を前記コンピュータの主記憶装置に格納する手順
前記キーワードグループは、当該キーワードグループに対応した返答文章を手紙の返答として会話を成立させることの出来る入力文章のキーワードを示す単語グループから構成されており、
前記入力手段(4)を介して入力された文章データ(例えばITD1)から複数の前記単語データ(wd14、wd22、wd32)を抽出する、単語データ抽出手順(ISP)、
前記単語グループデータファイル(WGL)を参照して、前記単語データ抽出手順(ISP)により抽出された複数の単語データ(wd14、wd22、wd32)が、それぞれいずれの前記単語グループ(WG1、WG2、…)に属するかを判定し、それらの単語データ(wd14、wd22、wd32)がそれぞれ属すると判定された前記単語グループ(WG1、WG2、WG3)をまとめて、仮キーワードグループ(PKG1)として設定する、仮キーワードグループ設定手順(ISP)、
前記返答文章データファイル(RTL1)を参照して、前記仮キーワードグループ設定手順(ISP)により設定された仮キーワードグループ(PKG1)に対応したキーワードグループ(KG1、KG2、…)を検索し、抽出する、キーワードグループ検索抽出手順(RSP)、
前記キーワードグループ検索抽出手順(RSP)により抽出されたキーワードグループ(KG1)に対応する、所定のテキストデータから構成される返答文章データ(RTD1)を、前記返答文章データファイル(RTL1)から読み出し、該読み出した返答文章データ(RTD1)が示す返答文章(RS1)を、前記表現手段(3)上に表現する、返答文章データ読み出し表現手順(RSP、ANP)、
を実行させることを特徴として構成される。
The invention of claim 1 expresses a response sentence (RS1) corresponding to an input sentence (IS1) indicated by sentence data (for example, ITD1) input via the input means (4) on the expression means (3). In the game program (GSW), which allows the computer (1) to execute a game for exchanging sentences between a character that can be operated by the player and a character that is automatically operated on the computer (1) side. ,
The game program (GSW) is stored in the computer.
A word group data file (WGL) storing a plurality of word groups (WG1, WG2,...) Obtained by grouping a plurality of word data (wd11, wd12,...) In a form that classifies the meaning of the word is stored in the computer. The procedure for storing in the main memory,
The response text data (RTD1, RTD2,...), Which is composed of predetermined text data , indicating the response text (RS1, RS2,...) Is converted into a plurality of the word groups (WG1, WG2,...) Corresponding to the response text. ) For storing the response text data file (RTL1) stored in correspondence with the keyword group (KG1, KG2,...) Formed in the main storage device of the computer ,
The keyword group is composed of a word group indicating a keyword of an input sentence that can establish a conversation with a response sentence corresponding to the keyword group as a reply of a letter,
A word data extraction procedure (ISP) for extracting a plurality of the word data (wd14, wd22, wd32) from sentence data (for example, ITD1) input via the input means (4);
Referring to the word group data file (WGL), a plurality of word data (wd14, wd22, wd32) extracted by the word data extraction procedure (ISP) are respectively connected to the word groups (WG1, WG2,...). ) And the word groups (WG1, WG2, WG3) determined to belong to the word data (wd14, wd22, wd32) are collectively set as a temporary keyword group (PKG1). Temporary keyword group setting procedure (ISP),
With reference to the response text data file (RTL1), keyword groups (KG1, KG2,...) Corresponding to the temporary keyword group (PKG1) set by the temporary keyword group setting procedure (ISP) are searched and extracted. , Keyword group search extraction procedure (RSP),
Response text data (RTD1) composed of predetermined text data corresponding to the keyword group (KG1) extracted by the keyword group search extraction procedure (RSP) is read from the response text data file (RTL1), A response text data read expression procedure (RSP, ANP) for expressing the response text (RS1) indicated by the read response text data (RTD1) on the expression means (3),
Is configured to execute.

請求項2の発明は、前記キーワードグループ検索抽出手順(RSP)は、前記仮キーワードグループ(PKG)を構成する単語グループ(WG1、WG2、…)の全てを、その単語グループの一部に有するキーワードグループ(KG)を検索し、抽出する、
ことを特徴として構成される。
According to a second aspect of the present invention, in the keyword group search and extraction procedure (RSP), all of the word groups (WG1, WG2,...) Constituting the temporary keyword group (PKG) are part of the word group. Search and extract group (KG),
It is configured as a feature.

請求項3の発明は、前記キーワードグループ検索抽出手順(RSP)は、前記仮キーワードグループ(例えばPKG10及びPKG20)を構成する単語グループ(WG1、WG4、WG3及びWG5、WG8)の全てと一致した単語グループのみからなるキーワードグループ(KG30)を検索し、抽出する、
ことを特徴として構成される。
In the invention of claim 3, the keyword group search and extraction procedure (RSP) matches all of the word groups (WG1, WG4, WG3 and WG5, WG8) constituting the temporary keyword group (for example, PKG10 and PKG20). Search and extract keyword group (KG30) consisting only of groups,
It is configured as a feature.

請求項の発明は、入力手段(4)を介して入力された文章データ(例えばITD1)が示す入力文章(IS1)に対応した返答文章を(RS1)、表現手段(3)上に表現して、プレーヤが操作自在なキャラクタとコンピュータ(1)側で自動操作するキャラクタとの間で、文章の遣り取りをするゲームを、前記コンピュータ(1)に実行させることの出来る、ゲーム装置(1)において、
前記ゲーム装置(1)は、
単語の意味を類型化する形で複数の単語データ(wd11、wd12、…)をグループ化した単語グループ(WG1、WG2、…)を、複数格納した、単語グループデータファイル(13、WGL)と、
前記返答文章(RS1、RS2、…)を示す、所定のテキストデータから構成される返答文章データ(RTD1、RTD2、…)を、当該返答文章に対応した複数の前記単語グループ(WG1、WG2、…)からなるキーワードグループ(KG1、KG2、…)に対応させて格納した、返答文章データファイル(13、RTL1)と、
前記キーワードグループは、当該キーワードグループに対応した返答文章を手紙の返答として会話を成立させることの出来る入力文章のキーワードを示す単語グループから構成されており、
前記入力手段(4)を介して入力された文章データ(例えばITD1)から複数の前記単語データ(wd14、wd22、wd32)を抽出する、単語データ抽出手段(11、ISP)と、
前記単語グループデータファイル(13、WGL)を参照して、前記単語データ抽出手段(11、ISP)により抽出された複数の単語データ(wd14、wd22、wd32)が、それぞれいずれの前記単語グループ(WG1、WG2、…)に属するかを判定し、それらの単語データ(wd14、wd22、wd32)がそれぞれ属すると判定された前記単語グループ(WG1、WG2、WG3)をまとめて、仮キーワードグループ(PKG1)として設定する、仮キーワードグループ設定手段(11、ISP)と、
前記返答文章データファイル(11、RTL1)を参照して、前記仮キーワードグループ設定手段(11、ISP)により設定された仮キーワードグループ(PKG1)に対応したキーワードグループ(KG1、KG2、…)を検索し、抽出する、キーワードグループ検索抽出手段(11、RSP)と、
前記キーワードグループ検索抽出手段(11、RSP)により抽出されたキーワードグループ(KG1)に対応する、所定のテキストデータから構成される返答文章データ(RTD1)を、前記返答文章データファイル(13、RTL1)から読み出し、該読み出した返答文章データ(RTD1)が示す返答文章(RS1)を、前記表現手段(3)上に表現する、返答文章データ読み出し表現手段(11、RSP、ANP)と、
を有することを特徴として構成される。
The invention of claim 4 expresses a response sentence corresponding to the input sentence (IS1) indicated by the sentence data (for example, ITD1) input via the input means (4) on the expression means (3) (RS1). In the game apparatus (1), the computer (1) can execute a game in which a sentence is exchanged between a character that can be operated by the player and a character that is automatically operated on the computer (1) side. ,
The game device (1)
A word group data file (13, WGL) storing a plurality of word groups (WG1, WG2,...) Obtained by grouping a plurality of word data (wd11, wd12,...) In a form that classifies the meaning of the word;
The response text data (RTD1, RTD2,...), Which is composed of predetermined text data , indicating the response text (RS1, RS2,...) Is converted into a plurality of the word groups (WG1, WG2,...) Corresponding to the response text. ) And a response text data file (13, RTL1) stored corresponding to a keyword group (KG1, KG2,...) Consisting of
The keyword group is composed of a word group indicating a keyword of an input sentence that can establish a conversation with a response sentence corresponding to the keyword group as a reply of a letter,
Word data extraction means (11, ISP) for extracting a plurality of the word data (wd14, wd22, wd32) from sentence data (for example, ITD1) input via the input means (4);
With reference to the word group data file (13, WGL), a plurality of word data (wd14, wd22, wd32) extracted by the word data extraction means (11, ISP) , WG2,...), And the word groups (WG1, WG2, WG3) that are determined to belong to the word data (wd14, wd22, wd32) are grouped into a temporary keyword group (PKG1). Provisional keyword group setting means (11, ISP),
Referring to the response text data file (11, RTL1), search for keyword groups (KG1, KG2,...) Corresponding to the temporary keyword group (PKG1) set by the temporary keyword group setting means (11, ISP). And a keyword group search extraction means (11, RSP) for extracting,
Response text data (RTD1) composed of predetermined text data corresponding to the keyword group (KG1) extracted by the keyword group search extraction means (11, RSP) is converted into the response text data file (13, RTL1). Response text data read expression means (11, RSP, ANP) for expressing the response text (RS1) indicated by the read response text data (RTD1) on the expression means (3),
It is characterized by having.

請求項1又はの発明によれば、返答文章データ(RTD1、RTD2、…)は、複数の単語グループ(WG1、WG2、WG3、…)に対応して、返答文章データファイル(RTL1)に格納されており、入力手段(4)から文章データ(ITD1)が入力されると、ゲームプログラム(GSW)は、入力された文章データ(ITD1)を、複数の単語グループ(WG1、WG2、WG3)として受け付け、これに対応する返答文章データ(RTD1)を、返答文章データファイル(RTL1)から読み出して、表現手段(3)上に表現するので、入力文章と返答文章とを1対1対応のデータとして準備することなく、かつ、文法や文脈などによる文章解析を行うことなく、入力文章に対応した返答文章を表現手段上に表現することが出来る。これにより、少ないデータ容量でかつ簡単な処理でありながら、プレーヤは、入力文章を自由な言い回しで表現して、キャラクタ間の文書の遣り取りをすることが出来、プレーヤに入力操作の負担を与えることなく、ゲームの興趣を損なうことを防止することが出来る。また、返答文章が、テキストデータで構成された返答文章データ(RTD1)として、画像表示手段(3)上に表示されるので、プレーヤは、表示された返答文書を視認することが出来、キャラクタ間の文書の遣り取りが、あたかも手紙や電子メールとして表現されて、ゲームの興趣を高めることが出来る。
According to the invention of claim 1 or 4 , the response text data (RTD1, RTD2,...) Is stored in the response text data file (RTL1) corresponding to a plurality of word groups (WG1, WG2, WG3,...). When the sentence data (ITD1) is input from the input means (4), the game program (GSW) uses the input sentence data (ITD1) as a plurality of word groups (WG1, WG2, WG3). The response text data (RTD1) corresponding to the received text is read from the response text data file (RTL1) and expressed on the expression means (3), so that the input text and the response text are one-to-one correspondence data. The response text corresponding to the input text can be expressed on the expression means without preparation and without analyzing the text by grammar or context. . As a result, the player can express the input text in a free wording and exchange documents between characters with a small data capacity and simple processing, giving the player a burden of input operation. It is possible to prevent the game from being lost. Further, since the response text is displayed on the image display means (3) as response text data (RTD1) composed of text data, the player can visually recognize the displayed response document, and between characters. The exchange of documents can be expressed as letters and e-mails, which can enhance the fun of the game.

請求項2の発明によれば、キーワードグループ検索抽出手順(RSP)は、仮キーワードグループ(PKG)を構成する単語グループ(WG1、WG2、WG3、…)の全てを、その単語グループの一部に有するキーワードグループ(KG1、KG2、…)を検索し、抽出するので、入力文章に対応するキーワードグループを広い範囲から検索し、抽出することが出来、キャラクタ間の文書の遣り取りを円滑に行うことが出来る。     According to the second aspect of the present invention, the keyword group search extraction procedure (RSP) includes all the word groups (WG1, WG2, WG3,...) Constituting the temporary keyword group (PKG) as a part of the word group. Since the keyword groups (KG1, KG2,...) That the user has are searched and extracted, the keyword groups corresponding to the input sentence can be searched and extracted from a wide range, and the documents can be exchanged smoothly between characters. I can do it.

請求項3の発明によれば、キーワードグループ検索抽出手順(RSP)は、仮キーワードグループ(例えばPKG10及びPKG20)を構成する単語グループ(WG1、WG4、WG3及びWG5、WG8)の全てと一致した単語グループのみからなるキーワードグループ(KG30)を検索し、抽出するので、入力文章に対して適切な返答文章を表現手段上に表現することが出来、キャラクタ間の文書の遣り取りを違和感のない形で行うことが出来る。     According to the invention of claim 3, the keyword group search and extraction procedure (RSP) matches the words of all the word groups (WG1, WG4, WG3 and WG5, WG8) constituting the temporary keyword group (for example, PKG10 and PKG20). Since a keyword group (KG30) consisting only of groups is searched and extracted, an appropriate response sentence can be expressed on the expression means with respect to the input sentence, and the exchange of documents between characters is performed without any sense of incongruity. I can do it.

なお、括弧内の番号などは、本発明の理解を助けるために、図面における対応する要素を便宜的に示すものである。従って、本記述は図面上の記載に限定拘束されるものではなく、また、この符号の記載により本発明を解釈すべきでない。     The numbers in parentheses indicate the corresponding elements in the drawings for the sake of convenience in order to help understanding of the present invention. Therefore, the present description is not limited to the description on the drawings, and the present invention should not be construed by the description of the reference numerals.

図1は、本発明が適用される携帯型ゲーム機の一例を示す外観図、図2は、図1に示すゲーム機の制御ブロックの一例を示す図、図3は、ゲームソフトウェアの構成の一例を示す図、図4は、キャラクタ間で遣り取りされる手紙の内容の一例を示す図で、(a)はプレーヤが作成した入力文章、(b)はコンピュータキャラクタからの返答文章、図5は、単語グループリストの内容の一例を示す図、図6は、返答文章テキストデータリストの内容の一例を示す図、図7は、複数のキーワードグループを論理演算子で組み合わせた場合の、手紙の内容の一例を示す図で、(a)はプレーヤが作成した入力文章、(b)はコンピュータキャラクタからの返答文章、図8は、複数のキーワードグループを論理演算子で組み合わせた場合の、返答文章テキストデータリストの内容の一例を示す図である。     1 is an external view showing an example of a portable game machine to which the present invention is applied, FIG. 2 is a view showing an example of a control block of the game machine shown in FIG. 1, and FIG. 3 is an example of a configuration of game software FIG. 4 is a diagram showing an example of the contents of letters exchanged between characters, (a) is an input sentence created by the player, (b) is a reply sentence from a computer character, and FIG. FIG. 6 is a diagram showing an example of the contents of the word group list, FIG. 6 is a diagram showing an example of the contents of the response text data list, and FIG. FIGS. 8A and 8B are diagrams illustrating an example, where FIG. 8A is an input sentence created by a player, FIG. 8B is a reply sentence from a computer character, and FIG. 8 is a reply sentence when a plurality of keyword groups are combined with logical operators Text is a diagram showing an example of the contents of the data list.

ゲーム機1は、図1に示すように、本体2と、その本体2に取り付けられた表示装置としての反射形液晶ディスプレイ3と、入力装置4とを有している。入力装置4は、本体2の図中下部の操作部2aに設けられた、方向キー5と、複数の押釦スイッチ6a(A)、6b(B)とを備えている。方向キー5は、例えば十字型の操作部材5aを有し、その操作部材5aの上下左右方向の操作(上下左右の端部の押し込み操作)に対応した信号を出力する。     As shown in FIG. 1, the game machine 1 includes a main body 2, a reflective liquid crystal display 3 as a display device attached to the main body 2, and an input device 4. The input device 4 includes a direction key 5 and a plurality of push button switches 6a (A) and 6b (B) provided in an operation unit 2a at the lower part of the main body 2 in the figure. The direction key 5 has, for example, a cross-shaped operation member 5a, and outputs a signal corresponding to the operation of the operation member 5a in the up / down / left / right direction (the push-in operation of the up / down / left / right ends).

なお、入力装置4の方向キー5、押釦スイッチ6a、6bなどの各種操作部材が設けられた操作部2aは、必ずしもディスプレイ3と一体に備えられてなくてもよく、例えば、ディスプレイ3が操作部2aと別体となった構成であってもよい。このような入力装置4の構成は公知であり、種々変形が可能である。例えば操作部材5aに代え、上下左右にそれぞれ一つずつ押釦スイッチが配置されてもよい。また、押釦スイッチ6a、6bの個数及び配置は、種々変更してもよい。この他に、ゲーム機1には電源スイッチ、音量調整用の操作部材等が設けられるが、それらは省略した。     The operation unit 2a provided with various operation members such as the direction key 5 and the push button switches 6a and 6b of the input device 4 does not necessarily have to be provided integrally with the display 3. For example, the display 3 is provided with the operation unit. The structure which became a separate body from 2a may be sufficient. Such a configuration of the input device 4 is known and can be variously modified. For example, instead of the operation member 5a, one push button switch may be arranged on each of the upper, lower, left and right sides. Further, the number and arrangement of the push button switches 6a and 6b may be variously changed. In addition to this, the game machine 1 is provided with a power switch, a volume adjusting operation member, and the like, which are omitted.

次いで、ゲーム機1には、図2に示すように、制御装置10(破線枠内)が設けられており、制御装置10は、マイクロプロセッサを利用したCPU(セントラルプロセッシングユニット)11を主体とするコンピュータとして構成されている。CPU11には、主記憶装置としてのROM(リードオンリーメモリ)12及びRAM(ランダムアクセスメモリ)13と、画像処理回路14と、サウンド処理回路15とが、バス16を介してそれぞれ接続される。     Next, as shown in FIG. 2, the game machine 1 is provided with a control device 10 (within a broken line frame), and the control device 10 mainly includes a CPU (Central Processing Unit) 11 using a microprocessor. It is configured as a computer. The CPU 11 is connected to a ROM (Read Only Memory) 12 and a RAM (Random Access Memory) 13, an image processing circuit 14, and a sound processing circuit 15 as main storage devices via a bus 16.

ROM12には、ゲーム機1の基本的な制御(例えば起動処理)に必要なプログラムが格納される。RAM13には、CPU11に対する作業領域が確保される。画像処理回路14は、CPU11からの描画指示に応じてディスプレイ3を制御して、その画面上に所定の画像を表示させる。サウンド処理回路15は、CPU11からの発音指示に応じたアナログ音声信号を生成してスピーカ7に出力する。     The ROM 12 stores a program necessary for basic control (for example, activation processing) of the game machine 1. A working area for the CPU 11 is secured in the RAM 13. The image processing circuit 14 controls the display 3 in accordance with a drawing instruction from the CPU 11 to display a predetermined image on the screen. The sound processing circuit 15 generates an analog audio signal corresponding to a sound generation instruction from the CPU 11 and outputs it to the speaker 7.

CPU11には、バス16を介して、入力装置4の方向キー5及び押釦スイッチ6a、6bが接続され、それによりCPU11は、方向キー5及び押釦スイッチ6a、6bの操作状態を判別可能である。また、バス16には、制御装置10とは別体の外部記憶装置17が接続される。     The CPU 11 is connected to the direction key 5 and the push button switches 6a and 6b of the input device 4 via the bus 16, so that the CPU 11 can determine the operation state of the direction key 5 and the push button switches 6a and 6b. An external storage device 17 that is separate from the control device 10 is connected to the bus 16.

外部記憶装置17は、例えば本体2に対して着脱自在なカートリッジ型に構成されており、その内部には記憶媒体としてROM(リードオンリーメモリ)18、及び書き換え可能なユーザ用メモリとしてのRAM(ランダムアクセスメモリ)19が設けられる。ROM18には、ゲーム機1をコンピュータとして機能させるためのゲームソフトウェアGSWが予め記録されている。RAM19は、フラッシュメモリのような書き換え可能なROMが使用され、そこには例えばゲームのセーブデータ等が必要に応じて格納される。     The external storage device 17 is configured, for example, in a cartridge type that is detachable from the main body 2, and includes a ROM (read only memory) 18 as a storage medium and a RAM (random) as a rewritable user memory. (Access memory) 19 is provided. In the ROM 18, game software GSW for causing the game machine 1 to function as a computer is recorded in advance. As the RAM 19, a rewritable ROM such as a flash memory is used, and for example, game save data is stored in the RAM 19 as necessary.

なお、外部記憶装置17の記憶媒体は、半導体記憶素子に限らず、磁気記憶媒体、光学式記憶媒体、光磁気記憶媒体等の各種の記憶媒体を使用してよい。また、このような記憶媒体を用いることなく、インターネットなどの通信媒介手段を介してゲームソフトウェアGSWを供給することも可能である。あるいは、ピアツーピアで接続された他のゲーム機からゲームソフトウェアGSWを読込んで起動するものであってもよい。なお、バス16と各要素との間には必要に応じてインターフェース回路が介在されるが、それらの図示は省略した。制御装置10の構成は上記に限定されず、種々の制御装置を使用してよい。     The storage medium of the external storage device 17 is not limited to a semiconductor storage element, and various storage media such as a magnetic storage medium, an optical storage medium, and a magneto-optical storage medium may be used. It is also possible to supply the game software GSW via communication mediating means such as the Internet without using such a storage medium. Alternatively, the game software GSW may be read and activated from another game machine connected by peer-to-peer. Note that an interface circuit is interposed between the bus 16 and each element as necessary, but illustration of them is omitted. The configuration of the control device 10 is not limited to the above, and various control devices may be used.

ゲーム機1を所定の通信回線や他のゲーム機等に接続するため、CPU11には、バス16を介して通信制御回路20が接続される。通信制御回路20には、通信I/F(通信インターフェース)21を介して通信コネクタ22が接続される。通信制御回路20としては、例えばDSP(デジタルシグナルプロセッサ)とソフトウェアとの組み合わせにより、モデムやネットワークインターフェースとして機能するものが利用できる。通信I/F21や通信コネクタ22を、ゲーム機1に対して外部接続される周辺機器として設けてもよい。     In order to connect the game machine 1 to a predetermined communication line, another game machine or the like, a communication control circuit 20 is connected to the CPU 11 via the bus 16. A communication connector 22 is connected to the communication control circuit 20 via a communication I / F (communication interface) 21. As the communication control circuit 20, for example, a circuit that functions as a modem or a network interface by using a combination of a DSP (digital signal processor) and software can be used. The communication I / F 21 and the communication connector 22 may be provided as peripheral devices externally connected to the game machine 1.

次いで、ゲームソフトウェアGSWは、図3に示すように、ロールプレイングゲームやアドベンチャーゲームなどの所定のシナリオに従ってゲームを進行させる、複数のプログラムがモジュール化された階層構造として構成されている。     Next, as shown in FIG. 3, the game software GSW is configured as a hierarchical structure in which a plurality of programs that make a game progress according to a predetermined scenario such as a role playing game or an adventure game are modularized.

図3中左方に示す下位の階層には、入力処理プログラムIPP、画像処理プログラムANP、サウンド処理プログラムSDPなどの、ユーザインターフェースを処理するプログラムが記録されている。図中略中央に示す上位の階層には、シナリオ処理プログラムSPPなどが記録されている。図中右方に示す更に上位の階層には、本発明に係る、入力文章処理プログラムISP、返答文章処理プログラムRSPなどの、ゲーム進行に必要な各種タスクを実行制御するプログラムが記録されている。また、同図中右方に示す上位の階層におけるデータ領域には、単語グループリストWGL、返答文章テキストデータリストRTL1、RTL10などが記録されている。     In the lower hierarchy shown on the left side in FIG. 3, programs for processing a user interface such as an input processing program IPP, an image processing program ANP, and a sound processing program SDP are recorded. A scenario processing program SPP and the like are recorded in the upper hierarchy shown in the approximate center in the figure. In the upper hierarchy shown on the right side of the figure, programs for executing and controlling various tasks necessary for the progress of the game, such as an input sentence processing program ISP and a response sentence processing program RSP, according to the present invention are recorded. Further, in the data area in the upper hierarchy shown on the right side of the figure, a word group list WGL, response sentence text data lists RTL1, RTL10, and the like are recorded.

なお、ゲームソフトウェアGSWのデータ領域に格納された各種のデータは、ゲームソフトウェアGSWが読み出し自在に有している限り、その格納態様は任意であり、本実施形態のように、ゲームソフトウェアGSWをプログラムと共に、外部記憶装置17のROM18やRAM19(又はROMディスク)中に格納するほかに、外部のメモリ手段に格納しておき、ゲームソフトウェアGSW中に設けられた読み出しプログラムによって、インターネットなどの通信媒介手段を介して、RAM13などのメモリにダウンロードするように構成してもよい。     The various data stored in the data area of the game software GSW can be stored in any manner as long as the game software GSW has readability, and the game software GSW is programmed as in this embodiment. At the same time, in addition to being stored in the ROM 18 or RAM 19 (or ROM disk) of the external storage device 17, it is stored in an external memory means, and a communication mediating means such as the Internet is read by a read program provided in the game software GSW. It may be configured to download to a memory such as the RAM 13 via the.

また、ゲームソフトウェアGSWの各プログラムISP、RSP、… に基づいて生成された複数のタスクは、不図示のマルチタスクオペレーションシステム(マルチタスクOS)によりマルチタスクとしてその優先順位に応じて順次実行される。なお、上述した階層構造は、本発明を説明する上で必要なプログラムのみを、簡単な階層構造として示したものであり、実際の階層構造は更に複雑で、並列処理プログラムなどの種々のプログラムを含むものである。また、各プログラム間には、指令やデータの受け渡しを示す矢印を示しているが、該矢印は発明を理解し易くするためのものであり、これらの矢印によってプログラムの処理方法やデータの取り扱いが限定されるものでない。     In addition, a plurality of tasks generated based on the programs ISP, RSP,... Of the game software GSW are sequentially executed as multitasks according to their priorities as a multitask operation system (multitask OS) (not shown). . The above-described hierarchical structure shows only programs necessary for explaining the present invention as a simple hierarchical structure. The actual hierarchical structure is more complicated, and various programs such as a parallel processing program are stored. Is included. In addition, arrows indicating instructions and data exchanges are shown between the programs, but these arrows are for easy understanding of the invention, and these arrows indicate how the program is processed and how data is handled. It is not limited.

以上の構成におけるゲーム機1で、所定の初期化操作(例えば電源の投入操作)が行なわれると、CPU11は、ROM12のプログラムに従って所定の初期化処理を実行し、初期化処理が終わると、外部記憶装置17のROM18に記録された、図3に示すゲームソフトウェアGSWの各プログラム及び各データを読み込み、RAM13に格納する。こうして、RAM13に格納されたゲームソフトウェアGSWは、ゲームの実行に必要な種々の処理を開始する。     When a predetermined initialization operation (for example, a power-on operation) is performed on the game machine 1 having the above configuration, the CPU 11 executes a predetermined initialization process according to the program in the ROM 12, and when the initialization process ends, Each program and each data of the game software GSW shown in FIG. 3 recorded in the ROM 18 of the storage device 17 are read and stored in the RAM 13. Thus, the game software GSW stored in the RAM 13 starts various processes necessary for executing the game.

以後、ゲーム機1は、読み込んだゲームソフトウェアGSWに従って、所定の処理を行ない、ディスプレイ3上に表示される画像を表示制御して、所定のシナリオを進行制御して行く。     Thereafter, the game machine 1 performs a predetermined process in accordance with the read game software GSW, controls the display of an image displayed on the display 3, and controls the progress of a predetermined scenario.

ゲームの進行の途中では、図3に示すシナリオ処理プログラムSPPが示すシナリオ展開に応じて、プレーヤが、入力装置4を介して操作自在なキャラクタ(以下「操作キャラクタ」という。)を通じて、コンピュータ側で自動操作されるキャラクタ(以下「コンピュータキャラクタ」という。)と、文章の遣り取りが出来るように設定されている。     During the progress of the game, the player uses a character (hereinafter referred to as “operation character”) that can be operated by the player via the input device 4 in accordance with the scenario development indicated by the scenario processing program SPP shown in FIG. It is set so that characters that are automatically operated (hereinafter referred to as “computer characters”) can be exchanged.

このような文章の遣り取りとしては、ディスプレイ3上に所定の文字を表示して、手紙や電子メールなどを表現した文章の遣り取りの他、ゲーム機1本体にマイクロフォン(図示せず)を設けて、マイクロフォン及びスピーカ7を介した、音声による文章の遣り取りも可能である。なお、本実施形態におけるゲームソフトウェアGSWでは、手紙を表現した文章の遣り取りが出来るように設定されているものとする。     As such exchange of text, a predetermined character is displayed on the display 3 and a microphone (not shown) is provided on the main body of the game machine 1 in addition to exchange of text representing letters, e-mails, etc. It is also possible to exchange voice sentences via the microphone and the speaker 7. It is assumed that the game software GSW in the present embodiment is set so that a sentence representing a letter can be exchanged.

進行制御されるシナリオが、手紙の遣り取りが出来る場面に進み、プレーヤが、所定のコンピュータキャラクタに手紙を送るために、プレーヤからの手紙の内容を示す文章(以下「入力文章IS」という。)が作成自在な、入力文章作成画面の表示指令を、入力装置4を介して入力したとする。なお、上述したシナリオは、キャラクタの「好きな食べ物」を話題とする内容が進行制御されているものとし、従って、シナリオ展開は、操作キャラクタとコンピュータキャラクタとの間で「好きな食べ物」を話題とする形で、進行しているものとする。     The scenario in which the progress is controlled advances to a scene where a letter can be exchanged, and in order for the player to send a letter to a predetermined computer character, a sentence indicating the content of the letter from the player (hereinafter referred to as “input sentence IS”). Assume that an input command for displaying an input text creation screen that can be created is input via the input device 4. In the above scenario, it is assumed that the content of the topic of the character's “favorite food” is controlled, and therefore the scenario development is the topic of “favorite food” between the operation character and the computer character. It is assumed that it is progressing.

上記表示指令を受けて、図3に示す入力文章処理プログラムISPは、CPU11に対して、入力文章作成画面の表示を指令し、CPU11は、図4に示す画像処理プログラムANPに基づいて、画像処理回路14を介して、入力文章作成画面(図示せず)をディスプレイ3上に表示する。入力文章作成画面が表示されると、プレーヤは、入力文章作成画面の指示に従って、入力装置4の方向キー5及び押釦スイッチ6a、6bを押下して、入力文章IS1を構成するように、所定の文字を選択して行く。上述したように、シナリオ展開は、操作キャラクタとコンピュータキャラクタとの間で「好きな食べ物」を話題とする形で、進行しているので、ここでプレーヤが、例えば「おいらは鯵が好きだ。」の文章を入力文章IS1として、対応する文字を選択するものとする。     In response to the display instruction, the input sentence processing program ISP shown in FIG. 3 instructs the CPU 11 to display the input sentence creation screen. The CPU 11 performs image processing based on the image processing program ANP shown in FIG. An input text creation screen (not shown) is displayed on the display 3 via the circuit 14. When the input sentence creation screen is displayed, the player presses the direction key 5 and the push button switches 6a and 6b of the input device 4 in accordance with the instruction on the input sentence creation screen to configure the input sentence IS1 in a predetermined manner. Select a character and go. As described above, the scenario development is progressing between the operating character and the computer character in the form of “favorite food” as a topic, so that the player, for example, “I like candy”. ”As an input sentence IS1, and a corresponding character is selected.

CPU11は、図3に示す入力処理プログラムIPPに基づいて、選択された文字を、それぞれの文字に対応する所定信号としてRAM13に出力し、更に、入力文章処理プログラムISPに基づいて、RAM13に入力された所定信号を、選択された文字に対応した文字コードデータに変換する。     The CPU 11 outputs the selected character to the RAM 13 as a predetermined signal corresponding to each character based on the input processing program IPP shown in FIG. 3, and is further input to the RAM 13 based on the input sentence processing program ISP. The predetermined signal is converted into character code data corresponding to the selected character.

プレーヤは、入力文章IS1を構成する全ての文字を選択すると、入力装置4の押釦スイッチ6aを押下して、入力文章IS1の作成が終了した旨の信号を入力する。その信号を受けてCPU11は、入力文章IS1に対応する文字コードデータを、入力文章テキストデータITD1として、RAM13のデータ領域に格納する。     When the player selects all the characters constituting the input sentence IS1, the player presses the push button switch 6a of the input device 4 and inputs a signal indicating that the creation of the input sentence IS1 is completed. Upon receiving the signal, the CPU 11 stores the character code data corresponding to the input sentence IS1 in the data area of the RAM 13 as the input sentence text data ITD1.

なお、上述した文字コードデータは、文字(必ずしも1つの文字でなく文字の組み合わせでもよい)と1対1対応であればどのようなデータ形式であってもよい。例えばJISコード(日本工業規格コード)のように規格化された文字コードデータでもよく、あるいは、本ゲームソフトウェアGSWにおいて設定された固有の文字コードデータでもよい。     The character code data described above may have any data format as long as it has a one-to-one correspondence with characters (not necessarily one character but a combination of characters). For example, standardized character code data such as JIS code (Japanese Industrial Standard Code) may be used, or unique character code data set in the game software GSW may be used.

入力文章テキストデータITD1がRAM13に格納されると、入力文章処理プログラムISPは、CPU11に対して、入力文章テキストデータITD1が示す入力文章IS1の表示を指令する。表示指令を受けてCPU11は、画像処理プログラムANPに基づいて、画像処理回路14を介して、図4(a)に示すように、「おいらは鯵が好きだ。」の入力文章IS1をディスプレイ3上に表示する。     When the input sentence text data ITD1 is stored in the RAM 13, the input sentence processing program ISP instructs the CPU 11 to display the input sentence IS1 indicated by the input sentence text data ITD1. Upon receiving the display command, the CPU 11 displays the input sentence IS1 “I like candy” on the display 3 as shown in FIG. 4A via the image processing circuit 14 based on the image processing program ANP. Display above.

プレーヤは、表示された入力文章IS1を見て、この入力文章IS1を内容とする手紙を、所定のコンピュータキャラクタに送る旨の信号を、入力装置4を介して入力したとする。その信号を受けて入力文章処理プログラムISPは、CPU11に対して、RAM13に格納された入力文章テキストデータITD1から、図5に示す単語グループリストWGLに格納された単語データwd(後述)に一致する単語データwdを抽出するように指令すると共に、抽出した単語データwdが、単語グループリストWGLに格納されたいずれの単語グループWG(後述)に属するかを判定するように指令する。     It is assumed that the player views the displayed input sentence IS1 and inputs a signal through the input device 4 to send a letter containing the input sentence IS1 to a predetermined computer character. Upon receiving the signal, the input sentence processing program ISP matches the word data wd (described later) stored in the word group list WGL shown in FIG. 5 from the input sentence text data ITD1 stored in the RAM 13 to the CPU 11. A command is issued to extract word data wd and a command is issued to determine which word group WG (described later) stored in the word group list WGL the extracted word data wd belongs to.

単語グループリストWGLには、図5に示すように、複数の単語グループWG1、WG2、WG3、…が格納されており、それぞれの単語グループWG1、WG2、WG3、…は、複数の単語データwd11、wd12、wd13、…で構成されている。     In the word group list WGL, as shown in FIG. 5, a plurality of word groups WG1, WG2, WG3,... Are stored, and each word group WG1, WG2, WG3,. It is comprised by wd12, wd13, ....

なお、以下の説明では、単語グループWG1、WG2、WG3、…は、区別する必要がないときは、単語グループWGと表現し、単語データwd11、wd12、wd13、…も、区別する必要がないときは、単語グループwdと表現する。     In the following description, when the word groups WG1, WG2, WG3,... Do not need to be distinguished, they are expressed as the word group WG, and the word data wd11, wd12, wd13,. Is expressed as a word group wd.

単語データwdとは、単語を示す文字コードデータをいい、ここでいう「単語」とは、例えば「おいらは鯵が好きだ。」の文章において、「おいら」、「は」、「鯵」、「が」、「好き」、「だ」をそれぞれ示す、言語の最小単位を意味するが、必ずしもこれに限らず、複数の単語を接続したもの、例えば、「好き」と「だ」とを接続して「好きだ」としたものを含めてもよい。     The word data wd refers to character code data indicating a word, and the “word” here is, for example, in the sentence “I like candy”, “Oira”, “ha”, “鯵”, This means the smallest unit of language that indicates "ga", "like", and "da", but is not necessarily limited to this, it is a connection of multiple words, for example, "like" and "da" You may include what you like.

これら単語データwdは、単語グループWG1、WG2、WG3、…として、単語データwdが示す単語の意味を類型化する形で、グループ化されている。具体的には、図5に示す単語グループWG1は、「自分」、「俺」、「私」、「おいら」、…の単語をそれぞれ示す、単語データwd11、wd12、wd13、wd14、…をグループ化している。これら「自分」、「俺」、「私」、「おいら」、…からなる単語群は、表現形式の異なる自称であり、即ち、単語グループWG1は、「自分」を意味する単語を類型化している。     These word data wd are grouped as a word group WG1, WG2, WG3,... In a form that classifies the meaning of the word indicated by the word data wd. Specifically, the word group WG1 shown in FIG. 5 is a group of word data wd11, wd12, wd13, wd14,..., Which indicate the words “self”, “I”, “I”, “Oira”,. It has become. These word groups consisting of “me”, “me”, “me”, “my”, etc. are self-proclaimed in different forms of expression, that is, the word group WG1 categorizes the word meaning “me”. Yes.

図5に示す単語グループWG2は、「魚」、「鯵」、「鮭」、「ししゃも」、…の単語をそれぞれ示す、単語データwd21、wd22、wd23、wd24、…をグループ化している。これら「魚」、「鯵」、「鮭」、「ししゃも」、…からなる単語群は、「魚」の種類を含めた形で、「魚」を意味しており、即ち、単語グループWG2は、「魚」を意味する単語を類型化している。     The word group WG2 shown in FIG. 5 groups word data wd21, wd22, wd23, wd24,..., Which indicate the words “fish”, “carp”, “carp”, “shishamo”,. The word group consisting of “fish”, “carp”, “carp”, “shishamo”,... Includes the type of “fish” and means “fish”, that is, the word group WG2 is The word meaning "fish" is typified.

図5に示す単語グループWG3は、「好き」、「好きだ」、「好きです」、…の単語をそれぞれ示す、単語データwd31、wd32、wd33、…をグループ化している。これら「好き」、「好きだ」、「好きです」、…からなる単語群は、「好き」に「だ」や「です」などの助動詞を接続した単語を含めた形で、「好き」を意味しており、即ち、単語グループWG3は、「好き」を意味する単語を類型化している。     The word group WG3 shown in FIG. 5 groups word data wd31, wd32, wd33,..., Which indicate the words “I like”, “I like”, “I like”,. The word group consisting of these “Like”, “I like”, “I like”, and so on, includes words that include auxiliary verbs such as “Da” and “Da” in “Like”. Meaning, that is, the word group WG3 classifies words that mean “like”.

以下同様に、単語グループWG4、WG5、WG6、WG7、WG8、…は、それぞれ、「魚以外」を意味する単語、「君」を意味する単語、「何」を意味する単語、「忙しい」を意味する単語、「暇」を意味する単語、…を類型化している。     In the same manner, the word groups WG4, WG5, WG6, WG7, WG8,... Have a word meaning “other than fish”, a word meaning “you”, a word meaning “what”, and “busy”, respectively. It classifies the meaning word, the word meaning “free time”, and so on.

なお、図5に示す単語グループWG1、WG2、…がグループ化する単語群は一例であって、必ずしもこれに限る必要はなく、例えば、単語群を構成する単語を、ゲームのテーマやシナリオの内容などに応じて適宜設定してよい。例えば、キャラクタ間の「恋愛」をテーマにしたロールプレイングゲームであれば、上述した、「好き」を意味する単語グループWG3を、恋愛感情を表現する、「愛している」、「ラブ」、「惚れている」、…などの単語群を示す単語データwdで構成させてもよい。     Note that the word groups WG1, WG2,... Shown in FIG. 5 are examples of groups of words, and are not necessarily limited to this. For example, the words constituting the word groups may be the contents of the game theme or scenario. You may set suitably according to etc. For example, in the case of a role-playing game based on the theme of “love” between characters, the word group WG3 meaning “like” is expressed as “love”, “love”, “ It may be composed of word data wd indicating a word group such as “drown”,.

こうして、CPU11は、入力文章処理プログラムISPから、単語データwdの抽出処理及び単語グループWGの判定処理(以下、単に「抽出・判定処理」という。)の指令を受けると、まず、入力文章テキストデータITD1及び単語グループリストWGLを、RAM13のデータ領域から呼び出す。CPU11は、呼び出した単語グループリストWGLの単語グループWG1を参照して、単語グループWG1の単語データwd11、wd12、wd13、…に一致する単語データwdを、入力文章テキストデータITD1から抽出する。     Thus, when the CPU 11 receives commands from the input sentence processing program ISP for the extraction process of the word data wd and the determination process of the word group WG (hereinafter simply referred to as “extraction / determination process”), first, the input sentence text data. The ITD 1 and the word group list WGL are called from the data area of the RAM 13. The CPU 11 refers to the word group WG1 of the called word group list WGL and extracts word data wd that matches the word data wd11, wd12, wd13,... Of the word group WG1 from the input sentence text data ITD1.

入力文章テキストデータITD1は、既に述べたように、「おいらは鯵が好きだ。」の入力文章IS1に対応する文字コードデータで構成されているので、入力文章テキストデータITD1は、「おいら」を示す単語データwd14を有する。従って、CPU11は、単語データwd14を入力文章テキストデータITD1から抽出する。     As described above, the input sentence text data ITD1 is composed of the character code data corresponding to the input sentence IS1 of “I like candy”. Therefore, the input sentence text data ITD1 is “Ira”. It has the word data wd14 shown. Therefore, the CPU 11 extracts the word data wd14 from the input sentence text data ITD1.

入力文章テキストデータITD1から単語データwd14を抽出すると、CPU11は、単語グループリストWGLを参照して、抽出した単語データwd14が、いずれの単語グループWGに属するかを判定する。単語データwd14は、図5に示すように、単語グループWG1にグループ化されているので、CPU11は、抽出した単語データwd14が、単語グループWG1に属すると判定する。     When the word data wd14 is extracted from the input sentence text data ITD1, the CPU 11 refers to the word group list WGL and determines to which word group WG the extracted word data wd14 belongs. Since the word data wd14 is grouped into the word group WG1 as shown in FIG. 5, the CPU 11 determines that the extracted word data wd14 belongs to the word group WG1.

単語グループWG1についての抽出・判定処理が終了すると、次いで単語グループWG2について、同様の処理を行う。即ち、CPU11は、単語グループリストWGLの単語グループWG2を参照して、単語グループWG2の単語データwd21、wd22、wd23、…に一致する単語データwdを、入力文章テキストデータITD1から抽出する。     When the extraction / determination process for the word group WG1 is completed, the same process is performed for the word group WG2. That is, the CPU 11 refers to the word group WG2 of the word group list WGL, and extracts word data wd that matches the word data wd21, wd22, wd23,... Of the word group WG2 from the input sentence text data ITD1.

入力文章テキストデータITD1は、「鯵」を示す単語データwd22を有するので、CPU11は、単語データwd22を入力文章テキストデータITD1から抽出する。単語データwd22を抽出すると、単語データwd22は、図5に示すように、単語グループWG2にグループ化されているので、CPU11は、抽出した単語データwd22が、単語グループWG2に属すると判定する。     Since the input sentence text data ITD1 has word data wd22 indicating “鯵”, the CPU 11 extracts the word data wd22 from the input sentence text data ITD1. When the word data wd22 is extracted, the word data wd22 is grouped into the word group WG2 as shown in FIG. 5, so the CPU 11 determines that the extracted word data wd22 belongs to the word group WG2.

単語グループWG2についての抽出・判定処理が終了すると、次いで単語グループWG3について、同様の処理を行う。即ち、CPU11は、単語グループリストWGLの単語グループWG3を参照して、単語グループWG3の単語データwd31、wd32、wd33、…に一致する単語データwdを、入力文章テキストデータITD1から抽出する。     When the extraction / determination process for the word group WG2 is completed, the same process is performed for the word group WG3. That is, the CPU 11 refers to the word group WG3 in the word group list WGL and extracts word data wd that matches the word data wd31, wd32, wd33,... Of the word group WG3 from the input sentence text data ITD1.

入力文章テキストデータITD1は、「好き」、「好きだ」をそれぞれ示す単語データwd31、wd32を有するが、ここでは、文字コード数が大きい(文字数が多い)方の単語データwdが、優先的に抽出されるように設定されているものとする。従って、CPU11は、「好き」より文字数が多い「好きだ」を示す単語データwd32を、入力文章テキストデータITD1から抽出する。単語データwd32を抽出すると、当該単語データwd32は、図5に示すように、単語グループWG3にグループ化されているので、CPU11は、抽出した単語データwd32が、単語グループWG3に属すると判定する。     The input sentence text data ITD1 has word data wd31 and wd32 respectively indicating “like” and “like”. Here, the word data wd having the larger number of character codes (the number of characters) is preferentially given. Assume that it is set to be extracted. Therefore, the CPU 11 extracts word data wd32 indicating “I like” having more characters than “like” from the input sentence text data ITD1. When the word data wd32 is extracted, the word data wd32 is grouped into the word group WG3 as shown in FIG. 5, so the CPU 11 determines that the extracted word data wd32 belongs to the word group WG3.

こうして、CPU11は、入力文章処理プログラムISPに基づいて、単語グループWG4、WG5、WG6、…についても同様の抽出・判定処理を行うが、入力文章テキストデータITD1は、これら単語グループWG4、WG5、WG6、…に格納されたいずれの単語データwdも有しないので、これらの単語データwdは、入力文章テキストデータITD1から抽出されない。     Thus, the CPU 11 performs the same extraction / determination process for the word groups WG4, WG5, WG6,... Based on the input sentence processing program ISP, but the input sentence text data ITD1 is the word groups WG4, WG5, WG6. ,... Are not extracted from the input sentence text data ITD1 because they do not have any word data wd stored in.

その結果、入力文章テキストデータITD1から抽出された単語データwdは、「おいら」、「鯵」、「好きだ」の単語を示す、3つの単語データwd14、wd22、wd32となるので、これら単語データwd14、wd22、wd32が属すると判定された単語グループWGは、3つの単語グループWG1、WG2、WG3となる。     As a result, the word data wd extracted from the input sentence text data ITD1 becomes three word data wd14, wd22, and wd32 indicating the words “Oira”, “鯵”, and “I like”. The word groups WG that are determined to belong to wd14, wd22, and wd32 are three word groups WG1, WG2, and WG3.

こうして、全ての抽出・判定処理が終了すると、CPU11は、入力文章処理プログラムISPに基づいて、上述した3つの単語グループWG1、WG2、WG3からなる、仮キーワードグループPKG1を、RAM13のデータ領域に格納する。     Thus, when all the extraction / determination processes are completed, the CPU 11 stores the temporary keyword group PKG1 composed of the three word groups WG1, WG2, and WG3 described above in the data area of the RAM 13 based on the input sentence processing program ISP. To do.

次いで、図3に示す返答文章処理プログラムRSPは、CPU11に対して、仮キーワードグループPKG1と、単語グループWGの全てが一致するキーワードグループKG(後述)を、図6に示す返答文章テキストデータリストRTL1から検索するように指令する。     Next, the reply sentence processing program RSP shown in FIG. 3 sends the temporary keyword group PKG1 and the keyword group KG (described later) in which all of the word groups WG match the CPU 11 to the reply sentence text data list RTL1 shown in FIG. To search from.

返答文章テキストデータリストRTL1には、図6中右方に示すように、コンピュータキャラクタからプレーヤに返答する文章(以下「返答文章RS」という。)を示す、返答文章テキストデータRTD1、RTD2、RTD3、…が、複数格納されている。以下の説明では、返答文章テキストデータRTD1、RTD2、RTD3、…は、区別する必要のないときは、返答文章テキストデータRTDと表現する。     In the response text data list RTL1, as shown on the right side of FIG. 6, response text data RTD1, RTD2, RTD3, which indicate texts (hereinafter referred to as “response text RS”) sent from the computer character to the player. ... are stored more than once. In the following description, the response text data RTD1, RTD2, RTD3,... Are expressed as response text data RTD when it is not necessary to distinguish them.

具体的には、返答文章テキストデータRTDとして、「君の好物は魚なのか。」、「君の好物は野菜なのか。ヘルシーだな。俺は、野菜は苦手だなーー」、…の返答文章RS1、RS2、…をそれぞれ示す、返答文章テキストデータRTD1、RTD2、…が、返答文章テキストデータリストRTL1に格納されている。     Specifically, as response text data RTD, "Is your favorite food a fish?", "Your favorite food is a vegetable. Healthy, I'm not good at vegetables." Response text text data RTD1, RTD2,... Respectively indicating texts RS1, RS2,... Are stored in the response text data list RTL1.

また、返答文章テキストデータリストRTL1には、これら返答文章テキストデータRTD1、RTD2、…それぞれに対応して、キーワードグループKG1、KG2、…が格納されている。以下の説明では、キーワードグループKG1、KG2、…は、区別する必要のないときは、キーワードグループKGと表現する。     Further, the response sentence text data list RTL1 stores keyword groups KG1, KG2,... Corresponding to these reply sentence text data RTD1, RTD2,. In the following description, the keyword groups KG1, KG2,... Are expressed as keyword groups KG when it is not necessary to distinguish them.

キーワードグループKGは、複数の単語グループWGからなり、これら複数の単語グループWGは、返答文章テキストデータRTDが示す返答文章RSを手紙の返答として会話を成立させる入力文章IS(返答文章RSに対応した入力文章IS)のキーワード(後述)を示している。     The keyword group KG is composed of a plurality of word groups WG. These plurality of word groups WG correspond to the input sentence IS (response sentence RS corresponding to the reply sentence RS) by using the reply sentence RS indicated by the reply sentence text data RTD as a reply to the letter. The keywords (described later) of the input sentence IS) are shown.

具体的にキーワードグループKG1について説明すると、返答文章テキストデータRTD1が示す返答文章RS1は、図6に示すように「君の好物は魚なのか。」であり、この返答文章RS1に対応した入力文章ISとして、例えば「自分は魚が好き。」の文章が想定されるが、これに限らず「自分は魚が好き。」の言い回しを代えた文章でも、返答文章RS1に対応した入力文章ISとなる。     The keyword group KG1 will be described in detail. The response text RS1 indicated by the response text data RTD1 is “Is your favorite food a fish?” As shown in FIG. 6, and the input text corresponding to this response text RS1. For example, a sentence “I like fish” is assumed as the IS. However, the sentence is not limited to this, and an input sentence IS corresponding to the reply sentence RS1 can be used even if the phrase “I like fish” is changed. Become.

例えば、「自分は魚が好き。」を構成する単語のうち「自分」の表現形式を代えて、「俺」、「私」、「おいら」、…に変更しても(つまり「俺は魚が好きだ。」、「私は魚が好きだ。」、「おいらは魚が好きだ。」…の文章でも)、返答文章RS1に対応した入力文章ISとなる。同様に、「自分は魚が好き。」を構成する単語のうち「魚」の表現形式を代えて、「鯵」、「鮭」、「ししゃも」、…に変更しても、あるいは、「自分は魚が好き。」を構成する単語のうち「好き」の表現形式を代えて、「好きだ」、「好きです」、…に変更しても、これら言い回しを代えた文章は、依然として、返答文章RS1に対応した入力文章ISとなる。なぜなら、このように言い回しを代えた文章の文意は、いずれも「操作キャラクタは魚が好き。」と捉えることが出来るからである。従って、当該文意を有する文章であれば、いずれの言い回しであっても、返答文章RS1に対応する入力文章ISとなる。     For example, if you change the expression format of “I” among the words that make up “I like fish”, change it to “I”, “I”, “Oira”,… (that is, “I am fish ”,“ I like fish ”,“ I like fish ”, etc.)), and the input sentence IS corresponding to the reply sentence RS1. Similarly, you can change the expression format of “fish” in the words that make up “I like fish” and change it to “鯵”, “鮭”, “shishamo”,… Even if you change the expression format of “like” among the words that make up “I like fish.” To “I like”, “I like”,…, the sentences with these words still changed The input sentence IS corresponds to the sentence RS1. This is because the sentence meanings of sentences with different phrases can be understood as “the operation character likes fish”. Therefore, as long as the sentence has the meaning, the input sentence IS corresponding to the reply sentence RS1 is used regardless of the wording.

ここで、入力文章ISのキーワードとは、入力文章ISを構成する単語のうち、当該入力文章ISが有する文意を示す単語をいう。即ち、「君の好物は魚なのか。」の返答文章RS1に対応した入力文章ISは、上述したように多様な言い回しが可能であるが、いずれの文意も「操作キャラクタは魚が好き。」と捉えることが出来るので、これらの入力文章ISのキーワードは、「操作キャラクタは魚が好き。」の文意を示す単語となる。「操作キャラクタは魚が好き。」の文意を示す単語は、例えば、「操作キャラクタ」、「魚」、「好き」であり、従って、返答文章RS1に対応した入力文章ISのキーワードは、これら「操作キャラクタ」、「魚」、「好き」にそれぞれに対応して、「自分」を意味する単語、「魚」を意味する単語、「好き」を意味する単語となる。     Here, the keyword of the input sentence IS means a word indicating the meaning of the input sentence IS among the words constituting the input sentence IS. That is, the input sentence IS corresponding to the reply sentence RS1 of “Your favorite food is fish?” Can be variously spoken as described above, but any sentence meaning “the operation character likes fish. Therefore, the keyword of these input sentences IS is a word indicating the meaning of “the operation character likes fish”. The words indicating the meaning of “the operation character likes fish” are, for example, “operation character”, “fish”, and “like”. Therefore, the keywords of the input sentence IS corresponding to the reply sentence RS1 are these Corresponding to “operation character”, “fish”, and “like”, respectively, a word meaning “self”, a word meaning “fish”, and a word meaning “like”.

一方、キーワードグループKG1は、図6に示すように、単語グループWG1、WG2、WG3からなり、これらの単語グループWG1、WG2、WG3は、図5に示すように、それぞれ、「自分」を意味する単語、「魚」を意味する単語、「好き」を意味する単語を示している。即ち、キーワードグループKG1からなる単語グループWG1、WG2、WG3は、返答文章RS1に対応した入力文章ISのキーワードを示すことになる。     On the other hand, as shown in FIG. 6, the keyword group KG1 is composed of word groups WG1, WG2, and WG3, and these word groups WG1, WG2, and WG3 mean “self”, as shown in FIG. A word, a word meaning “fish”, and a word meaning “like” are shown. That is, the word groups WG1, WG2, and WG3 including the keyword group KG1 indicate keywords of the input sentence IS corresponding to the response sentence RS1.

なお、返答文章RS1に対応した入力文章ISは一例であって、必ずしもこれに限る必要はない。「君の好物は魚なのか。」の返答文章RS1に対応した入力文章の文意を、例えば「魚が食べたい。」と捉えることも可能であり、この場合、入力文章ISのキーワードは、例えば、「魚」を意味する単語、及び「食」を意味する単語となる。     Note that the input sentence IS corresponding to the reply sentence RS1 is an example, and is not necessarily limited to this. The meaning of the input sentence corresponding to the response sentence RS1 of “Your favorite food is fish?” Can be taken as, for example, “I want to eat fish.” In this case, the keyword of the input sentence IS is For example, the word means “fish” and the word means “food”.

こうして、返答文章処理プログラムRSPからキーワードグループKGの検索指令を受けると、CPU11は、RAM13のデータ領域から、仮キーワードグループPKG1、及び、返答文章テキストデータリストRTL1を呼び出す。そして、返答文章テキストデータリストRTL1中のキーワードグループKG1、KG2、…それぞれについて、仮キーワードグループPKG1と、単語グループWGの全てが一致するか否かを判定し、一致すると判定されたキーワードグループKGを抽出する。     Thus, upon receiving a keyword group KG search command from the reply text processing program RSP, the CPU 11 calls the temporary keyword group PKG1 and the reply text text data list RTL1 from the data area of the RAM 13. Then, for each of the keyword groups KG1, KG2,... In the response sentence text data list RTL1, it is determined whether or not the temporary keyword group PKG1 and the word group WG all match, and the keyword group KG determined to match is determined. Extract.

キーワードグループKG1は、図6に示すように、仮キーワードグループPKG1と同様、単語グループWG1、WG2、WG3からなるので、CPU11は、キーワードグループKG1が、仮キーワードグループPKG1と、単語グループWG1、WG2、WG3の全てが一致すると判定する。従って、CPU11は、キーワードグループKG1を、返答文章テキストデータリストRTL1から抽出する。     As shown in FIG. 6, the keyword group KG1 is composed of the word groups WG1, WG2, and WG3 as in the temporary keyword group PKG1, so the CPU 11 determines that the keyword group KG1 is the temporary keyword group PKG1, the word groups WG1, WG2, It is determined that all of WG3 match. Therefore, the CPU 11 extracts the keyword group KG1 from the response sentence text data list RTL1.

こうして、キーワードグループKGの検索処理が終了すると、返答文章処理プログラムRSPは、CPU11に対して、抽出したキーワードグループKG1に対応する返答文章テキストデータRTDを、返答文章テキストデータリストRTL1から読み出し、ディスプレイ3上に表示するように指令する。キーワードグループKG1に対応する返答文章テキストデータRTDは、図6に示すように、RTD1なので、上記指令を受けてCPU11は、返答文章テキストデータRTD1を、返答文章テキストデータリストRTL1から読み出す。     When the keyword group KG search process is thus completed, the reply sentence processing program RSP reads out the reply sentence text data RTD corresponding to the extracted keyword group KG1 from the reply sentence text data list RTL1 to the CPU 11, and displays the display 3 Command to display above. As shown in FIG. 6, the response text data RTD corresponding to the keyword group KG1 is RTD1, so that the CPU 11 receives the command and reads the response text text data RTD1 from the response text data list RTL1.

返答文章テキストデータRTD1を読み出すと、CPU11は、図4(b)に示すように、画像処理プログラムANPに基づいて、画像処理回路14を介して、返答文章テキストデータRTD1が示す返答文章RS1の「君の好物は魚なのか。」を、ディスプレイ3上に表示する。なお、返答文章RS1は、プレーヤが入力文章IS1を入力した時点から直ちに表示する必要なく、シナリオに応じた適宜な時点に表示してよい。     When the response text data RTD1 is read, the CPU 11 reads the response text RS1 indicated by the response text text data RTD1 via the image processing circuit 14 based on the image processing program ANP as shown in FIG. “Is your favorite fish?” Is displayed on the display 3. Note that the response text RS1 does not need to be displayed immediately after the player inputs the input text IS1, but may be displayed at an appropriate time according to the scenario.

こうして、ディスプレイ3上に、「君の好物は魚なのか。」の返答文章RS1が表示されると、プレーヤは、表示された返答文章RS1を見て、自分が手紙の内容として作成した「おいらは鯵が好きだ。」の入力文章IS1に対応する返答を、コンピュータキャラクタから受けたと認識することになる。     In this way, when the response text RS1 “Is your favorite fish?” Is displayed on the display 3, the player looks at the displayed response text RS1 and creates “Oira” It is recognized that a response corresponding to the input sentence IS1 of “I like candy” has been received from the computer character.

このように、「おいらは鯵が好きだ。」の入力文章IS1に対して、「君の好物は魚なのか。」の返答文章RS1がディスプレイ3上に表示されるが、「操作キャラクタは魚が好き。」という文意を有する文章であれば、入力文章ISは、必ずしも「おいらは鯵が好きだ。」の文章である必要はない。例えば、「おいらは鯵が好きだ。」の文章の言い回しを代えて、「俺はししゃもが好きです。」の文章を入力文章IS2とした場合について、以下に説明する。     In this way, in response to the input sentence IS1 of “I like sharks”, the reply sentence RS1 of “Is your favorite food a fish?” Is displayed on the display 3, but the operation character is a fish. If the sentence has the meaning of “I like”, the input sentence IS does not necessarily have to be the sentence “I like candy.” For example, the case where the sentence “I like a rice cake” is replaced with the sentence “I like a rice ball” as the input sentence IS2 will be described below.

まず、プレーヤが、上述と同様に、入力文章作成画面(図示せず)をディスプレイ3上に表示させて、「俺はししゃもが好きです。」の入力文章IS2を構成する全ての文字を、入力装置4を介して選択すると、入力文章IS2に対応する入力文章テキストデータITD2が、RAM13のデータ領域に格納される。     First, the player displays an input sentence creation screen (not shown) on the display 3 in the same manner as described above, and inputs all the characters constituting the input sentence IS2 of “I like a potato”. When selected via the device 4, input sentence text data ITD 2 corresponding to the input sentence IS 2 is stored in the data area of the RAM 13.

入力文章テキストデータITD2がRAM13に格納されると、上述した、単語データwdの抽出処理、及び単語グループWGの判定処理が行われる。即ち、CPU11は、単語グループリストWGLの単語グループWG1を参照して、単語グループWG1の単語データwd11、wd12、wd13、…に一致する単語データwdを、入力文章テキストデータITD2から抽出する。     When the input sentence text data ITD2 is stored in the RAM 13, the above-described extraction process of the word data wd and the determination process of the word group WG are performed. That is, the CPU 11 refers to the word group WG1 of the word group list WGL and extracts word data wd that matches the word data wd11, wd12, wd13,... Of the word group WG1 from the input sentence text data ITD2.

入力文章テキストデータITD2は、「俺はししゃもが好きです。」に対応する文字コードデータで構成されており、図5に示す「俺」を示す単語データwd12を有するので、CPU11は、単語データwd12を入力文章テキストデータITD2から抽出する。「俺」を示す単語データwd12を抽出すると、単語データwd12は、図5に示すように、「おいら」を示す単語データwd14と同じ単語グループWG1に格納されているので、CPU11は、抽出した単語データwd12が、「おいら」を示す単語データwd14と同様に、単語グループWG1に属すると判定する。     Since the input text text data ITD2 is composed of character code data corresponding to “I like the bush” and has the word data wd12 indicating “I” shown in FIG. 5, the CPU 11 uses the word data wd12. Is extracted from the input sentence text data ITD2. When the word data wd12 indicating "I" is extracted, the word data wd12 is stored in the same word group WG1 as the word data wd14 indicating "Oira" as shown in FIG. It is determined that the data wd12 belongs to the word group WG1 similarly to the word data wd14 indicating “Oira”.

単語グループWG1についての抽出・判定処理が終了すると、CPU11は、単語グループリストWGLの単語グループWG2を参照して、単語グループWG2の単語データwd21、wd22、wd23、…に一致する単語データwdを、入力文章テキストデータITD2から抽出する。     When the extraction / determination process for the word group WG1 is completed, the CPU 11 refers to the word group WG2 in the word group list WGL, and obtains word data wd that matches the word data wd21, wd22, wd23,. Extracted from the input text text data ITD2.

入力文章テキストデータITD2は、「ししゃも」を示す単語データwd24を有するので、CPU11は、単語データwd24を入力文章テキストデータITD2から抽出する。「ししゃも」を示す単語データwd24を抽出すると、単語データwd24は、図5に示すように、「鯵」を示す単語データwd22と同じ単語グループWG2に格納されているので、CPU11は、抽出した単語データwd24が、「鯵」を示す単語データwd22と同様に、単語グループWG2に属すると判定する。     Since the input sentence text data ITD2 has the word data wd24 indicating “shishamo”, the CPU 11 extracts the word data wd24 from the input sentence text data ITD2. When the word data wd24 indicating “shishamo” is extracted, the word data wd24 is stored in the same word group WG2 as the word data wd22 indicating “鯵” as shown in FIG. It is determined that the data wd24 belongs to the word group WG2 similarly to the word data wd22 indicating “22”.

単語グループWG2についての抽出・判定処理が終了すると、CPU11は、単語グループリストWGLの単語グループWG3を参照して、単語グループWG3の単語データwd31、wd32、wd33、…に一致する単語データwdを、入力文章テキストデータITD2から抽出する。     When the extraction / determination process for the word group WG2 is completed, the CPU 11 refers to the word group WG3 in the word group list WGL, and obtains word data wd that matches the word data wd31, wd32, wd33,. Extracted from the input text text data ITD2.

入力文章テキストデータITD2は、「好きです」を示す単語データwd33を有するので、CPU11は、単語データwd33を入力文章テキストデータITD2から抽出する。「好きです」を示す単語データwd33を抽出すると、単語データwd33は、図5に示すように、「好きだ」を示す単語データwd32と同じ単語グループWG3に格納されているので、CPU11は、抽出した単語データwd33が、「好きだ」を示す単語データwd32と同様に、単語グループWG3に属すると判定する。     Since the input sentence text data ITD2 has word data wd33 indicating “I like it”, the CPU 11 extracts the word data wd33 from the input sentence text data ITD2. When the word data wd33 indicating “I like” is extracted, the word data wd33 is stored in the same word group WG3 as the word data wd32 indicating “I like” as shown in FIG. The determined word data wd33 is determined to belong to the word group WG3, similarly to the word data wd32 indicating “I like it”.

こうして、CPU11は、入力文章処理プログラムISPに基づいて、単語グループWG4、WG5、WG6、…についても同様の抽出・判定処理を行うが、入力文章テキストデータITD2は、これら単語グループWG4、WG5、WG6、…に格納されたいずれの単語データwdも有しないので、これらの単語データwdは、入力文章テキストデータITD2から抽出されない。     Thus, the CPU 11 performs the same extraction / determination process for the word groups WG4, WG5, WG6,... Based on the input sentence processing program ISP, but the input sentence text data ITD2 is the word groups WG4, WG5, WG6. ,... Are not extracted from the input sentence text data ITD2.

その結果、入力文章テキストデータITD2から抽出された単語データwdは、入力文章テキストデータITD1の場合(この場合、wd14、wd22、wd32)と異なり、「俺」、「ししゃも」、「好きです」の単語をそれぞれ示す、単語データwd12、wd24、wd33となるが、これら単語データwd12、wd24、wd33が属すると判定された単語グループWGは、入力文章テキストデータITD1の場合と同様に、単語グループWG1、WG2、WG3となる。     As a result, the word data wd extracted from the input sentence text data ITD2 is different from the input sentence text data ITD1 (in this case, wd14, wd22, wd32). The word data wd12, wd24, and wd33, which respectively indicate words, are determined. The word group WG that is determined to belong to the word data wd12, wd24, and wd33 is similar to the case of the input sentence text data ITD1, the word group WG1, WG2 and WG3.

従って、仮キーワードグループPKGは、入力文章テキストデータITD1の場合と同様に、単語グループWG1、WG2、WG3からなるので、CPU11は、返答文章処理プログラムRSPに基づいて、キーワードグループKG1を、返答文章テキストデータリストRTL1から抽出し、抽出したキーワードグループKG1に対応する返答文章テキストデータRTD1を、返答文章テキストデータリストRTL1から読み出す。こうして、入力文章テキストデータITD1の場合と同様に、図4(b)に示すように、ディスプレイ3上に、文章テキストデータリストRTL1が示す返答文章RS1の「君の好物は魚なのか。」が表示されることになる。     Accordingly, the temporary keyword group PKG is composed of the word groups WG1, WG2, and WG3 as in the case of the input sentence text data ITD1, and therefore the CPU 11 determines the keyword group KG1 as the reply sentence text based on the reply sentence processing program RSP. The response sentence text data RTD1 extracted from the data list RTL1 and corresponding to the extracted keyword group KG1 is read from the response sentence text data list RTL1. Thus, as in the case of the input sentence text data ITD1, as shown in FIG. 4B, the response sentence RS1 indicated by the sentence text data list RTL1 on the display 3 is “is your favorite food a fish?”. Will be displayed.

このように、「おいらは鯵が好きだ。」の入力文章IS1の言い回しを代えた場合でも、「俺はししゃもが好きです。」の入力文章IS2は、上記入力文章IS1と同様に、「操作キャラクタは魚が好き」の文意を有するので、入力文章IS2のキーワードとして、入力文章IS1と同様の単語グループWG1、WG2、WG3に属する単語データwdが抽出され、同様に、返答文章RS1がディスプレイ3上に表示されることになる。     In this way, even when the wording of the input sentence IS1 of “I like candy” is changed, the input sentence IS2 of “I like the bush” is similar to the above-described input sentence IS1. Since the character has a meaning of “I like fish”, word data wd belonging to the same word group WG1, WG2, WG3 as the input sentence IS1 is extracted as a keyword of the input sentence IS2, and similarly, the response sentence RS1 is displayed. 3 will be displayed.

即ち、予め準備した返答文章RSに対応する多様な言い回しの入力文章ISを、複数の単語グループWGからなるキーワードグループKGに基づいて受け付けるので、プレーヤは、コンピュータキャラクタと文章の遣り取りをするにあたり、予め決まった特定の文章や特定の単語の入力などの制限が課されることなく、入力文章ISを自由な言い回しで作成することが出来る。これにより、プレーヤに入力操作の負担を与えないようにすることが出来るので、ゲームの興趣を損なうことを防止することが出来る。     In other words, since the input text IS having various phrases corresponding to the response text RS prepared in advance is received based on the keyword group KG composed of a plurality of word groups WG, the player is required to exchange the text with the computer character in advance. The input sentence IS can be created with any wording without any restrictions such as inputting a specific sentence or a specific word. As a result, it is possible to prevent the player from burdening the input operation, so that it is possible to prevent the game from being spoiled.

また、言い回しの異なる入力文章ISを個々にデータとして格納する必要がないので、従来のように、入力文章ISと返答文章RSとを1対1対応のデータとして準備する必要がなくなり、これらの文章に必要なデータ容量を少なくすることが出来る。     In addition, since it is not necessary to individually store input sentences IS having different wordings, it is not necessary to prepare the input sentences IS and the response sentences RS as one-to-one correspondence data as in the past, and these sentences Can reduce the data capacity required.

しかも、入力文章ISを自由な言い回しで作成することが出来るものでありながら、文法や文脈などから文章解析を行う必要がないので、このような文章の遣り取りを簡単な処理で行うことが出来、特に、携帯型ゲーム機などのCPU11の処理能力が十分でない場合に、好都合である。     Moreover, while it is possible to create the input sentence IS with free wording, it is not necessary to analyze the sentence from the grammar and context, so such sentences can be exchanged with simple processing, This is particularly convenient when the processing capacity of the CPU 11 such as a portable game machine is not sufficient.

なお、入力文章ISの一例として、「おいらは鯵が好きだ。」の入力文章IS1や「俺はししゃもが好きです。」の入力文章IS2などの、1つの文で構成された文章を示したが、入力文章ISは複数の文で構成されていてもよい。例えば、入力文章ISが「こんにちは。おいらは鯵が好きだ。」の場合、上述した抽出・判定処理を、文の終わりを示す句点に対応する文字データコードを検出することにより、「こんにちは。」、「おいらは鯵が好きだ。」のそれぞれの文単位で実行して、それぞれに検索されたキーワードグループKGに対応する返答文章RSを、ディスプレイ3上に表示させればよい。     In addition, as an example of the input sentence IS, a sentence composed of one sentence such as the input sentence IS1 of “I like candy” and the input sentence IS2 of “I like the rice cake” is shown. However, the input sentence IS may be composed of a plurality of sentences. For example, if the input sentence IS is "Hello. Oira likes mackerel.", By detecting the character data code to the above-mentioned extraction and judgment processing, corresponding to the period that indicates the end of a sentence, "Hello." The response sentence RS corresponding to each searched keyword group KG may be displayed on the display 3 by executing each sentence of “I like samurai”.

更に、返答文章テキストデータリストRTL1の一例として、図6に示すように、1つの返答文章テキストデータRTDに、1つのキーワードグループKGが対応する例を示したが、これに限られない。例えば、1つの返答文章テキストデータRTDを、論理演算子CCで組み合わされた複数のキーワードグループKGに対応させて、返答文章テキストデータリストRTLに格納し、CPU11に、それら組み合わされた複数のキーワードグループKGを検索させるようにすることも可能である。     Further, as an example of the response text data list RTL1, as shown in FIG. 6, an example is shown in which one keyword group KG corresponds to one response text data RTD. However, the present invention is not limited to this. For example, one reply sentence text data RTD is stored in the reply sentence text data list RTL in association with a plurality of keyword groups KG combined by the logical operator CC, and the combined keyword groups are stored in the CPU 11. It is also possible to search for KG.

以下、複数のキーワードグループKGを所定の論理演算子CCで組み合わされた場合の処理について、図7及び図8に沿って説明する。     Hereinafter, processing when a plurality of keyword groups KG are combined with a predetermined logical operator CC will be described with reference to FIGS.

返答文章テキストデータリストRTL10には、図8に示すように、既に説明した返答文章テキストデータリストRTL1(図6参照)と同様に、返答文章RS10、RS20、RS30、…をそれぞれ示す、複数の返答文章テキストデータRTD10、RTD20、RTD30、…が格納されている。また、返答文章テキストデータリストRTL10には、これら返答文章テキストデータRTD10、RTD20、RTD30、…に対応して、キーワードグループKG10、KG20、KG30、…が格納されている。     As shown in FIG. 8, the reply sentence text data list RTL10 includes a plurality of replies each showing reply sentences RS10, RS20, RS30,..., As in the reply sentence text data list RTL1 (see FIG. 6) already described. Text text data RTD10, RTD20, RTD30,... Are stored. The response text data list RTL10 stores keyword groups KG10, KG20, KG30,... Corresponding to the response text data RTD10, RTD20, RTD30,.

キーワードグループKG10は、キーワードグループKG11と、キーワードグループKG12とが、AND(論理積)を示す論理演算子CCで組み合わされている。キーワードグループKG11は、単語グループWG1、WG2、WG3からなり、また、キーワードグループKG12は、単語グループWG5、WG6、WG3からなる。     In the keyword group KG10, the keyword group KG11 and the keyword group KG12 are combined by a logical operator CC indicating AND (logical product). The keyword group KG11 includes word groups WG1, WG2, and WG3, and the keyword group KG12 includes word groups WG5, WG6, and WG3.

同様に、キーワードグループKG20は、キーワードグループKG21と、キーワードグループKG22とが、AND(論理積)を示す論理演算子CCで組み合わされている。キーワードグループKG21は、単語グループWG1、WG4、WG3からなり、また、キーワードグループKG22は、単語グループWG1、WG7からなる。     Similarly, in the keyword group KG20, the keyword group KG21 and the keyword group KG22 are combined with a logical operator CC indicating AND (logical product). The keyword group KG21 includes word groups WG1, WG4, and WG3, and the keyword group KG22 includes word groups WG1 and WG7.

同様に、キーワードグループKG30は、キーワードグループKG31と、キーワードグループKG32とが、AND(論理積)を示す論理演算子CCで組み合わされている。キーワードグループKG31は、単語グループWG1、WG4、WG3からなり、また、キーワードグループKG32は、単語グループWG5、WG8からなる。     Similarly, in the keyword group KG30, the keyword group KG31 and the keyword group KG32 are combined with a logical operator CC indicating AND (logical product). The keyword group KG31 includes word groups WG1, WG4, and WG3, and the keyword group KG32 includes word groups WG5 and WG8.

そして、これらキーワードグループKG10、KG20、KG30、…の単語グループWGは、既に説明した返答文章テキストデータリストRTL1(図6参照)と同様に、それぞれ、返答文章RS10、RS20、RS30…に対応した入力文章ISのキーワードを示している。     Then, the word groups WG of these keyword groups KG10, KG20, KG30,... Are input corresponding to the response sentences RS10, RS20, RS30,..., Respectively, similarly to the response sentence text data list RTL1 (see FIG. 6) already described. The keyword of sentence IS is shown.

ここで、プレーヤが、上述した入力文章作成画面(図示せず)をディスプレイ3上に表示させて、入力装置4を介して、「自分は野菜が好きだ。君は暇なの?」の入力文章IS10を構成する文字を選択したとする。すると、入力文章IS10に対応する入力文章テキストデータITD10が、RAM13のデータ領域に格納され、入力文章IS10が、図7(a)に示すように、ディスプレイ3上に表示される。     Here, the player displays the above-described input sentence creation screen (not shown) on the display 3, and the input sentence “I like vegetables. Are you free?” Via the input device 4. Suppose that the character which comprises IS10 is selected. Then, the input sentence text data ITD10 corresponding to the input sentence IS10 is stored in the data area of the RAM 13, and the input sentence IS10 is displayed on the display 3 as shown in FIG.

こうして、プレーヤは、入力文章IS10を内容とする手紙を送る旨の信号を、入力装置4を介して入力すると、CPU11は、入力文章処理プログラムISPに基づいて、上述した抽出・判定処理を実行する。この際、抽出・判定処理は、文の終わりを示す、句点や疑問符を示す文字データコードを検出することにより、文単位で実行されるように、設定されているものとする。     Thus, when the player inputs a signal to send a letter containing the input sentence IS10 via the input device 4, the CPU 11 executes the above-described extraction / determination process based on the input sentence processing program ISP. . At this time, it is assumed that the extraction / determination process is set to be executed in units of sentences by detecting a character data code indicating a punctuation mark or a question mark indicating the end of the sentence.

従って、「自分は野菜が好きだ。君は暇なの?」に対応する入力文章テキストデータITD10についての抽出・判定処理は、前段の「自分は野菜が好きだ。」の文に対応する前段テキストデータITD11と、後段の「君は暇なの?」の文に対応する後段テキストデータITD12と分けて実行される。     Therefore, the extraction / judgment process for the input sentence text data ITD10 corresponding to “I like vegetables. Are you free?” The preceding text corresponding to the sentence “I like vegetables” in the previous stage. The data ITD 11 and the subsequent text data ITD 12 corresponding to the sentence “You are free?” Are executed separately.

即ち、CPU11は、前段テキストデータITD11から、図5の単語グループリストWGLが示す、「自分」を示す単語データwd11、「野菜」を示す単語データwd41、「好きだ」を示す単語データwd32を抽出する。これら単語データwd11、wd41、wd32は、図5に示すように、それぞれ単語グループWG1、WG4、WG3に格納されているので、CPU11は、単語データwd11、wd41、wd32が属する単語グループWGを、3つの単語グループWG1、WG4、WG3と判定し、単語グループWG1、WG4、WG3からなる、仮キーワードグループPKG10を、RAM13のデータ領域に格納する。     That is, the CPU 11 extracts, from the preceding text data ITD11, the word data wd11 indicating “self”, the word data wd41 indicating “vegetable”, and the word data wd32 indicating “I like” shown in the word group list WGL of FIG. To do. Since these word data wd11, wd41, and wd32 are respectively stored in the word groups WG1, WG4, and WG3 as shown in FIG. 5, the CPU 11 assigns the word group WG to which the word data wd11, wd41, and wd32 belong to 3 It is determined that there are two word groups WG1, WG4, and WG3, and a temporary keyword group PKG10 including the word groups WG1, WG4, and WG3 is stored in the data area of the RAM 13.

更に、CPU11は、後段テキストデータITD12から、図5の単語グループリストWGLが示す、「君」を示す単語データwd51、「暇」を示す単語データwd81を抽出する。これら単語データwd51、wd81は、図5に示すように、それぞれ単語グループWG5、WG8に格納されているので、CPU11は、単語データwd51、wd81が属する単語グループWGは、2つの単語グループWG5、WG8と判定し、単語グループWG5、WG8からなる、仮キーワードグループPKG20を、RAM13のデータ領域に格納する。     Furthermore, the CPU 11 extracts word data wd51 indicating “you” and word data wd81 indicating “free” shown in the word group list WGL of FIG. 5 from the subsequent text data ITD12. Since these word data wd51 and wd81 are stored in the word groups WG5 and WG8, respectively, as shown in FIG. 5, the CPU 11 determines that the word group WG to which the word data wd51 and wd81 belong is two word groups WG5 and WG8. And the temporary keyword group PKG20 composed of the word groups WG5 and WG8 is stored in the data area of the RAM 13.

こうして、抽出・判定処理が終了すると、CPU11は、返答文章処理プログラムRSPに基づいて、上述した、キーワードグループKGの検索処理を実行する。     When the extraction / determination process is thus completed, the CPU 11 executes the above-described keyword group KG search process based on the response sentence processing program RSP.

即ち、CPU11は、図8に示す返答文章テキストデータリストRTL10中のキーワードグループKG10、KG20、KG30、…それぞれについて、仮キーワードグループPKG10、PKG20と、単語グループWGの全てが一致するか否かを判定し、ANDを示す論理演算子CCを満たすキーワードグループKGを、キーワードグループKG10、KG20、KG30…の中から検索する。なお、この検索処理は、特に優先順位はないが、仮キーワードグループPKG10、PKG20の順に行われるように、設定されているものとする。     That is, the CPU 11 determines whether or not all of the temporary keyword groups PKG10, PKG20 and the word group WG match for each of the keyword groups KG10, KG20, KG30,... In the response text data list RTL10 shown in FIG. Then, the keyword group KG satisfying the logical operator CC indicating AND is searched from the keyword groups KG10, KG20, KG30. This search process has no particular priority, but is set to be performed in the order of the temporary keyword groups PKG10 and PKG20.

CPU11は、まず、RAM13のデータ領域から、仮キーワードグループPKG10、PKG20、及び、返答文章テキストデータリストRTL10を呼び出す。返答文章テキストデータリストRTL10中の、キーワードグループKG10を構成するキーワードグループKG11は、図8に示すように、WG1、WG2、WG3からなるので、CPU11は、キーワードグループKG11が、仮キーワードグループPKG10(単語グループはWG1、WG4、WG3)と、単語グループWGが一致しないと判定する。従って、キーワードグループKG12を検索することなく、次のキーワードグループKG20を構成するキーワードグループKG21に対する検索に進む。     The CPU 11 first calls the temporary keyword groups PKG10 and PKG20 and the response text data list RTL10 from the data area of the RAM 13. Since the keyword group KG11 constituting the keyword group KG10 in the response text data list RTL10 is composed of WG1, WG2, and WG3 as shown in FIG. 8, the CPU 11 determines that the keyword group KG11 is the temporary keyword group PKG10 (word It is determined that the groups WG1, WG4, and WG3) do not match the word group WG. Accordingly, the search proceeds to the search for the keyword group KG21 constituting the next keyword group KG20 without searching for the keyword group KG12.

キーワードグループKG21は、図8に示すように、単語グループWG1、WG4、WG3からなるので、CPU11は、キーワードグループKG21が、仮キーワードグループPKG10(単語グループはWG1、WG4、WG3)と、単語グループWGの全てが一致すると判定する。しかし、キーワードグループKG20を構成する、もう一方のキーワードグループKG22は、仮キーワードグループPKG20(単語グループはWG5、WG8)と異なり、単語グループWG1、WG7からなるので、CPU11は、キーワードグループKG22が、仮キーワードグループPKG20と、単語グループWGが一致しないと判定する。従って、キーワードグループKG20では、ANDを示す論理演算子CCが満たされないので、次のキーワードグループKG30を構成する、キーワードグループKG31に対する検索に進む。     As shown in FIG. 8, the keyword group KG21 includes word groups WG1, WG4, and WG3. Therefore, the CPU 11 determines that the keyword group KG21 is the temporary keyword group PKG10 (word groups are WG1, WG4, and WG3) and the word group WG. Is determined to match. However, unlike the temporary keyword group PKG20 (word groups are WG5 and WG8), the other keyword group KG22 constituting the keyword group KG20 is composed of the word groups WG1 and WG7. Therefore, the CPU 11 determines that the keyword group KG22 is temporary It is determined that the keyword group PKG20 and the word group WG do not match. Accordingly, in the keyword group KG20, since the logical operator CC indicating AND is not satisfied, the process proceeds to the search for the keyword group KG31 constituting the next keyword group KG30.

キーワードグループKG31は、図8に示すように、単語グループWG1、WG4、WG3からなるので、CPU11は、キーワードグループKG31が、仮キーワードグループPKG10(単語グループはWG1、WG4、WG3)と、単語グループWGの全てが一致すると判定する。そして、キーワードグループKG30を構成する、もう一方のキーワードグループKG32は、仮キーワードグループPKG20と同様、単語グループWG5、WG8からなるので、CPU11は、キーワードグループKG32が、仮キーワードグループPKG20と、単語グループWGの全てが一致すると判定する。従って、キーワードグループKG30では、ANDを示す論理演算子CCが満たされるので、CPU11は、キーワードグループKG30を、返答文章テキストデータリストRTL10から抽出する。     As shown in FIG. 8, the keyword group KG31 includes word groups WG1, WG4, and WG3. Therefore, the CPU 11 determines that the keyword group KG31 is the temporary keyword group PKG10 (word groups are WG1, WG4, and WG3) and the word group WG. Is determined to match. The other keyword group KG32 constituting the keyword group KG30 is made up of the word groups WG5 and WG8, like the temporary keyword group PKG20. Therefore, the CPU 11 determines that the keyword group KG32 is the temporary keyword group PKG20 and the word group WG. Is determined to match. Therefore, since the logical operator CC indicating AND is satisfied in the keyword group KG30, the CPU 11 extracts the keyword group KG30 from the response sentence text data list RTL10.

キーワードグループKG30を抽出すると、キーワードグループKG30に対応する返答文章テキストデータRTDは、図8に示すように、RTD30なので、CPU11は、返答文章処理プログラムRSPに基づいて、キーワードグループKG30に対応する返答文章テキストデータRTD30を、返答文章テキストデータリストRTL10から読み出す。     When the keyword group KG30 is extracted, the response text data RTD corresponding to the keyword group KG30 is RTD30 as shown in FIG. 8, so the CPU 11 responds to the keyword group KG30 based on the response text processing program RSP. The text data RTD30 is read from the response text data list RTL10.

返答文章テキストデータRTD30を読み出すと、CPU11は、画像処理プログラムANPに基づいて、画像処理回路14を介して、図7(b)に示すように、返答文章テキストデータRTD30が示す返答文章RS30の「君の好物は野菜なのか。ヘルシーだな。俺は、野菜は苦手だなーー機会があったら、食事にでも行こう。俺はちょっと忙しいから、また連絡するよ。」を、ディスプレイ3上に表示する。     When the response text text data RTD30 is read, the CPU 11 reads the response text RS30 indicated by the response text text data RTD30 as shown in FIG. 7B via the image processing circuit 14 based on the image processing program ANP. "Your favorite food is healthy, I'm healthy. I'm not good at vegetables-if you have a chance, let's go for a meal. I'm a little busy and I'll contact you again." indicate.

こうして、ディスプレイ3上に返答文章RS30が表示されると、プレーヤは、表示された返答文章RS30を見て、自分が手紙の内容として作成した「自分は野菜が好きだ。君は暇なの?」の入力文章IS10に対応する返答を、コンピュータキャラクタから受けたと認識することになる。     Thus, when the response text RS30 is displayed on the display 3, the player looks at the displayed response text RS30 and creates his own letter as “I like vegetables. Are you free?” It is recognized that a response corresponding to the input sentence IS10 is received from the computer character.

このように、1つの返答文章RSに対して複数のキーワードグループKGが組み合わされているので、「自分は野菜が好きだ。君は暇なの?」の入力文章IS10のように、複数の文で構成された入力文章ISに対応した返答文章RSを、ディスプレイ3上に表示させることが出来る。     As described above, since a plurality of keyword groups KG are combined with one response sentence RS, it is possible to use a plurality of sentences such as the input sentence IS10 “I like vegetables. Are you free?” The response text RS corresponding to the configured input text IS can be displayed on the display 3.

従って、プレーヤは、複数の文で構成される入力文章ISを内容とする手紙を送ると、それぞれの文に対応した、自然な流れの文で構成された返答文章RSを受けることが出来るので、現実世界における手紙の遣り取りのような、自然な会話を再現することが出来る。これにより、コンピュータキャラクタに対するプレーヤの感情移入の度合いを増大させることが出来、ゲームの興趣を高めることが出来る。     Therefore, when the player sends a letter containing the input sentence IS composed of a plurality of sentences, the player can receive a reply sentence RS composed of a natural flow sentence corresponding to each sentence. You can recreate a natural conversation like a letter exchange in the real world. Thereby, the degree of the player's emotion transfer to the computer character can be increased, and the interest of the game can be enhanced.

なお、1つの返答文章テキストデータRTDを、複数のキーワードグループKGに対応させた一例として、図8に示す返答文章テキストデータリストRTL10を示したが、組み合わせるキーワードグループKGの数は、必ずしも2つではなく、3つ以上であってもよい。また、論理演算子CCとしては、AND(論理積)に限らず、OR(論理和)などでもよく、更に、AND(論理積)、OR(論理和)、NOT(論理否定)などの複数の論理演算子CCを組み合わせることも可能である。     As an example in which one response text data RTD is associated with a plurality of keyword groups KG, the response text text data list RTL10 shown in FIG. 8 is shown. However, the number of keyword groups KG to be combined is not necessarily two. There may be three or more. Further, the logical operator CC is not limited to AND (logical product) but may be OR (logical sum) or the like, and a plurality of AND (logical product), OR (logical sum), NOT (logical negation), or the like. It is also possible to combine the logical operators CC.

また、入力文章ISの一例として、複数の文からなる入力文章IS10(「自分は野菜が好きだ。君は暇なの?」)を示したが、入力文章ISは必ずしも複数の文からなる必要はなく、1つの文であってもよい。この場合、1つの文に対応する仮キーワードグループPKGと、それぞれのキーワードグループKGとで、単語グループWGの全てが一致するか否かを判定し、上述と同様に、論理演算子CCを満たす、複数のキーワードグループKGを抽出すればよい。     In addition, as an example of the input sentence IS, an input sentence IS10 composed of a plurality of sentences (“I like vegetables. Are you free?”), The input sentence IS is not necessarily composed of a plurality of sentences. There may be one sentence. In this case, it is determined whether or not all of the word groups WG match between the temporary keyword group PKG corresponding to one sentence and each keyword group KG, and the logical operator CC is satisfied as described above. A plurality of keyword groups KG may be extracted.

例えば、返答文章テキストデータリストRTLに、「君の好物は魚なのか。」を示す返答文章テキストデータRTDを、「魚」、「好き」をそれぞれ意味する単語グループWGからなるキーワードグループKGと、「肉」、「嫌い」をそれぞれ意味する単語グループWGからなるキーワードグループKGとをOR(論理和)で組み合わせた、複数のキーワードグループKGに対応させて、格納しておく。一方、「魚が好き。」及び「肉が嫌い。」の入力文章ISはいずれも、「君の好物は魚なのか。」の返答文章RSに対応して会話が成立するので、いずれの入力文章ISを入力した場合でも、ORを示す論理演算子CCが満たされて、「君の好物は魚なのか。」の返答文章RSがディスプレイ3上に表示されることになる。     For example, in the response text data list RTL, response text data RTD indicating “Is your favorite food a fish?”, A keyword group KG consisting of a word group WG meaning “fish” and “like”, respectively, Stored in correspondence with a plurality of keyword groups KG obtained by combining OR (logical sum) with a keyword group KG including word groups WG each meaning “meat” and “dislike”. On the other hand, both of the input sentences IS “I like fish” and “I don't like meat” have a conversation corresponding to the reply sentence RS of “Is your favorite food a fish?” Even when the text IS is input, the logical operator CC indicating OR is satisfied, and the response text RS of “Is your favorite food a fish?” Is displayed on the display 3.

なお、上述した実施の形態において、ゲームプログラムとして本発明を説明したが、ゲームソフトウェアGSW中の各種プログラムIPP、ANP、… からなるソフトウェアと、該ソフトウェアを機能させるハードウェアを備えるものであれば上述したゲームソフトウェアGSWに限らず、例えばゲーム装置として構成されていても本発明を適用することが出来るのは勿論である。     In the above-described embodiment, the present invention has been described as a game program. However, any software program including various programs IPP, ANP,... In the game software GSW and hardware that allows the software to function are described above. It goes without saying that the present invention can be applied not only to the game software GSW but also configured as a game device, for example.

また、上述した実施の形態において、図1に示す携帯型ゲーム機1をゲーム装置として示したが、同様の構成を備えたものであればこれに限られず、いわゆるアーケードゲーム機などのゲームを主目的とした装置を含むのは勿論であり、さらに携帯電話、パーソナルコンピュータなどもゲーム装置として本発明を適用することが出来る。     In the embodiment described above, the portable game machine 1 shown in FIG. 1 is shown as a game device. However, the game machine is not limited to this as long as it has the same configuration, and a game such as a so-called arcade game machine is mainly used. It goes without saying that the intended device is included, and that the present invention can also be applied to a mobile phone, personal computer, etc. as a game device.

本発明の活用例としては、プレーヤが操作自在なキャラクタとコンピュータ側で自動操作するキャラクタとの間で、文章の遣り取りをすることの出来るゲームソフトウェアに適用することが出来、また、ハードウェアとして、携帯型ゲーム機1のみならず、アーケードゲーム機、携帯電話、パーソナルコンピュータなどにも適用できる。   As an application example of the present invention, it can be applied to game software capable of exchanging sentences between a character that can be operated by a player and a character that is automatically operated on the computer side, and as hardware, The present invention can be applied not only to the portable game machine 1 but also to arcade game machines, mobile phones, personal computers, and the like.

図1は、本発明が適用される携帯型ゲーム機の一例を示す外観図である。FIG. 1 is an external view showing an example of a portable game machine to which the present invention is applied. 図2は、図1に示すゲーム機の制御ブロック図である。FIG. 2 is a control block diagram of the game machine shown in FIG. 図3は、ゲームソフトウェアの構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of the configuration of the game software. 図4は、キャラクタ間で遣り取りされる手紙の内容の一例を示す図で、(a)はプレーヤが作成した入力文章、(b)はコンピュータキャラクタからの返答文章を示す図である。FIG. 4 is a diagram showing an example of the contents of letters exchanged between characters, (a) is an input sentence created by a player, and (b) is a figure showing a response sentence from a computer character. 図5は、単語グループリストの内容の一例を示す図である。FIG. 5 is a diagram showing an example of the contents of the word group list. 図6は、返答文章テキストデータリストの内容の一例を示す図である。FIG. 6 is a diagram showing an example of the contents of the response text data list. 図7は、複数のキーワードグループを論理演算子で組み合わせた場合の、手紙の内容の一例を示す図で、(a)はプレーヤが作成した入力文章、(b)はコンピュータキャラクタからの返答文章を示す図である。FIG. 7 is a diagram showing an example of the contents of a letter when a plurality of keyword groups are combined with a logical operator. (A) is an input sentence created by a player, and (b) is a reply sentence from a computer character. FIG. 図8は、複数のキーワードグループを論理演算子で組み合わせた場合の、返答文章テキストデータリストの内容の一例を示す図である。FIG. 8 is a diagram showing an example of the contents of the response text data list when a plurality of keyword groups are combined with a logical operator.

符号の説明Explanation of symbols

1……コンピュータ、ゲーム装置(携帯型ゲーム機)
3……表現手段、画像表示手段(ディスプレイ)
4……入力手段(入力装置)
11……単語データ抽出手段、仮キーワードグループ設定手段、キーワードグループ検索抽出手段、返答文章データ読み出し表現手段(CPU)
13……単語グループデータファイル、返答文章データファイル(RAM)
ANP……返答文章データ読み出し表現手順、返答文章データ読み出し表現手段(画像処理プログラム)
GSW……ゲームソフトウェア
IS1……入力文章
ITD1……文章データ(入力文章テキストデータ)
ISP……単語データ抽出手順、仮キーワードグループ設定手順、単語データ抽出手段、仮キーワードグループ設定手段(入力文書処理プログラム)
KG、KG1、KG2、… ……キーワードグループ
PKG、PKG1、PKG10、PKG20……仮キーワードグループ
RS1、RS2、… ……返答文章
RSP……キーワードグループ検索抽出手順、返答文章データ読み出し表現手順、キーワードグループ検索抽出手段、返答文章データ読み出し表現手段(返答文書処理プログラム)
RTD1、RTD2、… ……返答文章データ(返答文章テキストデータ)
RTL1、RTL10……返答文章データファイル(返答文章テキストデータリスト)
wd11、wd12、… ……単語データ
WG1、WG2、… ……単語グループ
WGL……単語グループデータファイル(単語グループリスト)
1. Computers, game devices (portable game machines)
3. Expression means, image display means (display)
4 …… Input means (input device)
11... Word data extraction means, provisional keyword group setting means, keyword group search extraction means, reply sentence data reading expression means (CPU)
13 …… Word group data file, response text data file (RAM)
ANP: Response text data reading expression procedure, response text data reading expression means (image processing program)
GSW …… Game software IS1 …… Input text ITD1 …… Text data (input text text data)
ISP: Word data extraction procedure, provisional keyword group setting procedure, word data extraction means, provisional keyword group setting means (input document processing program)
KG, KG1, KG2, ......... Keyword group PKG, PKG1, PKG10, PKG20 ... Temporary keyword group RS1, RS2, ... ...... Reply text RSP ... Keyword group search extraction procedure, reply text data reading expression procedure, keyword group Search extraction means, response text data reading expression means (response document processing program)
RTD1, RTD2, ... Response text data (response text data)
RTL1, RTL10 ... Response text data file (Response text text data list)
wd11, wd12,..., word data WG1, WG2,..., word group WGL, word group data file (word group list)

Claims (4)

入力手段を介して入力された文章データが示す入力文章に対応した返答文章を、表現手段上に表現して、プレーヤが操作自在なキャラクタとコンピュータ側で自動操作するキャラクタとの間で、文章の遣り取りをするゲームを、前記コンピュータに実行させることの出来る、ゲームプログラムにおいて、
前記ゲームプログラムは、前記コンピュータに、
単語の意味を類型化する形で複数の単語データをグループ化した単語グループを、複数格納した、単語グループデータファイルを前記コンピュータの主記憶装置に格納する手順、
前記返答文章を示す、所定のテキストデータから構成される返答文章データを、当該返答文章に対応した複数の前記単語グループからなるキーワードグループに対応させて格納した、返答文章データファイルを前記コンピュータの主記憶装置に格納する手順
前記キーワードグループは、当該キーワードグループに対応した返答文章を手紙の返答として会話を成立させることの出来る入力文章のキーワードを示す単語グループから構成されており、
前記入力手段を介して入力された文章データから複数の前記単語データを抽出する、単語データ抽出手順、
前記単語グループデータファイルを参照して、前記単語データ抽出手順により抽出された複数の単語データが、それぞれいずれの前記単語グループに属するかを判定し、それらの単語データがそれぞれ属すると判定された前記単語グループをまとめて、仮キーワードグループとして設定する、仮キーワードグループ設定手順、
前記返答文章データファイルを参照して、前記仮キーワードグループ設定手順により設定された仮キーワードグループに対応したキーワードグループを検索し、抽出する、キーワードグループ検索抽出手順、
前記キーワードグループ検索抽出手順により抽出されたキーワードグループに対応する、所定のテキストデータから構成される返答文章データを、前記返答文章データファイルから読み出し、該読み出した返答文章データが示す返答文章を、前記表現手段上に表現する、返答文章データ読み出し表現手順、
を実行させるためのプログラムであることを特徴とする、ゲームプログラム
The response text corresponding to the input text indicated by the text data input via the input means is expressed on the expression means, and the text between the character that can be operated by the player and the character that is automatically operated on the computer side is expressed. In a game program capable of causing the computer to execute a game to be exchanged,
The game program is stored in the computer,
A procedure for storing a plurality of word groups obtained by grouping a plurality of word data in a form that classifies the meaning of a word, and storing a word group data file in the main storage device of the computer;
A response text data file storing response text data composed of predetermined text data indicating the response text in association with a keyword group consisting of a plurality of the word groups corresponding to the response text is stored in the computer. A procedure for storing in a storage device ;
The keyword group is composed of a word group indicating a keyword of an input sentence that can establish a conversation with a response sentence corresponding to the keyword group as a reply of a letter,
A word data extraction procedure for extracting a plurality of the word data from sentence data input via the input means;
With reference to the word group data file, a plurality of word data extracted by the word data extraction procedure are determined to belong to which of the word groups, and the word data are determined to belong to the respective word groups Temporary keyword group setting procedure to set word groups together as a temporary keyword group,
A keyword group search extraction procedure for searching and extracting a keyword group corresponding to the temporary keyword group set by the temporary keyword group setting procedure with reference to the response text data file;
Response text data composed of predetermined text data corresponding to the keyword group extracted by the keyword group search extraction procedure is read from the response text data file, and the response text indicated by the read response text data is Reply text data reading expression procedure to express on the expression means,
A game program for executing the game.
前記キーワードグループ検索抽出手順は、前記仮キーワードグループを構成する単語グループの全てを、その単語グループの一部に有するキーワードグループを検索し、抽出する、
ことを特徴として構成した、請求項1記載のゲームプログラム
The keyword group search extraction procedure searches and extracts a keyword group having all of the word groups constituting the temporary keyword group as part of the word group,
The game program according to claim 1, wherein the game program is configured as described above.
前記キーワードグループ検索抽出手順は、前記仮キーワードグループを構成する単語グループの全てと一致した単語グループのみからなるキーワードグループを検索し、抽出する、
ことを特徴として構成した、請求項1記載のゲームプログラム
The keyword group search extraction procedure searches for and extracts a keyword group consisting of only word groups that match all of the word groups constituting the temporary keyword group.
The game program according to claim 1, wherein the game program is configured as described above.
入力手段を介して入力された文章データが示す入力文章に対応した返答文章を、表現手段上に表現して、プレーヤが操作自在なキャラクタとコンピュータ側で自動操作するキャラクタとの間で、文章の遣り取りをするゲームを、前記コンピュータに実行させることの出来る、ゲーム装置において、
前記ゲーム装置は、
単語の意味を類型化する形で複数の単語データをグループ化した単語グループを、複数格納した、単語グループデータファイルと、
前記返答文章を示す、所定のテキストデータから構成される返答文章データを、当該返答文章に対応した複数の前記単語グループからなるキーワードグループに対応させて格納した、返答文章データファイルと、
前記キーワードグループは、当該キーワードグループに対応した返答文章を手紙の返答として会話を成立させることの出来る入力文章のキーワードを示す単語グループから構成されており、
前記入力手段を介して入力された文章データから複数の前記単語データを抽出する、単語データ抽出手段と、
前記単語グループデータファイルを参照して、前記単語データ抽出手段により抽出された複数の単語データが、それぞれいずれの前記単語グループに属するかを判定し、それらの単語データがそれぞれ属すると判定された前記単語グループをまとめて、仮キーワードグループとして設定する、仮キーワードグループ設定手段と、
前記返答文章データファイルを参照して、前記仮キーワードグループ設定手段により設定された仮キーワードグループに対応したキーワードグループを検索し、抽出する、キーワードグループ検索抽出手段と、
前記キーワードグループ検索抽出手段により抽出されたキーワードグループに対応する、所定のテキストデータから構成される返答文章データを、前記返答文章データファイルから読み出し、該読み出した返答文章データが示す返答文章を、前記表現手段上に表現する、返答文章データ読み出し表現手段と、
を有することを特徴とするゲーム装置。
The response text corresponding to the input text indicated by the text data input via the input means is expressed on the expression means, and the text between the character that can be operated by the player and the character that is automatically operated on the computer side is expressed. In a game device capable of causing the computer to execute a game to be exchanged,
The game device includes:
A word group data file storing a plurality of word groups obtained by grouping a plurality of word data in a form that categorizes the meaning of words;
A response text data file storing response text data composed of predetermined text data indicating the response text in association with a keyword group consisting of a plurality of the word groups corresponding to the response text;
The keyword group is composed of a word group indicating a keyword of an input sentence that can establish a conversation with a response sentence corresponding to the keyword group as a reply of a letter,
A word data extracting means for extracting a plurality of the word data from the sentence data input via the input means;
Referring to the word group data file, the word data extracted by the word data extraction means determines which word group each belongs to, and the word data determined to belong to each A temporary keyword group setting means for collectively setting word groups as a temporary keyword group;
A keyword group search extracting means for referring to the response text data file and searching for and extracting a keyword group corresponding to the temporary keyword group set by the temporary keyword group setting means;
Response text data composed of predetermined text data corresponding to the keyword group extracted by the keyword group search extraction means is read from the response text data file, and the response text indicated by the read response text data is A response text data reading expression means to be expressed on the expression means;
A game apparatus comprising:
JP2003313173A 2003-09-04 2003-09-04 GAME PROGRAM AND GAME DEVICE Expired - Fee Related JP3699098B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003313173A JP3699098B2 (en) 2003-09-04 2003-09-04 GAME PROGRAM AND GAME DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003313173A JP3699098B2 (en) 2003-09-04 2003-09-04 GAME PROGRAM AND GAME DEVICE

Publications (2)

Publication Number Publication Date
JP2005080711A JP2005080711A (en) 2005-03-31
JP3699098B2 true JP3699098B2 (en) 2005-09-28

Family

ID=34414212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003313173A Expired - Fee Related JP3699098B2 (en) 2003-09-04 2003-09-04 GAME PROGRAM AND GAME DEVICE

Country Status (1)

Country Link
JP (1) JP3699098B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5212204B2 (en) * 2009-03-19 2013-06-19 トヨタ自動車株式会社 Response generating apparatus and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001314653A (en) * 2000-05-09 2001-11-13 Konami Computer Entertainment Japan Inc Game apparatus, memory card apparatus, and recording medium

Also Published As

Publication number Publication date
JP2005080711A (en) 2005-03-31

Similar Documents

Publication Publication Date Title
CN110381388B (en) Subtitle generating method and device based on artificial intelligence
CN112084305B (en) Search processing methods, devices, terminals, and storage media for use in chat applications
US9552353B2 (en) System and method for generating phrases
KR20090085376A (en) Service method and device using speech synthesis of text message
JPH11143616A (en) Character communication device
CN107040452B (en) Information processing method and device and computer readable storage medium
CN112883181A (en) Session message processing method and device, electronic equipment and storage medium
JP6682488B2 (en) Command processing program, image command processing device, and image command processing method
US11267121B2 (en) Conversation output system, conversation output method, and non-transitory recording medium
KR102738804B1 (en) The Method Of Providing A Character Call, Computing System For Performing The Same, And Computer-Readable Recording Medium
CN117743560A (en) Multi-role intelligent dialogue method, device, electronic equipment and storage medium
CN108874789B (en) Statement generation method, device, storage medium and electronic device
CN115237301B (en) Method and device for processing barrage in interactive novel
JP3699098B2 (en) GAME PROGRAM AND GAME DEVICE
WO2021229692A1 (en) Avatar control program, avatar control method and information processing device
CN113705153A (en) Information processing method, device, equipment and storage medium
Plummer-Fernandez The art of bots: A practice-based study of the multiplicity, entanglements and figuration of sociocomputational assemblages
CN112000254A (en) Corpus resource playing method and device, storage medium and electronic device
CN117101122A (en) Control method, device, terminal and storage medium for virtual interaction object
KR20080060909A (en) Method for synthesizing and outputting speech according to sentence state and speech synthesizer using same
HK40046468A (en) Method and apparatus for processing conversation message, electronic device and storage medium
WO2026066295A1 (en) Conversation content generation method and apparatus, and device, storage medium and program product
HK40025817A (en) Method for generating sentences, device, storage medium and electronic device
JP2026041368A (en) system
JP2026015017A (en) system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050322

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050519

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050621

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050706

R150 Certificate of patent or registration of utility model

Ref document number: 3699098

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110715

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110715

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120715

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130715

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130715

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140715

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees