CN109985382A - Script execution, device, equipment and the storage medium of plot node - Google Patents

Script execution, device, equipment and the storage medium of plot node Download PDF

Info

Publication number
CN109985382A
CN109985382A CN201910267396.9A CN201910267396A CN109985382A CN 109985382 A CN109985382 A CN 109985382A CN 201910267396 A CN201910267396 A CN 201910267396A CN 109985382 A CN109985382 A CN 109985382A
Authority
CN
China
Prior art keywords
plot
node
candidate
script
subsequent
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.)
Pending
Application number
CN201910267396.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910267396.9A priority Critical patent/CN109985382A/en
Publication of CN109985382A publication Critical patent/CN109985382A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories

Abstract

This application discloses script execution, device, equipment and the storage mediums of a kind of plot node, are related to internet area.The device includes plot control module, scenario data library module, plot script virtual machine module, plot display module etc., game scenario option abundant can be provided for player, and according to the corresponding plot content of the game options of player deduction.The application further relates to a kind of script execution of plot node based on above-mentioned apparatus, this method can increase and decrease game scenario option on demand, each player can be made to see different plot options, can also make the same player in the state of difference it can be seen that different plot options.The online game designed by the systems and methods has more feeling of freshness for player, increases game interest.

Description

Script execution, device, equipment and the storage medium of plot node
Technical field
This application involves internet area, in particular to a kind of script execution of plot node, device, equipment and deposit Storage media.
Background technique
Disparate networks game is installed in the terminals such as mobile phone, tablet computer.
In the operational process of a kind of online game, needs to show game scenario to user, allow users to through a system The game operation of column pushes development of action, completes Mission Objective.In game process, user triggers a game scenario line, So since plot to each plot node that plot terminates be it is pre-set, pass through sequence execute one it is continuous acute Plot point shows a complete plot.And above-mentioned one continuous plot node is single line execution, that is, at first After plot node is completed, second plot node is necessarily triggered, and so on, until plot terminates.
The setting of the above-mentioned plot node to game, the corresponding plot of each plot node on a plot line, Associated upper lower node is constant, and development of action can only develop toward the direction, since the service ability of server is limited, when big When measuring user and entering the plot, the case where may cause server Caton.
Summary of the invention
The embodiment of the present application provides script execution, device, equipment and the storage medium of a kind of plot node, can be with Solve the problems, such as the server Caton when a large number of users enters game.The technical solution is as follows:
According to the one aspect of the application, a kind of script execution of plot node is provided, this method comprises:
In the operational process of application program, the script of the first plot node is executed, in the script of the first plot node Node identification including at least two subsequent plot nodes;
According to node identification from least two subsequent plot nodes, candidate plot node is determined;
The second plot node is determined from candidate plot node, which is the next of the first plot node A execution node;
Execute the script of the second plot node.
According to the another aspect of the application, a kind of script execution device of plot node is provided, which includes:
Execution module, for executing the script of the first plot node, first plot in the operational process of application program It include the node identification of at least two subsequent plot nodes in the script of node;
Determining module, for from least two subsequent plot nodes, determining candidate plot node according to node identification;
Determining module, for determining the second plot node from candidate plot node, which is first Next execution node of plot node;
Execution module, for executing the script of the second plot node.
According to the another aspect of the application, a kind of terminal is provided, which includes:
Memory;
The processor being connected with memory;
Wherein, processor is configured as loading and executing executable instruction to realize such as above-mentioned first aspect and its optional reality Apply the script execution of plot node described in example.
According to the another aspect of the application, a kind of computer readable storage medium, above-mentioned computer-readable storage are provided At least one instruction, at least a Duan Chengxu, code set or instruction set, above-mentioned at least one instruction, at least one are stored in medium Duan Chengxu, code set or instruction set are as processor loads and executes to realize as described in above-mentioned first aspect and its alternative embodiment Plot node script execution.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
In the operational process of application program, by from least two subsequent plot nodes of the first plot node, really Make candidate plot node;The second plot node is determined from candidate plot node later, which is first Next execution node of plot node;The second plot node is executed after executing the first plot node.Above-mentioned plot node Script execution in, plot node includes at least two subsequent plot nodes, then a plot may include at least Two branch directions can develop towards different directions after a large number of users enters the plot, avoid all users only The case where one plot line can be used the overload for making server, lead to Caton.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural schematic diagram for the computer system that one exemplary embodiment of the application provides;
Fig. 2 is the structural schematic diagram for the plot system that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart of the script execution for the plot node that one exemplary embodiment of the application provides;
Fig. 4 is the structural schematic diagram of the script for the plot node that one exemplary embodiment of the application provides;
Fig. 5 is the flow chart of the script execution for the plot node that another exemplary embodiment of the application provides;
Fig. 6 is the structural schematic diagram for the branching storyline that one exemplary embodiment of the application provides;
Fig. 7 is the structural schematic diagram for the branching storyline that another exemplary embodiment of the application provides;
Fig. 8 is the interface schematic diagram of the script execution for the plot node that one exemplary embodiment of the application provides;
Fig. 9 is the interface signal of the script execution for the plot node that another exemplary embodiment of the application provides Figure;
Figure 10 is the flow chart of the script execution for the plot node that another exemplary embodiment of the application provides;
Figure 11 is the flow chart of the script execution for the plot node that another exemplary embodiment of the application provides;
Figure 12 is the structural schematic diagram for the branching storyline that another exemplary embodiment of the application provides;
Figure 13 is the block diagram of the script execution device for the plot node that one exemplary embodiment of the application provides;
Figure 14 is the structural schematic diagram for the electronic equipment that one exemplary embodiment of the application provides;
Figure 15 is the structural schematic diagram for the server that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
To this application involves several nouns carry out brief introduction:
Plot node: in the plot design of game, plot merogenesis is shown.Wherein, each section plot is individual one Section plot, while being associated with upper and lower section plot, each section plot is defined as plot node.In some embodiments, a play Plot point may include n subsequent plot nodes.That is, being provided with n plot branch, Ke Yitong on the plot node At least one of the attribute information mode for crossing the selection operation of user, the current schedules of game, game role, determines with n A plot branch in plot branch moves towards as plot, and it is corresponding that said one plot branch is executed after the plot node The corresponding subsequent plot node of the plot node, n is positive integer.In addition, upper and lower associated a string of plots node, it can Realize that the complete plot of a plot branch is shown.
Primary role: refer to mobilizable object of the user's control in virtual environment;Optionally, which can be with It is at least one of virtual portrait, virtual animal, cartoon character.Wherein, virtual environment is that application program is run at the terminal When display (or provide) virtual environment, which can be the simulated environment to real world, is also possible to half emulation Semifictional environment can also be pure imaginary environment.Optionally, it is virtual to can be two-dimensional virtual environment, 2.5 dimensions for virtual environment Any one in environment and three-dimensional virtual environment.
Machine roles: refer to mobilizable object that non-user controls in virtual environment;Optionally, which is Non-player role (Non-Player Character, NPC), NPC can be virtual portrait, virtual animal, in cartoon character It is at least one.
Role state information: refer to the status information of primary role, the status information is for determining whether plot node accords with Close execution condition.Optionally, role state information includes the corresponding plot progress of primary role, plot completeness, primary role At least one of attribute information.
LUA virtual machine: it is the tool for parsing LUA code.LUA code is a kind of scripting language, and parsing LUA code is Refer to the computer language that LUA code analysis can be identified and be executed for computer.
Referring to FIG. 1, showing the structural block diagram of the computer system of exemplary embodiment offer.The department of computer science System includes: terminal 120 and server 140.
Terminal 120 can be mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable Computer and desktop computer etc..
Application program 122 is installed in the terminal 120;Optionally, which can be online games. The application program 122 have account number login function, user can in application program 122 registering and logging oneself user's account Number;It optionally, may include one or more primary role under the user account number.For example, the application program 122 is in gauze Network game, user log in one's own player's account number in the online game, may include under player's account number one or Multiple player roles.
It include the script of n plot node, as shown in fig. 1, the script quilt of above-mentioned plot node in the application program 122 It executes to realize one or more plot branch, n is positive integer.
Server 140 is connected with terminal 120 by wired or wireless network.Server 140 includes database 142, number According to the data information for being stored with application program 122 in library 142, which includes the user account number letter in application program 122 At least one of breath, the role state information under user account number and role attribute information.
When running application program 122 in terminal 120, terminal 120 passes through cable network or wireless network from server Data information is obtained in 140 database 142, for executing the script of plot node.
Referring to FIG. 2, showing the block diagram of the plot system of one exemplary embodiment of the application offer, the plot system For realizing a kind of script execution of plot node provided by the present application, which includes: terminal 220 and server 240;It include plot controller module 222, LUA virtual machine 224, display module 226, scenario data library 228 and sheet in terminal 220 Ground database 230, server 240 include database 242.
When the plot system executes the script realization method of plot node, by plot controller module 222 from scenario data The script that plot node is read in library 228, the script of the plot node of reading is loaded onto running memory.Wherein, plot number According to the script for n plot node for being stored with application program in library 228;
It optionally, include using the program statement of LUA written in code, in the application program also in the script of the plot node It is embedded with LUA virtual machine 224, LUA virtual machine 224 parses and executes the LUA code in the script of plot node;Optionally, LUA Virtual machine 224 obtains the data information of application program from local data base 230, executes plot node according to above-mentioned data information Script in LUA code;Wherein, the data information in local data base 230 is that terminal 220 passes through wired or wireless network It is acquired from database 242;
LUA virtual machine 224 execute LUA code, by the corresponding plot of LUA code by display module 226 terminal 220 use Family is shown on interface.Optionally, display module 226 include user interface (User Interface, UI) submodule 2262, Scene submodule 2264 and role's submodule 2266;Wherein, UI submodule 2262 is corresponding for plot node displayed on the terminals User interface;Scene submodule 2264 is used to show the scenic picture of the corresponding virtual environment of plot node;Role's submodule 2266 for showing primary role in the scenic picture of virtual environment.
Referring to FIG. 3, the flow chart of the script execution of the plot node of exemplary embodiment offer is provided, For being applied in above-mentioned Fig. 1 or system shown in Fig. 2 in this way, this method comprises:
Step 301, in the operational process of application program, the script of the first plot node is executed.
Application program is installed, optionally, which can be online games in terminal.In the application program Script including n plot node, n are positive integer.
A plot node in above-mentioned n plot node is triggered, and the plot node being triggered is determined as the first play Plot point executes the script of the first plot node.It wherein, include at least two subsequent plot sections in the script of the first plot node The node identification of point, which is the mark for indicating subsequent plot node.
Step 302, candidate plot node is determined from least two subsequent plot nodes according to node identification.
Terminal obtains the script of at least two subsequent plot nodes according to node identification, according at least two subsequent plot sections The script of point determines at least one candidate plot node from least two subsequent plot nodes.
Optionally, terminal is according to the execution condition in the script according to each plot node from least two subsequent plot sections At least one candidate plot node is determined in point;
Or, terminal is determined from least two subsequent plot nodes according to the priority in the script of each plot node At least one candidate plot node;
Or, terminal determines at least one candidate plot node at random from least two subsequent plot nodes;
Or, trigger action determines at least one time from least two subsequent plot nodes to terminal according to the user's choice Select plot node.
Step 303, the second plot node is determined from candidate plot node.
Terminal determines the second plot node from least one candidate plot node.
Step 304, the script of the second plot node is executed.
Terminal executes the script of the second plot node.Wherein, the first plot node can be j-th of plot node, then and Two plot nodes are+1 plot node of jth, and j is positive integer.
In conclusion the script execution of plot node provided in this embodiment, in the operational process of application program, By determining candidate plot node from least two subsequent plot nodes of the first plot node;Later from candidate plot The second plot node is determined in node, which is next execution node of the first plot node;It is executing The second plot node is executed after first plot node.In the script execution of above-mentioned plot node, a plot node packet At least two subsequent plot nodes are included, then a plot may include at least two branch directions, enter the play in a large number of users It can develop towards different directions after feelings, solve the load of the server when all user's only one plot lines are available Again, the case where leading to server Caton.
In addition, this method makes user can choose different plots, the feeling of freshness of user is increased, game is also increased Interest.
It should be noted that the structure of the script of above-mentioned plot node can be as shown in figure 4, the plot node be dialogue section Point (Dialogue Node), the dialogue node include node identification (Identity, ID), dialogue index (Dialogue Text ID), role (Actor), execute condition (Condition), be scripted code (Script), subsequent plot node (Next), preferential Grade (Priority) and plot nodename (Name).
Wherein, ID indicates that the mark of the corresponding node of each section of plot, the mark are indicated using integer, for example, The ID of start node is 0;
It is corresponding that the ID for including in Dialogue Text ID refers to that dialogue ID, dialogue ID are used to search from database Conversation content, wherein above-mentioned Dialogue Text ID is indicated using integer;
Actor refers to role's title of the dialogue node, and role's title is for searching corresponding Role Information, Jiao Sexin Breath includes at least one of role's head portrait, character types, role attribute;Terminal can determine the role according to role's title It is primary role or machine roles;Optionally, primary role can be player role, and machine roles can be NPC;
Condition refers to the execution condition of the dialogue node, with one section of string representation, is used for from current plot node Subsequent plot node in determine candidate plot node, alternatively, determining the second plot node from candidate plot node;It can Selection of land, the character string are Lua code character strings;
Script refers to the scripted code that above-mentioned one section of plot is shown on the plot node, with one section of character string come table Show;Optionally, which is Lua code character string;
Next is an array, and recording in the form of a list in the array has the corresponding subsequent plot node of the plot node ID, wherein the ID of subsequent plot node use integer representation;
Priority refers to the priority of the plot node, in some embodiments, determines the plot section by priority The sequencing that point executes;
Name refers to the plot nodename of the plot node;Optionally, when the dialogue that the plot node is primary role When node, the plot nodename of the plot node displayed on the terminals.
Based on Fig. 3, the content of step 302 " according to node identification from least two subsequent plot nodes, determines candidate Plot node " can be realized by following steps 3021 to step 3023, as shown in Figure 5:
Step 3021, the role state information of primary role is obtained.
Application program is correspondingly arranged on server, includes database in the server, is stored with application program in database In primary role role state information, terminal by wired or wireless network from server acquisition primary role angle Color status information.
Optionally, the role state information of primary role includes at least one of plot progress, plot completeness.
Step 3022, the script of at least two subsequent plot nodes is obtained according to node identification.
Terminal obtains the script of at least two subsequent plot nodes according to node identification.Optionally, at least two subsequent play It include corresponding execution condition in the script of each subsequent plot node in plot point.Wherein, different subsequent plot node Execution condition in script may be the same or different.
Step 3023, from least two subsequent plot nodes, determine that role state information meets the time of execution condition Select plot node.
Terminal obtains the return value of script in the script of the subsequent plot node of role state information input at least two; It is the subsequent plot node of target value by return value, is determined as candidate plot node;Wherein, target value is used to indicate role Status information meets the execution condition of subsequent plot node.
Schematically, role state information is executed one by script structure as shown in connection with fig. 4, terminal Execution condition C ondition in the script of subsequent plot node, obtains a script return value;When return value is target value When, then the implementing result of Condition is true, which is determined as candidate plot node;When return value not When being target value, then the implementing result of Condition is false, which cannot function as candidate plot node.
In some embodiments, role state information may include at least one of plot progress, plot completeness.It can Selection of land, role state information include plot progress, and accordingly, execution condition includes that plot progress meets target progress.For example, the The plot progress of one plot node is 0, then current plot progress should be 1, if the target progress being arranged in subsequent plot node It is 1, current plot progress meets the target progress in subsequent plot node, then the subsequent plot node is confirmed as the second plot The candidate plot node of node;If the target progress being arranged in subsequent plot node is 2, current plot progress does not meet subsequent play Target progress in plot point, then candidate's plot node cannot function as the candidate plot node of the second plot node.Wherein, when It is i+1 by current plot progress record if the plot progress of the first plot node is i when terminal executes the first plot node, The subsequent plot node of the first plot node judges whether to meet execution condition, current plot tempo instructions according to current schedules The plot progress of second plot node, i are integer.
Optionally, role state information includes plot completeness, and accordingly, execution condition includes that plot completeness meets mesh Mark completeness;Wherein, target completeness is to be not carried out, alternatively, having executed and not completed.For example, the first plot node is subsequent The plot completeness being arranged in plot node is 0, records the corresponding each plot of each user account number in the database of server The plot completeness of node determines the subsequent plot node if the plot completeness of the subsequent plot node of record is 0 For the candidate plot node of the second plot node;If the plot completeness of the subsequent plot node of record is 1, the subsequent play Plot point cannot function as the candidate plot node of the second plot node.Wherein, " 0 " indicates to be not carried out or executed and not complete At;" 1 " then indicates to have executed and be completed.
By taking application program is a kind of online network game as an example, illustrate that execution condition is that plot progress meets target progress Situation, as shown in fig. 6, show the structural schematic diagram of the branching storyline of condition guiding, originate in figure plot node < START>be directed to three subsequent plot nodes, respectively<saving 1 branch of point>,<saving 2 branches of point>,<saving 3 branches of point>. Each subsequent plot node has different execution conditions [Condition], for example, executing the code of condition [Condition] For " GetCurStep ()==x ", then judge that plot is moved towards by current plot progress;Wherein, in<saving 1 branch of point> X be 1, the x in<save point 2 branches>is 2, and the x in<saving 3 branches of point>is 3, if current plot progress is 1,<save Point 1 branch > in GetCurStep () function be performed after return value be 1, execute condition [Condition] differentiation knot Fruit is " true ";And the return value after GetCurStep () function is performed in<saving 2 branches of point>,<saving 3 branches of point> It is 0, the differentiation result for executing condition [Condition] is " false ";Indicate<save point 1 branch>be current plot node it The second plot node afterwards after that is, current plot node is finished, executes node<saving 1 branch of point>.
Wherein, for the script for<saving 1 branch of point>for realizing function " fortune mirror ", script { script } is correspondingly arranged on " fortune The realization code in border ";For realizing function " play sound effect ", script { script } is correspondingly arranged the script of<saving 2 branches of point> There is the realization code of " play sound effect ";The script of<saving 3 branches of point>is for realizing function " NPC is mobile ", script { script } It is correspondingly arranged on the realization code of " NPC is mobile ".Node<saving 1 branch of point>,<saves point 3 branches>nothing at<saving 2 branches of point> Both candidate nodes are marked with [END].
In addition, showing in the figure as shown in fig. 7, show the structural schematic diagram of the branching storyline of another condition guiding Content elaborate that a kind of execution condition includes that plot progress meets target progress and plot completeness meets target completeness Situation, starting plot node<START>is directed to three subsequent plot nodes in figure, respectively<sharing>,<using gold coin>,<use Stage property exchange >.The subsequent plot node of above three is the dialogue node of primary role, plot trend be according to user at the terminal Plot selection operation determine.Before selection executes an any of the above-described subsequent plot node, need to judge current plot Whether progress meets the execution condition of the subsequent plot node of above three;For example, the code of the condition of execution is " GetCurStep ()==x ", and the x value of the subsequent plot node of above three is 1, if current plot progress is 1, the subsequent play of above three Plot point is candidate plot node, since above three candidate's plot node is the dialogue node of primary role, then in terminal Three button controls of upper display respectively correspond the plot node for showing above three candidate's plot node on three button controls Title, with reference to Fig. 8, the plot nodename of corresponding display is plot node<sharing>on the button control 21 of user interface 20 " participate in sharing and get the good gift of the warm heart ", the play of plot node<with gold coin>corresponding display on the button control 22 of user interface 20 Plot point is entitled " above for one bag of copper coin to show sincerity ", button control of the plot node<being exchanged with stage property>in user interface 20 The plot nodename of corresponding display is " fox goblin is granted in a good gift of selection " on 23.
Wherein, starting plot node<START>is current plot node, includes NPC in the script of current plot node, with And the dialogue index of the conversation content of NPC also shows that NPC talks with, such as Fig. 8 institute when executing starting plot node<START> Show, NPC dialogue 24 is also shown in user interface 20 and " is moved for present or money or selection with sincerity in selection Fox goblin, different selections may will affect the result of solution label!".Game table is also stored in terminal, which is root According to the table of the corresponding storage part dialog of Dialogue Text ID.Schematically, table 1 is a game table, above-mentioned starting Dialogue Text ID is 1 in the script of plot node, then NPC dialogue 24 is shown in user interface 20.
Table 1
The selection behaviour triggered on any one corresponding control button in three candidate plot nodes is received at the terminal Make, then after terminal receives corresponding plot selection signal, the candidate plot node of selection be determined as the second plot node, The second plot node is executed, for example, receiving on " above for one bag of copper coin to show sincerity " corresponding button control of this option Selection operation, then terminal executes plot node<using gold coin>according to corresponding plot selection signal, obtains stage property B;It receives in " ginseng The good gift of the warm heart is got with sharing " selection operation on the corresponding button control of this option, then plot node<sharing>is executed, is obtained Obtain stage property A;The selection operation on " fox goblin is granted in a good gift of selection " corresponding button control of this option is received, then is executed Plot node<is exchanged>with stage property, obtains stage property C.Acquisition stage property A, the code for obtaining stage property B and acquisition stage property C write on each In respective items { script } in the script of candidate plot node.
It should also be noted that, the execution condition of three subsequent nodes further includes that meet target complete for plot completeness in Fig. 7 Cheng Du, target completeness is to be not carried out, alternatively, having executed and to complete;Plot completeness, which meets target completeness, indicates one Plot node is not performed, alternatively, being performed but failing to execute completion.When three subsequent plot nodes in Fig. 7 When current plot progress meets the plot progress being arranged in execution condition, it is also necessary to judge the plot of each subsequent plot node Completeness;It is 0 for example, if the plot completeness of a subsequent plot node is 0, by the subsequent play with target completeness Plot point is determined as candidate plot node, if the plot completeness of the subsequent plot node is 1, then it represents that the subsequent plot node Completion is executed and has executed, which is not candidate plot node.Optionally, when candidate plot node is master control When the dialogue node of role, the plot node for being determined as candidate plot node is only shown at the terminal.For example, plot node < point Enjoy>,<with gold coin>, the progress being arranged in the execution condition of<being exchanged with stage property>matched with current schedules,<using gold coin>,<use Stage property exchange>plot completeness be 0, and plot node<share>plot completeness be 1;The execution condition then<shared> The implementing result that [condition] is returned is " false ", the execution condition [condition] of<with gold coin>,<being exchanged with stage property> The implementing result of return is " true ", and general is<with gold coin>,<being exchanged with stage property>is determined as candidate plot node, on a user interface Show the corresponding options of candidate plot node, as shown in figure 9, in user interface 25 display be marked with " above for one bag of copper coin with Show sincerity " button control 22 and be marked with the button control 23 of " fox goblin is granted in a good gift of selection ", but do not show plot The corresponding button control of node<sharing>.
Based on Fig. 3, determine that the second plot node may include following two method from candidate plot node:
First, the second plot node is determined according to the priority of candidate plot node;Schematically, when candidate plot node For at least two and each candidate plot node is there are when corresponding priority, and the candidate plot node of highest priority is determined For the second plot node;
Second, it operates determine the second plot node according to the user's choice;Schematically, when candidate plot node is at least At two, the plot selection interface for carrying out selection to candidate plot node is shown;Receive the play in plot selection interface Feelings selection signal;The second plot node is determined according to plot selection signal.
According to above two method, step 303 can be replaced with to step 3031 to step 3036, illustrate to determine that second is acute The process of plot point, as shown in Figure 10, steps are as follows:
Step 3031, judge the first plot node whether be machine roles dialogue node.
When the first plot node is not the dialogue node of machine roles, step 3036 is executed.Optionally, when the first plot When node is the dialogue node of non-dialogue node or primary role, step 3036 is executed.
When the first plot node is the dialogue node of machine roles, step 3032 is executed.
Step 3032, judge the dialogue node that whether there is primary role at least two candidate plot nodes.
When the dialogue node of primary role is not present at least two candidate plot nodes, step 3036 is executed.
When, there are when the dialogue node of primary role, executing step 3033 at least two candidate plot nodes.
Schematically, the content in conjunction with described in step 3031 and step 3032 includes in the script of first plot node Actor and Dialogue Text ID;As the member of Actor and Dialogue Text ID in the script of the first plot node When variable is not sky, terminal determines that the role in the first plot node is primary role or machine roles according to Actor.When When role in one plot node is primary role, then the first plot node is not the dialogue node of machine roles, executes step 3036;When the role in the first plot node is machine roles, then the first plot node is the dialogue node of machine roles, eventually Detect the Actor and Dialogue Text ID in the script of candidate plot node in end.When candidate plot node Actor with The member variable of Dialogue Text ID is sky, or is detected to obtain candidate plot section according to the Actor of candidate plot node Point is the dialogue node of machine roles, executes step 3036;When candidate plot node is the dialogue node of primary role, execute Step 3033.
Step 3033, the plot selection interface for carrying out selection to candidate plot node is shown.
Candidate plot node is the dialogue node of primary role, includes plot nodename in candidate's plot node Name;Terminal shows plot selection interface, includes the corresponding button control of candidate plot node, button control in plot selection interface The Name of candidate plot node is shown on part.
Step 3034, the plot selection signal in plot selection interface is received.
User carries out trigger action to one in the plot selection interface of terminal candidate plot node corresponding button control, eventually Termination receives the plot selection signal in plot selection interface, which is used for from least two candidate plot nodes In determine the second plot node.
Step 3035, the second plot node is determined according to plot selection signal.
The candidate plot node that terminal indicates plot selection signal is determined as the second plot node.
Schematically, such as Fig. 8, the user interface 20 of one embodiment offer is shown, which is a plot Selection interface, shows the corresponding button control of three candidate plot nodes in the user interface 20, respectively button control 21, Button control 22 and button control 23.When user selects trigger button control 21, then terminal is by the corresponding time of button control 21 Plot node<sharing>is selected to be determined as the second plot node, it is corresponding to refer to Fig. 7.
Step 3036, corresponding preferential according to existing for candidate plot node each at least two candidate plot nodes Grade, is determined as the second plot node for the candidate plot node of highest priority.
It include priority in the script of candidate plot node, terminal is by highest priority at least two candidate plot nodes Candidate plot node be determined as the second plot node.
Figure 11 is please referred to, the flow chart of the execution method of the plot node of illustrative examples offer is provided, it should Method is applied in terminal, this method comprises:
401, starting.
402, the plot node that starting is arranged is current plot node.
One plot starting, sets current plot node for the plot node of starting.Wherein, the starting of each plot The ID of plot node be defaulted as 0, and the starter node is unique.
403, execute the scripted code in current plot node.
Execute the scripted code in current plot node;Optionally, the structural schematic diagram of the script in corresponding diagram 4, currently It include script in the script of plot node, the member variable of the script is Lua code;Above-mentioned Lua code is performed to open up Show the corresponding plot of current plot node.
Optionally, the content of the script instruction in plot node can be atomic operation, and atomic operation can be role Behavior, such as role dance animation or role walking animation.The atomic operation provides routine interface by application program, It can custom-configure.
404, traversal detects the execution condition of each subsequent plot node.
It include the ID of subsequent plot node in the script of current plot node, terminal is obtained according to the ID of subsequent plot node The script of subsequent plot node traverses each subsequent plot node, to detect the execution condition of each subsequent plot node;Signal Property, terminal judges whether the role state information of subsequent plot node meets execution condition;Role state information is met and is held The subsequent plot node of row condition is determined as candidate plot node.
For example, terminal executes the LUA code in the Condition of subsequent plot node whether to judge role state information Meet execution condition.When the implementing result of the Condition of a subsequent plot node is true, terminal is by the subsequent plot Node is determined as candidate plot node;When the implementing result of above-mentioned Condition is false, which is not Candidate plot node.
405, candidate plot node is sorted by priority.
Terminal is candidate acute at least one according to the priority in each candidate plot node after executing step 404 Feelings node sequencing;It is descending or ascending that the sequence of arrangement can be priority.
406, judge current plot node whether the dialogue node for being NPC.
Terminal judge current plot node whether the dialogue node for being NPC, if current plot node is the dialogue section of NPC Point, thens follow the steps 407;If current plot node is not the dialogue node of NPC, 413 are thened follow the steps.
407, whether there is the dialogue node of player in candidate plot node.
Terminal judges the dialogue node that whether there is player in candidate plot node, when there are players in candidate plot node Dialogue node when, execute step 408;When the dialogue node of player is not present in candidate plot node, step 411 is executed.
408, show the corresponding interface UI of the dialogue node of player.
The corresponding interface UI of the dialogue node of the player shown in terminal includes button control, each button control is corresponding One candidate plot node.
409, wait player to click the button control on the interface UI.
410, the candidate plot node that setting player chooses is current plot node.
Player clicks a control button on the interface UI, and terminal receives the plot selection signal on the control button, will The corresponding candidate plot node of the control button is determined as current plot node.
411, show the corresponding interface UI of the dialogue node of NPC.
412, wait player to click the interface UI.
Player clicks any point on the interface UI, and terminal receives the trigger signal on the interface UI, is believed according to above-mentioned triggering Number execute step 413.
413, judge whether current plot node has subsequent plot node.
If current plot node has subsequent plot node, 414 are thened follow the steps;If current plot node does not have subsequent plot Node thens follow the steps 415.
414, the candidate plot node that highest priority is arranged is current plot node.
415, terminate.
By taking the script execution of above-mentioned plot node is applied in an online games as an example, a plot is illustrated Realization process, please refer to Figure 12, which triggered by player, terminal execute starting plot node<START>, delete When triggering the alternative events when branching storyline except player, forbid player role mobile, and deleting player and trigger the branching storyline Interactive icons, above-mentioned event by respective items in script { script } code realize;The branching storyline further includes two points It further include two candidate plot nodes, above-mentioned two candidate's plot node is two masters after branch, that is, starting plot node Control the dialogue node of role.Two options displayed on the terminals respectively correspond " selection dialogue " and " selection fight ";When user touches When hair " selection dialogue " corresponding option, plot node<saving progress>is executed, continues to execute plot node<fight triumph later >, then this branching storyline displaying finishes.When user's triggering " selection fight " corresponding option, plot node < entrance war is executed Bucket>, and terminate in next plot node<fight?>judge whether fight terminates;When fight is not finished, execute plot node < Be not finished >;When fighting triumphantly, then plot node<fight triumph>is executed;When fight failure, then plot node < war is executed Bucket failure>, and further include subsequent plot node<spending bewitching lines>after plot node<fight failure>, execute plot node<flower Bewitching lines >.
Schematically, above-mentioned branching storyline can be the plot of the acquisition herbal medicine of player's triggering;When player wants acquisition grass When medicine, triggering with NPC spend goblin dialogue, while conversation content is shown in dialog procedure, in terminal, show provide by playing Two options " dialogue " of family's selection and " fight ".When player selects " dialogue ", player needs to listen NPC that goblin is spent to say one section of word, After end-of-dialogue, player will obtain herbal medicine, while save plot progress.When player selects " fight ", player needs and NPC Goblin is spent to fight, player fights and triumphantly then obtains herbal medicine, while saving plot progress;Player, which fights to fail, then shows Hua Yaotai Word, this is spent bewitching lines to can be NPC and spends the bewitching content sneered at, provoked to player.In addition, player fights after failure, do not record Plot progress, player can trigger the branching storyline again.
Figure 13 is please referred to, is the script execution dress for the plot node that an exemplary embodiment shown in the application provides It sets, which can be implemented in combination with some or all of server by software, hardware or the two, device installation There is application program, which includes execution module 501 and determining module 502;
Execution module 501, in the operational process of application program, executing the script of the first plot node, first is acute It include the node identification of at least two subsequent plot nodes in the script of plot point;
Determining module 502, for from least two subsequent plot nodes, determining candidate plot section according to node identification Point;Determine that the second plot node, the second plot node are next execution of the first plot node from candidate plot node Node;
Execution module 501, for executing the script of the second plot node.
In some embodiments, determining module 502, comprising:
Acquisition submodule 5021, for obtaining the role state information of primary role;At least two are obtained according to node identification The script of a subsequent plot node includes the corresponding execution condition of subsequent plot node in the script of subsequent plot node;
Submodule 5022 is determined, for determining that role state information meets and holding from least two subsequent plot nodes The candidate plot node of row condition.
In some embodiments, it determines submodule 5022, is used for the subsequent plot of role state information input at least two In the script of node, the return value of script is obtained;It is the subsequent plot node of target value by return value, is determined as candidate plot Node;Wherein, target value is used to indicate the execution condition that role state information meets subsequent plot node.
In some embodiments, role state information includes plot progress, and execution condition includes that plot progress meets target Progress;
And/or role state information includes plot completeness, execution condition includes that plot completeness meets target completion Degree;Wherein, target completeness is to be not carried out, alternatively, having executed and not completed.
In some embodiments, submodule 5022 is determined, for being at least two and each candidate when candidate plot node The candidate plot node of highest priority is determined as the second plot node there are when corresponding priority by plot node;
Or, showing that the plot for carrying out selection to candidate plot node is selected when candidate plot node is at least two Select interface;Receive the plot selection signal in plot selection interface;The second plot node is determined according to plot selection signal.
In some embodiments, candidate plot node is at least two;
Submodule 5022 is determined, for being the dialogue node of non-dialogue node or primary role when the first plot node When, according to corresponding priority existing for candidate plot node each at least two candidate plot nodes, by highest priority Candidate plot node be determined as the second plot node;
Or, when the first plot node is that there is no masters in the dialogue node of machine roles and at least two candidate plot nodes It is corresponding preferential according to existing for candidate plot node each at least two candidate plot nodes when controlling the dialogue node of role Grade, is determined as the second plot node for the candidate plot node of highest priority;
Or, when the first plot node is that there are master controls in the dialogue node of machine roles and at least two candidate plot nodes When the dialogue node of role, the plot selection interface for carrying out selection to candidate plot node is shown;It receives and is selected in plot Plot selection signal on interface;The second plot node is determined according to plot selection signal.
In conclusion the script execution device of plot node provided in this embodiment, in the operational process of application program, By determining candidate plot node from least two subsequent plot nodes of the first plot node;Later from candidate plot The second plot node is determined in node, which is next execution node of the first plot node;It is executing The second plot node is executed after first plot node.In the script execution of above-mentioned plot node, a plot node packet At least two subsequent plot nodes are included, then a plot may include at least two branch directions, enter the play in a large number of users It can develop towards different directions after feelings, avoid the available load for making server of all user's only one plot lines Again, the case where leading to Caton.
Figure 14 is please referred to, it illustrates the structural block diagrams for the terminal 600 that one exemplary embodiment of the application provides.The end End 600 may is that smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 600 are also possible to referred to as other titles such as user equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 600 includes: processor 601 and memory 602.
Processor 601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 601 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 601 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 601 for realizing this Shen Please in embodiment of the method provide plot node script execution.
In some embodiments, terminal 600 is also optional includes: peripheral device interface 603 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 601, memory 602 and peripheral device interface 603.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 603.Specifically, peripheral equipment includes: radio circuit 604, at least one of display screen 605, voicefrequency circuit 606, positioning component 607 and power supply 608.
Peripheral device interface 603 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 601 and memory 602.In some embodiments, processor 601, memory 602 and peripheral equipment Interface 603 is integrated on same chip or circuit board;In some other embodiments, processor 601, memory 602 and outer Any one or two in peripheral equipment interface 603 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 604 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 604 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 604 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 604 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 604 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 604 may be used also To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this It limits.
Display screen 605 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 605 is touch display screen, display screen 605 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 605.The touch signal can be used as control signal and be input to processor 601 are handled.At this point, display screen 605 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 605 can be one, and the front panel of terminal 600 is arranged;In other embodiments In, display screen 605 can be at least two, be separately positioned on the different surfaces of terminal 600 or in foldover design;In still other reality It applies in example, display screen 605 can be flexible display screen, be arranged on the curved surface of terminal 600 or on fold plane.Even, it shows Display screen 605 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 605 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
Voicefrequency circuit 606 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 601, to be handled, or is input to radio circuit 604 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 600 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 601 or radio circuit will to be come from 604 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 606 can also include Earphone jack.
Positioning component 607 is used for the current geographic position of positioning terminal 600, to realize navigation or LBS (Location Based Service, location based service).Positioning component 607 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 608 is used to be powered for the various components in terminal 600.Power supply 608 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 608 includes rechargeable battery, which can support wired charging Or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 600 of structure shown in Figure 14, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Figure 15 shows the structural schematic diagram of the server of the application one embodiment offer.The server is for implementing The script execution of the plot node provided in embodiment is provided.Specifically:
The server 700 is including central processing unit (CPU) 701 including random access memory (RAM) 702 and only Read the system storage 704 of memory (ROM) 703, and the system of connection system storage 704 and central processing unit 701 Bus 705.The server 700 further includes the basic input/output that information is transmitted between each device helped in computer System (I/O system) 706, and large capacity for storage program area 713, application program 714 and other program modules 715 are deposited Store up equipment 707.
The basic input/output 706 includes display 708 for showing information and inputs letter for user The input equipment 709 of such as mouse, keyboard etc of breath.Wherein the display 708 and input equipment 709 are all by being connected to The input and output controller 710 of system bus 705 is connected to central processing unit 701.The basic input/output 706 Can also include input and output controller 710 with for receive and handle from keyboard, mouse or electronic touch pen etc. it is multiple its The input of his equipment.Similarly, input and output controller 710 also provides output to display screen, printer or other kinds of defeated Equipment out.
The mass-memory unit 707 is by being connected to the bulk memory controller (not shown) of system bus 705 It is connected to central processing unit 701.The mass-memory unit 707 and its associated computer-readable medium are server 700 provide non-volatile memories.That is, the mass-memory unit 707 may include such as hard disk or CD-ROM The computer-readable medium (not shown) of driver etc.
Without loss of generality, the computer-readable medium may include computer storage media and communication media.Computer Storage medium includes information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includes RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape Box, tape, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that the computer storage medium It is not limited to above-mentioned several.Above-mentioned system storage 704 and mass-memory unit 707 may be collectively referred to as memory.
According to the various embodiments of the application, the server 700 can also be arrived by network connections such as internets Remote computer operation on network.Namely server 700 can be by the network interface that is connected on the system bus 705 Unit 711 is connected to network 712, in other words, Network Interface Unit 711 also can be used be connected to other kinds of network or Remote computer system (not shown).
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (12)

1. a kind of script execution of plot node, which is characterized in that the described method includes:
In the operational process of application program, the script of the first plot node is executed, is wrapped in the script of the first plot node Include the node identification of at least two subsequent plot nodes;
According to the node identification from described at least two subsequent plot nodes, candidate plot node is determined;
Determine that the second plot node, the second plot node are the first plot nodes from the candidate plot node Next execution node;
Execute the script of the second plot node.
2. the method according to claim 1, wherein it is described according to the node identification after described at least two In continuous plot node, candidate plot node is determined, comprising:
Obtain the role state information of primary role;
The script of described at least two subsequent plot nodes, the script of the subsequent plot node are obtained according to the node identification In include the corresponding execution condition of the subsequent plot node;
From described at least two subsequent plot nodes, determine that the role state information meets the described of the execution condition Candidate plot node.
3. according to the method described in claim 2, it is characterized in that, described from described at least two subsequent plot nodes, really Make the candidate plot node that the role state information meets the execution condition, comprising:
By in the script of at least two subsequent plot nodes described in the role state information input, the return of the script is obtained Value;
It is the subsequent plot node of target value by the return value, is determined as the candidate plot node;
Wherein, the target value is used to indicate the execution item that the role state information meets the subsequent plot node Part.
4. according to the method described in claim 2, it is characterized in that,
The role state information includes plot progress, and the execution condition includes that the plot progress meets target progress;
And/or
The role state information includes plot completeness, and the execution condition includes that the plot completeness meets target completion Degree;Wherein, the target completeness is to be not carried out, alternatively, having executed and not completed.
5. method according to any one of claims 1 to 4, which is characterized in that described to be determined from the candidate plot node Second plot node out, comprising:
When the candidate plot node is at least two and each candidate plot node is there are when corresponding priority, by institute The candidate plot node for stating highest priority is determined as the second plot node;
Or,
When the candidate plot node is at least two, show that the plot for carrying out selection to the candidate plot node is selected Select interface;Receive the plot selection signal in the plot selection interface;It is determined according to the plot selection signal described Second plot node.
6. method according to any one of claims 1 to 4, which is characterized in that candidate's plot node is at least two, institute It states and determines the second plot node from the candidate plot node, comprising:
When the first plot node is the dialogue node of non-dialogue node or the primary role, according at least two times Corresponding priority existing for each candidate plot node in plot node is selected, by the candidate plot of the highest priority Node is determined as the second plot node;
Or,
When the first plot node is that there is no described in the dialogue node of machine roles and at least two candidate plot nodes When the dialogue node of primary role, according to existing for the candidate plot node each in at least two candidate plot nodes The candidate plot node of the highest priority is determined as the second plot node by corresponding priority;
Or,
When the first plot node is that there are institutes in the dialogue node of the machine roles and at least two candidate plot nodes When stating the dialogue node of primary role, the plot selection interface for carrying out selection to the candidate plot node is shown;It receives Plot selection signal in the plot selection interface;The second plot section is determined according to the plot selection signal Point.
7. a kind of script execution device of plot node, which is characterized in that described device includes:
Execution module, for executing the script of the first plot node, the first plot section in the operational process of application program It include the node identification of at least two subsequent plot nodes in the script of point;
Determining module, for from described at least two subsequent plot nodes, determining candidate plot according to the node identification Node;
The determining module, for determining the second plot node, the second plot node from the candidate plot node It is next execution node of the first plot node;
The execution module, for executing the script of the second plot node.
8. device according to claim 7, which is characterized in that the determining module, comprising:
Acquisition submodule, for obtaining the role state information of primary role;Described at least two are obtained according to the node identification The script of a subsequent plot node includes the corresponding execution item of the subsequent plot node in the script of the subsequent plot node Part;
Submodule is determined, for determining that the role state information meets institute from described at least two subsequent plot nodes State the candidate plot node of execution condition.
9. device according to claim 8, which is characterized in that the determining submodule, for the role state to be believed Breath inputs in the script of at least two subsequent plot node, obtains the return value of the script;It is mesh by the return value The subsequent plot node for marking value is determined as the candidate plot node;Wherein, the target value is used to indicate the role Status information meets the execution condition of the subsequent plot node.
10. device according to claim 8, which is characterized in that
The role state information includes plot progress, and the execution condition includes that the plot progress meets target progress;
And/or
The role state information includes plot completeness, and the execution condition includes that the plot completeness meets target completion Degree;Wherein, the target completeness is to be not carried out, alternatively, having executed and not completed.
11. a kind of terminal, the terminal include:
Memory;
The processor being connected with the memory;
Wherein, the processor is configured to loading and executing executable instruction to realize as described in claim 1 to 6 is any The script execution of plot node.
12. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code Collection or instruction set are loaded by processor and are executed the script execution to realize the plot node as described in claim 1 to 6 is any Method.
CN201910267396.9A 2019-04-03 2019-04-03 Script execution, device, equipment and the storage medium of plot node Pending CN109985382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910267396.9A CN109985382A (en) 2019-04-03 2019-04-03 Script execution, device, equipment and the storage medium of plot node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910267396.9A CN109985382A (en) 2019-04-03 2019-04-03 Script execution, device, equipment and the storage medium of plot node

Publications (1)

Publication Number Publication Date
CN109985382A true CN109985382A (en) 2019-07-09

Family

ID=67132303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910267396.9A Pending CN109985382A (en) 2019-04-03 2019-04-03 Script execution, device, equipment and the storage medium of plot node

Country Status (1)

Country Link
CN (1) CN109985382A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110465097A (en) * 2019-09-09 2019-11-19 网易(杭州)网络有限公司 Role in game, which stands, draws display methods and device, electronic equipment, storage medium
CN110809175A (en) * 2019-09-27 2020-02-18 腾讯科技(深圳)有限公司 Video recommendation method and device
CN111228813A (en) * 2020-01-22 2020-06-05 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111282268A (en) * 2020-02-28 2020-06-16 苏州叠纸网络科技股份有限公司 Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment
CN111346376A (en) * 2020-02-25 2020-06-30 腾讯科技(深圳)有限公司 Interaction method and device based on multimedia resources, electronic equipment and storage medium
CN111359200A (en) * 2020-02-26 2020-07-03 网易(杭州)网络有限公司 Augmented reality-based game interaction method and device
CN111744190A (en) * 2020-07-03 2020-10-09 珠海西山居移动游戏科技有限公司 Game interaction method and device based on conversation
WO2021057693A1 (en) * 2019-09-24 2021-04-01 广州虎牙科技有限公司 Processing of and playing control over interactive video
CN113332725A (en) * 2021-06-29 2021-09-03 北京中清龙图网络技术有限公司 Game scenario deduction method and device, electronic equipment and storage medium
CN113648660A (en) * 2021-08-16 2021-11-16 网易(杭州)网络有限公司 Behavior sequence generation method and device for non-player character
CN114177621A (en) * 2021-12-15 2022-03-15 乐元素科技(北京)股份有限公司 Data processing method and device
CN115018960A (en) * 2022-06-02 2022-09-06 北京新唐思创教育科技有限公司 Role interaction method, device, equipment and storage medium
CN111744190B (en) * 2020-07-03 2024-04-26 珠海西山居数字科技有限公司 Game interaction method and device based on dialogue

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1166139A (en) * 1995-08-31 1997-11-26 菲利浦电子有限公司 Information handling for interactive appts.
CN101036175A (en) * 2004-08-19 2007-09-12 美泰公司 Branching storyline game
CN108283803A (en) * 2017-10-25 2018-07-17 王可 A kind of system and method for the self-defined plot of online game
CN109529353A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 The more plots of the task of based role game for play execute method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1166139A (en) * 1995-08-31 1997-11-26 菲利浦电子有限公司 Information handling for interactive appts.
CN101036175A (en) * 2004-08-19 2007-09-12 美泰公司 Branching storyline game
CN108283803A (en) * 2017-10-25 2018-07-17 王可 A kind of system and method for the self-defined plot of online game
CN109529353A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 The more plots of the task of based role game for play execute method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁刚毅: "《数字媒体技术》", 31 August 2015, 北京理工大学出版社 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110465097B (en) * 2019-09-09 2023-06-27 网易(杭州)网络有限公司 Character vertical drawing display method and device in game, electronic equipment and storage medium
CN110465097A (en) * 2019-09-09 2019-11-19 网易(杭州)网络有限公司 Role in game, which stands, draws display methods and device, electronic equipment, storage medium
WO2021057693A1 (en) * 2019-09-24 2021-04-01 广州虎牙科技有限公司 Processing of and playing control over interactive video
CN110809175A (en) * 2019-09-27 2020-02-18 腾讯科技(深圳)有限公司 Video recommendation method and device
CN111228813A (en) * 2020-01-22 2020-06-05 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111228813B (en) * 2020-01-22 2022-05-10 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111346376A (en) * 2020-02-25 2020-06-30 腾讯科技(深圳)有限公司 Interaction method and device based on multimedia resources, electronic equipment and storage medium
CN111346376B (en) * 2020-02-25 2021-12-21 腾讯科技(深圳)有限公司 Interaction method and device based on multimedia resources, electronic equipment and storage medium
CN111359200A (en) * 2020-02-26 2020-07-03 网易(杭州)网络有限公司 Augmented reality-based game interaction method and device
CN111359200B (en) * 2020-02-26 2023-09-26 网易(杭州)网络有限公司 Game interaction method and device based on augmented reality
CN111282268B (en) * 2020-02-28 2020-09-18 苏州叠纸网络科技股份有限公司 Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment
CN111282268A (en) * 2020-02-28 2020-06-16 苏州叠纸网络科技股份有限公司 Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment
CN111744190A (en) * 2020-07-03 2020-10-09 珠海西山居移动游戏科技有限公司 Game interaction method and device based on conversation
CN111744190B (en) * 2020-07-03 2024-04-26 珠海西山居数字科技有限公司 Game interaction method and device based on dialogue
CN113332725A (en) * 2021-06-29 2021-09-03 北京中清龙图网络技术有限公司 Game scenario deduction method and device, electronic equipment and storage medium
CN113648660A (en) * 2021-08-16 2021-11-16 网易(杭州)网络有限公司 Behavior sequence generation method and device for non-player character
CN114177621A (en) * 2021-12-15 2022-03-15 乐元素科技(北京)股份有限公司 Data processing method and device
CN114177621B (en) * 2021-12-15 2024-03-22 乐元素科技(北京)股份有限公司 Data processing method and device
CN115018960A (en) * 2022-06-02 2022-09-06 北京新唐思创教育科技有限公司 Role interaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109985382A (en) Script execution, device, equipment and the storage medium of plot node
CN108769814A (en) Video interaction method, device and readable medium
Hjorth et al. Gaming in social, locative and mobile media
EP4216093A1 (en) System and method to prevent surveillance and preserve privacy in virtual reality
CN105431813B (en) It is acted based on biometric identity home subscriber
US10091454B2 (en) Recording events in a virtual world
US9292957B2 (en) Portable virtual characters
US20170264973A1 (en) Video playing method and electronic device
WO2021093452A1 (en) Artificial intelligence-based game service execution method and apparatus, device and medium
CN110732136B (en) Method, device, terminal and storage medium for previewing in-office behavior in out-office environment
Goggin Apps: From mobile phones to digital lives
CN110061900A (en) Message display method, device, terminal and computer readable storage medium
CN109144346A (en) song sharing method, device and storage medium
CN109346111A (en) Data processing method, device, terminal and storage medium
CN108307127A (en) Method for processing video frequency and computer storage media, terminal
CN109275013A (en) Method, apparatus, equipment and the storage medium that virtual objects are shown
CN107948702A (en) Synchronous method, device, terminal and the storage medium of Application Status
CN110377200A (en) Sharing data generation method, device and storage medium
CN104994920B (en) Presenting has the function of the digital content item of layer-stepping
US20230343056A1 (en) Media resource display method and apparatus, device, and storage medium
US20240042319A1 (en) Action effect display method and apparatus, device, medium, and program product
CN109603154A (en) Interface test method, client, Entrust Server and system
CN110166275A (en) Information processing method, device and storage medium
CN112148248A (en) Online song room implementation method, electronic device and computer readable storage medium
CN113144595A (en) Virtual road generation method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190709