A real-time state content dynamic unlocking method based on logical relationship

By introducing dynamic variable placeholders and a global state mediation pool into the real-world interactive entertainment platform, the problem of a single instance of unlocking logic in existing technologies is solved, enabling cross-instance state sharing and dynamic unlocking, improving the flexibility and personalization of content unlocking, and reducing operating costs.

CN123148657APending Publication Date: 2026-11-24SHANGHAI SLEIGH NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611407864.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The content unlocking logic of existing real-world interactive entertainment platforms is based on a single game instance, which cannot achieve cross-instance data fusion. This results in consistent unlocking conditions, a lack of flexibility and personalization, an inability to dynamically adjust the settings, and high operational difficulty.

Method used

By introducing dynamic variable placeholders and a global state mediation pool, and configuring parameterized logic rules during the content production phase and binding global state data at runtime, cross-instance state sharing and dynamic unlocking determination are achieved.

Benefits of technology

It enables personalized and dynamic content unlocking, enhances content richness and player experience differentiation, reduces operational difficulty and costs, and strengthens immersion and playability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123148657A_ABST
    Figure CN123148657A_ABST
Patent Text Reader

Abstract

This invention provides a method for dynamically unlocking real-time state content based on logical relationships, belonging to the field of real-world interactive entertainment technology. It is applied to a real-world interactive platform that includes a content production system, an activity operation system, platform services and a data layer, and a mobile client. The method includes the following steps: creating line content containing multiple nodes in the content production system, and configuring parameterized logical rules for the target nodes in the line content; the local state condition is a Boolean expression determined based on the state data generated by the player within the current activity instance. This invention introduces dynamic variable placeholders and a runtime delay binding mechanism into the parameterized logical rules, substituting the local state and global state into Boolean operations to generate the unlocking judgment result. This achieves decoupling of the unlocking logic from runtime data and state sharing across activity instances, enabling differentiated and dynamically adaptive content unlocking without modifying the line structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of real-world interactive entertainment technology, and more specifically, to a method for dynamically unlocking real-time state content based on logical relationships. Background Technology

[0002] In real-world interactive entertainment platforms, content unlocking is one of the core mechanisms guiding player experience. Existing unlocking technologies rely solely on internal variables of a single game instance, failing to achieve cross-instance data fusion. Current content unlocking schemes typically employ pre-defined static parameterized logic rules: during content production, creators pre-define directed dependencies between nodes, such as series, parallel, logical AND, and logical NOT topologies, and these parameterized logic rules are hard-coded or embedded in the activity content. When a player participates in an activity instance, the system, based on the player's progress and position within the current instance, makes a deterministic judgment along the pre-defined logical topology to determine whether to unlock the next content node.

[0003] However, the existing solution has the following technical drawbacks: First, the unlocking logic's decision-making variables are limited to the node state within the current activity instance, and its scope is limited to a single activity instance, making it impossible to introduce global state data across instances. This results in all players participating in the same activity having completely identical unlocking conditions and unlockable content when facing the same node, making it impossible to achieve differentiated content delivery.

[0004] Secondly, parameterized logic rules are fully instantiated during the content production stage. Condition variables within the rules are bound to fixed values ​​or fixed data source references at the time of publication, lacking a mechanism for dynamic runtime resolution and delayed binding. Therefore, after an event is published, operators cannot dynamically adjust unlocking conditions based on real-time changes in global data without modifying the network structure, reducing the flexibility and timeliness of content operations. Furthermore, the state data between different event instances is isolated, preventing the aggregation and utilization of player behavior data across different event instances. This not only limits the implementation of personalized content delivery but also makes it difficult for the system to adaptively adjust game difficulty based on server-wide statistical data or provide differentiated content experiences based on player profiles. Summary of the Invention

[0005] To overcome the above shortcomings, this invention provides a method for dynamically unlocking real-time state content based on logical relationships, aiming to decouple the unlocking logic from runtime data and enable state sharing across activity instances, thereby solving the problem of real-time differentiated adjustments.

[0006] This invention is implemented as follows: This invention provides a method for dynamically unlocking real-time status content based on logical relationships. The method is applied to a real-world interactive platform that includes a content production system, an activity operation system, a platform service and data layer, and a mobile client. The method includes: S1. Create line content containing multiple nodes in the content production system, and configure parameterized logic rules for the target nodes in the line content; the parameterized logic rules include local state conditions and at least one dynamic variable placeholder; the local state conditions are Boolean expressions that are judged based on the state data generated by the player in the current activity instance; the dynamic variable placeholder is a variable reference identifier, which is not bound to a specific data source during the content production stage; during the runtime parsing stage, it is dynamically bound to global state data outside the current activity instance according to its type identifier; the parameterized logic rules and the target nodes are associated through rule identifiers, and the same parameterized logic rule can be reused by multiple target nodes; S2. In the activity operation system, reference the created line content and configure the running parameters of the activity instance to generate an executable activity instance; S3. After the mobile client joins the activity instance, it collects the player's local real-time status and uploads it to the platform service and data layer. The player's local real-time status includes the task completion status, item holding status and geographical location information in the current activity instance. The geographical location information is used to verify whether the player is actually located in the preset check-in area of ​​the physical venue space point bound to the target node before the unlocking judgment. If the verification fails, the content unlocking request is rejected. S4. When the platform service and data layer receives the content unlocking request from the mobile client for the target node, it obtains the player's local real-time status, parses the parameterized logic rules associated with the target node, and identifies the dynamic variable placeholders therein. S5. Based on the type identifier of the dynamic variable placeholder, query the corresponding player global state data from the global state intermediary pool maintained by the platform service and data layer; the global state intermediary pool is a persistent state storage independent of the lifecycle of any activity instance, and its data is not cleared after the end of any activity instance, but is continuously accumulated and updated for use by subsequent activity instances; the player global state data includes at least one of macro statistical data across activity instances, environmental state data, and player long-term behavior profile data; S6. Substitute the player's local real-time status and the player's global status data into the parameterized logic rules to perform Boolean operations, generate a content unlocking determination result, and determine the target content to be unlocked from the content library based on the content unlocking determination result, and send it to the mobile client for display; Because dynamic variable placeholders are bound late at runtime, the same structured data package can reference different global state data sources in different active instances, thereby enabling the reuse of rule structures and differentiated binding of data sources.

[0007] The parameterized logic rules, after serialization, generate structured data, a directed graph data structure of the route content, and multimodal content resources stored in the content library. These together constitute an executable structured data package for real-world interactive content. After the data package is structured and arranged during the content production stage, it is directly instantiated into an executable activity instance by the activity operation system, eliminating the need for manual content adaptation or secondary arrangement after the activity is released. The dynamic variable placeholders allow the same structured data package to be bound to different global state data sources in different activity instances, enabling differentiated reuse of a single set of structured content across multiple venues, time periods, and player groups. This constitutes an automated content generation pipeline from structured configuration to differentiated execution.

[0008] By adopting the above technical solution, introducing dynamic variable placeholders and a global state mediation pool, the unlocking conditions can be dynamically bound across instances, enabling the unlocking judgment to break through the limitation of a single activity instance and significantly enhancing the flexibility and personalization of content unlocking.

[0009] Preferably, in S5, the construction and maintenance process of the global state intermediary pool includes: collecting and aggregating player behavior data generated in all running activity instances in real time, and generating macro statistical data through statistical calculation, including the server-wide average completion rate of specific task nodes, the server-wide holding density of specific virtual items, and the average completion time of specific routes; The environmental status data is obtained by accessing an external data source through an application programming interface (API); the environmental status data includes real-time weather information, day / night time information, or holiday information of the geographical location of the activity venue. Based on players' historical behavior records across multiple activity instances, the data is tagged and constructed, and continuously updated to form a long-term player behavior profile. The profile data includes players' behavior preference tags, skill level ratings, and spending habit tags.

[0010] By adopting the above technical solutions, a global state mediation pool is constructed from three dimensions: player behavior aggregation, external API access, and user history archives. This ensures the real-time nature and richness of global data, providing a comprehensive and reliable data foundation for differentiated unlocking.

[0011] Preferably, the Boolean operation in S6 includes at least one adaptive adjustment branch: difficulty adaptive branch: when the server-wide average completion rate of a specific task node contained in the player's global state data is lower than a preset difficulty threshold, it is determined that the current activity instance is in a high-difficulty interaction mode, additional auxiliary items are issued to the mobile client, and the judgment conditions of the parameterized logic rules of subsequent nodes are reduced. Personalized push branch: When the player's long-term behavior profile data in the global player status data contains the preset exploration player tag, a hidden story branch or rare virtual item will be unlocked after completing the prerequisite task.

[0012] The adaptive adjustment branch is executed as an additional decision logic of the Boolean operation, and together with the content unlocking decision result, determines the final target content to be issued; Preferably, in step S1: the parameterized logic rules are stored in the database with an independent data structure, and are associated with one or more target nodes through rule identifiers; When multiple target nodes are associated with the same parameterized logic rule, the platform service and data layer reuse different instances of the same rule when determining the unlocking conditions of each target node. Each instance shares the rule structure but independently stores references to the global state data bound at runtime.

[0013] By adopting the above technical solutions and combining them with the exploration tags in players' long-term behavior profiles to automatically unlock hidden storylines or rare items, accurate personalized content delivery can be achieved, enhancing players' immersion and desire for exploration.

[0014] Preferably, the calculation process in S6 includes environment linkage logic: when the environment state data in the player's global state data meets the preset environment triggering conditions, the specific content bound to the environment triggering conditions is unlocked; the environment triggering conditions include the current time being night, the current weather being rainy, or the current time being a specific holiday; the specific content is sent to the mobile client as the target content.

[0015] By adopting the above technical solution, relevant content can be automatically triggered based on environmental data such as real-time weather, day and night, or holidays, so that virtual unlocking can be linked with the real environment, enhancing the realism and fun of real-world interaction.

[0016] Preferably, in step S1: the parameterized logic rules are configured through a visual logic editor, which provides graphical nodes for representing logical AND, logical OR, and logical NOT, as well as function nodes for representing dynamic variable placeholders. The visual logic editor also supports graphical loading, modification, and reserialization storage of the configured parameterized logic rules. The visual logic editor allows users to construct parameterized logic rules by dragging and connecting graphical nodes and function nodes. After construction, the editor serializes the rules into structured data. The structured data includes at least node types, parameters, and connection relationships, and is stored in JSON format. The rule parsing engine built into the platform service and data layer can load and execute the structured data. The dynamic variable placeholder function node is only displayed as an unbound identifier during the configuration phase. At runtime, the platform service and data layer automatically parses and binds it to the corresponding global state data source based on the type identifier of the function node.

[0017] Preferably, in step S5: the player global status data also includes the real-time status data of other players in the same team; When the parameterized logic rule contains a collaborative unlocking condition and the player's global state data satisfies the collaborative unlocking condition, a collaborative request is sent to the mobile clients of all relevant players in the team. After receiving confirmation from all relevant players, the system generates a content unlocking determination result and unlocks the target content for all participating players.

[0018] By adopting the above technical solution, the real-time status of other players in the team is introduced as a condition for collaborative unlocking, and a collaborative request and confirmation mechanism is sent to achieve multi-player collaborative unlocking and enhance the social interactivity of the event.

[0019] Preferably, in step S6: after generating the content unlocking determination result and before issuing the target content, the method further includes: asynchronously writing the content unlocking determination result, the identifier information of the player's global state data used, and the player's identifier information into the blockchain network to generate an unlocking evidence record; Asynchronous writing to the blockchain network generates an unlocked evidence record. The main process of sending the target content does not need to wait for the blockchain writing operation to complete before returning the execution result. When the platform service and data layer receives a verification request for the target content, it verifies the authenticity of the acquisition conditions of the target content based on the unlocked evidence record. If verification fails, the content unlocking result is deemed invalid. The platform service and data layer generate an anomaly alarm record and refuse to respond to subsequent repeated display requests for the target content. If they match, verification passes; if they do not match, verification fails and an anomaly log is recorded, triggering a security alarm. By adopting the above technical solution, the unlocking judgment result and status identifier are asynchronously written into the blockchain to generate a storage record, ensuring the verifiability and tamper-proof nature of the unlocking conditions, and improving the security and credibility of the platform.

[0020] Preferably, the target content includes at least one of virtual storyline, interactive tasks, virtual props, map area, or game function module; When the target content is a virtual item, the method further includes: dynamically adjusting the drop probability or usage effect of the virtual item based on the server-wide holding density of the specific virtual item in the player's global status data, and the server-wide holding density is negatively correlated with the drop probability.

[0021] By adopting the above technical solution, the drop probability or effect of virtual items can be dynamically adjusted according to the overall server holding density. The scarcity of items can be controlled by using a negative correlation, thereby balancing the game's economic system and preventing items from becoming excessive or devalued.

[0022] Preferably, in step S5: when the update frequency of the player global state data corresponding to the dynamic variable placeholder is lower than a preset frequency threshold, the platform service and data layer obtain cached data from the global state intermediary pool according to a first time interval; When the update frequency of the player global state data corresponding to the dynamic variable placeholder is higher than or equal to the frequency threshold, the platform service and data layer obtain real-time data from the global state intermediary pool according to the second time interval, the second time interval is less than the first time interval, and the update frequency is applied to data with timeliness requirements; The platform service and data layer determine the corresponding global state data acquisition strategy based on the type identifier of the dynamic variable placeholder. The acquisition strategy includes the data source address, data format parsing method, and cache validity period.

[0023] By adopting the above technical solutions, a differentiated caching strategy and a placeholder type-driven acquisition strategy are used based on the update frequency of global state data to optimize data query efficiency, reduce system resource consumption, and improve response speed in high-concurrency scenarios.

[0024] The beneficial effects of this invention are: 1. This invention, by setting dynamic variable placeholders and a runtime delay binding mechanism, coupled with a global state mediation pool independent of the activity instance's lifecycle, expands the determination variables for unlocking logic from within a single activity instance to macroscopic statistical data, environmental states, and long-term player behavior profiles across instances, breaking through the limitation of closed scope of unlocking conditions in traditional solutions. As a result, different players can obtain differentiated unlocking determination results at the same point, achieving personalized and dynamic content unlocking, which helps to improve the content richness and player experience differentiation of the real-world interactive platform.

[0025] 2. This invention decouples parameterized logic rules from runtime data sources. During the content production phase, these rules only contain placeholders and do not need to be bound to specific data sources. Operators can change the unlocking conditions at any time by adjusting global state data or modifying placeholder binding strategies, without needing to modify line content or republish the activity. Simultaneously, the visual logic editor allows for graphical rule construction, lowering the configuration threshold and thus improving the flexibility and timeliness of content operations, shortening activity adjustment cycles, and saving development and maintenance costs. By combining route content with nodes and rules into a three-layer structured data model and a visual logic editor, non-technical personnel can directly configure and arrange real-world interactive content within the structured framework, eliminating the need for programmers to hard-code or manually verify spatial and logical conflicts between nodes, thus reducing manual verification costs. Through rule reuse mechanisms and runtime delay binding, the same set of structured content can be quickly reused and deployed differently in different venues and event instances, shortening the venue launch cycle. Through the serialized storage and direct instantiation of structured data packets, invalid content generation caused by incompatible content formats or incorrect point configurations is avoided, improving content production efficiency and deployment success rate from the system architecture level.

[0026] 3. This invention integrates macro-statistical data, environmental status, and player behavior profiles through a global state intermediary pool. It combines this with various computational logics, including dynamic difficulty adjustment, personalized content delivery, environmental linkage, collaborative unlocking, and dynamic adjustment of item probabilities. This allows unlocking decisions to adaptively change based on diverse factors such as server-wide difficulty, player profiles, real-time weather, and team collaboration. This achieves intelligent matching between game difficulty and content delivery, enhancing the immersion and playability of activities. Simultaneously, blockchain-based notarization improves the credibility and traceability of unlocking results.

[0027] In summary, this invention introduces dynamic variable placeholders and a runtime delayed binding mechanism into the parameterized logic rules. This allows variables in the unlocking conditions to be dynamically bound to specific data sources during the content production phase, and then dynamically bound to the corresponding player global state data in a global state intermediary pool that is independent of the activity instance's lifecycle, based on the placeholder type at runtime. Simultaneously, by substituting local and global states into Boolean operations to generate the unlocking judgment result, the unlocking logic and runtime data are decoupled, and state sharing across activity instances is achieved. This enables differentiated, dynamically adaptive content unlocking without modifying the line structure. Attached Figure Description

[0028] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained from these drawings without creative effort.

[0029] Figure 1 This is a flowchart of a real-time dynamic unlocking process based on logical relationships provided by an embodiment of the present invention. Figure 2 This is a real-world interactive platform architecture diagram of a real-time status content dynamic unlocking method based on logical relationships provided by an embodiment of the present invention. Figure 3 This is a flowchart of the S1 parameterized logic rule visualization configuration of a real-time status content dynamic unlocking method based on logical relationships provided by an embodiment of the present invention. Figure 4 This is a schematic diagram illustrating the construction and maintenance of the S5 global state mediation pool for a real-time state content dynamic unlocking method based on logical relationships provided in an embodiment of the present invention. Figure 5 This is a flowchart of S6 Boolean operation and content unlocking determination for a real-time dynamic unlocking method based on logical relationships provided by an embodiment of the present invention.

[0030] In the diagram: 1. Real-world interactive platform; 11. Content production system; 12. Event operation system; 13. Platform service and data layer; 14. Mobile client. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] Example 1 Figures 1-5 A method for dynamically unlocking real-time state content based on logical relationships, see details below. Figure 2The method is applied to a real-world interactive platform 1, which includes a content production system 11, an activity operation system 12, a platform service and data layer 13, and a mobile client 14. The content production system 11 is used for content creators to arrange route content and configure parameterized logic rules; the activity operation system 12 is used to instantiate the arranged route content into specific activities that players can participate in; the platform service and data layer 13 serves as backend support and is responsible for data storage, logical operations, and global state management; and the mobile client 14 serves as a frontend interactive carrier and is responsible for data collection and content display.

[0033] The four components mentioned above exchange data via wired or wireless network communication links. The method includes: referring to... Figure 1 and Figure 2 S1. Create line content containing multiple nodes in the content production system 11, and configure parameterized logical rules for the target nodes in the line content. The content production system 11 can be implemented based on Web technology, allowing content creators to access and arrange line content through a browser. The line content is stored in the database of the platform service and data layer 13 as a directed graph data structure. The nodes in the line content are structured according to spatial and logical dimensions respectively: In the spatial dimension, each node is bound to the geographical coordinates, check-in radius, and three-dimensional spatial constraint parameters in the physical venue, forming a spatial point topology that can be resolved by a computer, with the radius used as the preset check-in range for calculation. In the logical dimension, nodes are connected by directed edges to define dependencies such as serial, parallel, logical AND, and logical NOT, forming a computable task execution path.

[0034] The entire route content serves as a digital carrier of the task chain. After serialization, it generates a structured data packet containing node configurations, interaction parameters, and multimedia resource references. This data packet can be directly parsed and loaded into executable real-world interactive content by the mobile client without the need for manual secondary configuration.

[0035] The parameterized logic rules include local state conditions and at least one dynamic variable placeholder. The line content can be understood as a directed graph composed of multiple nodes organized in a specific order or topology. Each node corresponds to an interactive content unit, such as a plot segment, a puzzle task, or an item collection point.

[0036] The nodes in the route content are bound one-to-one with the spatial locations of the physical venues. Each node contains at least a coordinate field and a check-in radius field. The directed graph topology of the route content defines the set of traversable paths for players in the physical venues. When the mobile client executes the route content, it can only trigger a content unlocking request for the target node if the distance between the collected player's geographical location information and the coordinate field of the target node is less than or equal to the check-in radius.

[0037] Local state conditions are Boolean expressions that determine the state data generated by the player within the current activity instance. Dynamic variable placeholders are variable reference identifiers that are not bound to a specific data source during the content production phase, but are dynamically bound to global state data outside the current activity instance during the runtime parsing phase based on the type identifier of the dynamic variable placeholders. Parameterized logic rules and target nodes are associated through rule identifiers, and the same parameterized logic rule can be reused by multiple target nodes.

[0038] Preferably, in S1: Parameterized logic rules are configured through a visual logic editor. The visual logic editor provides graphical nodes for representing logical AND, logical OR, and logical NOT, as well as function nodes for representing dynamic variable placeholders. The visual logic editor also supports graphical loading, modification, and reserialization of configured parameterized logic rules. Parameterized logic rules are stored independently in the database and are associated with target nodes through rule identifiers. This design allows the same parameterized logic rule to be reused by multiple nodes. Dynamic variable placeholders are stored in the database in a specific format, such as the string "{{global.completion_rate}}" enclosed in double curly braces, to distinguish them from ordinary literal values.

[0039] By dragging and connecting graphical nodes and function nodes, parameterized logic rules are constructed graphically and serialized into structured data. The structured data includes at least node types, parameters, and connection relationships, so that it can be parsed and executed by platform services and data layer 13. The parameterized logic rules are serialized into structured data that can be parsed and executed by platform services and data layer 13.

[0040] In some implementations, structured data is stored in a rule table in a relational database. The platform service and data layer 13 has a built-in rule parsing engine. This engine loads the structured data at runtime, parses it into an abstract syntax tree in memory, performs a depth-first traversal of the syntax tree, calls the corresponding decision function according to the node type (such as AND, OR, NOT, CONDITION), and finally calculates a Boolean result.

[0041] The visual logic editor uses HTML5Canvas or SVG technology for graphical rendering. The user interface has a component panel on the left, a canvas area in the middle, and a property panel on the right. Nodes in the component panel are divided into three categories: input nodes, operation nodes, and output nodes. Input nodes include local state condition nodes (such as "task completion rate" and "item holdings") and dynamic variable placeholder nodes (such as "server-wide completion rate" and "current weather"). Operation nodes include "AND," "OR," and "NOT" logic gates. The output node is the "unlock result."

[0042] Users can drag nodes from the panel to the canvas using the mouse, and establish connections by clicking on a node's port and dragging it to another node's port. The properties panel is used to configure detailed parameters of the selected node, such as configuring the target task identifier for the "Task Completion" node, and configuring the comparison operator and comparison threshold for the "Server-wide Completion Rate" node.

[0043] This implementation provides a detailed description of the configuration tool for parameterized logic rules. The visual logic editor can be implemented based on web technology or a desktop application, and its user interface includes a canvas area and a component panel.

[0044] The component panel offers various graphical nodes. The first type is logical operator nodes, including AND, OR, and NOT nodes, which have both input and output terminals. The second type is condition nodes, including local state condition nodes (e.g., "Task Completion Status," "Item Holding Status") and dynamic variable placeholder nodes (e.g., "Server-wide Completion Rate," "Current Weather"). Condition nodes typically have one output terminal and a configurable parameter area.

[0045] Creators can graphically represent logical relationships by dragging nodes from the component panel onto the canvas and connecting the nodes' connection points (ports). For example, a creator can connect the output of the "Task A Completed" condition node to the first input of the "AND gate" node, connect the output of the "Server-wide Completion Rate < 50%" placeholder node to the second input of the "AND gate" node, and then connect the output of the "AND gate" node to the input of "Unlock Node B".

[0046] After configuration, the visual logic editor serializes the graphical parameterized logic rules into structured data, such as JSON or XML format. This structured data contains information such as node type, node parameters, and connection relationships, which can be parsed and executed by the platform service and data layer 13.

[0047] In addition, parameterized logic rules are stored in the database with independent data structures, and are associated with one or more target nodes through rule identifiers; When multiple target nodes are associated with the same parameterized logic rule, the platform service and data layer 13 reuse different instances of the same rule when determining the unlocking conditions of each target node. Each instance shares the rule structure but independently stores references to the global state data bound at runtime.

[0048] The parameterized logic rules are stored in the database of the platform service and data layer 13 using an independent data structure. This data structure contains the following fields: rule id : A unique identifier for the rule, generated in UUID format; rule name Rule name, for content creators to identify; rule expression : Regular expressions are stored in the form of an abstract syntax tree, which includes node types (such as AND, OR, NOT, CONDITION, PLACEHOLDER), node parameters, and the connection relationships between nodes; referenced nodes : A list of target node identifiers referencing this rule, stored in JSON array format; created at and updated at Creation time and update timestamp.

[0049] When a content creator configures parameterized logic rules for a target node in the visual logic editor, the system first checks whether the rule already exists in the database. If the rule already exists and the creator chooses to reuse it, the system appends the identifier of the current target node to the `referencednodes` field; if the rule does not exist or the creator chooses to create a new one, the system creates a new rule record and initializes the `referencednodes` list.

[0050] When multiple target nodes are associated with the same parameterized logical rule, the platform service and data layer 13 creates an independent rule instance for each target node at runtime. The specific implementation is as follows: The system maintains a RuleInstancePool in memory, which is a pool of rule instances. id ,target node id This uses key-value stores to store the runtime state of each rule instance. Each rule instance contains the following information: instance id : Unique identifier for the instance; rule id : The rule identifier associated with the relationship; targetnode id Target node identifier; bound placeholders : A list of global state data references bound at runtime, each reference containing a placeholder type identifier, a data source address, and a current value; evaluation cache : Cache of decision results to avoid duplicate calculations.

[0051] For example, suppose rule R1 (expression: "Task A completed AND overall server completion rate < 60%) is associated with both node N1 and node N2. When player P1 requests to unlock node N1, the system creates instance I1 and binds the "overall server completion rate" placeholder to the corresponding real-time data in the global state intermediary pool. When the same player or another player requests to unlock node N2, the system creates instance I2 and independently binds it to global state data. The two instances share the expression structure of rule R1 (i.e., "Task A completed AND overall server completion rate < 60%), but each independently stores the bound global state data reference and the judgment result cache, without interfering with each other.

[0052] S2. In the event operation system 12, reference the created route content and configure the event instance's runtime parameters to generate an executable event instance. Runtime parameters include the event instance's valid time period, maximum number of participants, and event start / stop node. After the event instance is generated, the system assigns it a unique instance identifier, which is used to associate players with the event instance in all subsequent data interactions.

[0053] S3. After joining an activity instance, the mobile client 14 collects the player's local real-time status and uploads it to the platform service and data layer 13. The player's local real-time status includes the task completion status, item holding status, and geographical location information in the current activity instance. The mobile client 14 obtains the player's geographical location information through a built-in positioning module (e.g., a GPS module) and queries the local database for the task completion status and item holding status of the current activity instance. The above status data is uploaded to the platform service and data layer 13 at preset time intervals (e.g., every 10 seconds) or by event triggering (e.g., upon task completion). The upload of geographical location information is also used to verify whether the player is actually located within the activity area to prevent cheating.

[0054] Geographic location information is used to verify whether the player is actually located within the preset check-in area of ​​the physical venue space point bound to the target node before unlocking. If the verification fails, the unlocking request for that content will be rejected.

[0055] S4. When the platform service and data layer 13 receives a content unlock request from the mobile client 14 for a target node, it obtains the player's local real-time state and parses the parameterized logic rules associated with the target node, identifying the dynamic variable placeholders within them. The content unlock request is a network request generated by the mobile client 14 when it detects that the player has triggered a specific interactive behavior (such as clicking the unlock button, reaching a specific geographical location, or completing a prerequisite task). This request contains at least player identification information and target node identification information. The content unlock request carries the target node identifier and the player identifier. The platform service and data layer 13 queries the parameterized logic rules associated with the target node based on its identifier, performs lexical and syntactic analysis on the rules, and extracts a list of all dynamic variable placeholders.

[0056] Reference Figure 4 S5. Based on the type identifier of the dynamic variable placeholder, query the corresponding player global state data from the global state intermediary pool maintained by the platform service and data layer 13. The global state intermediary pool is a persistent state storage independent of the lifecycle of any activity instance. Its data is not cleared after the end of any activity instance, but is continuously accumulated and updated for use by subsequent activity instances. Player global state data includes at least one of the following: macro-statistical data across activity instances, environmental state data, and player long-term behavior profile data. The platform service and data layer 13 traverses the placeholder list extracted in step S4 and queries the corresponding data value from the global state intermediary pool for each placeholder. The query process includes matching the data source and acquisition strategy based on the type identifier of the placeholder.

[0057] The global state intermediary pool can be built on a distributed caching system such as Redis or Memcached, or it can use a relational database or NoSQL database for persistent storage. The fact that the global state intermediary pool's lifecycle is independent of any single activity instance means that when an activity instance ends, the macro-statistics, player behavior profiles, and other data stored in the pool are not deleted, but continuously accumulated and updated for use by subsequent activity instances.

[0058] Furthermore: The construction and maintenance process of the global state intermediary pool includes: real-time collection and aggregation of player behavior data generated in all running activity instances, and statistical calculation to generate macro statistical data, including the server-wide average completion rate of specific task nodes, the server-wide holding density of specific virtual items, and the average completion time of specific routes; Access external data sources through application programming interfaces (APIs) to obtain environmental status data; environmental status data includes real-time weather information, day / night time information, or holiday information for the geographical location of the activity venue; Based on players' historical behavior records across multiple activity instances, long-term player behavior profiles are constructed and continuously updated through tagging; these profiles include player behavior preference tags, skill level ratings, and spending habit tags.

[0059] In this implementation, real-time collection of player behavior data is achieved through event tracking technology. Specifically, a standard event interface is defined between the mobile client 14 and the platform service and data layer 13, including event types such as "task start," "task completion," "item acquisition," "item use," "node entry," and "node unlock." Each event includes fields such as event type, player identifier, activity instance identifier, node identifier, and timestamp. The aforementioned event data is sent to a message queue, consumed by the streaming computing engine, and aggregated.

[0060] The "server-wide average completion rate of a specific task node" is calculated by dividing the number of players who have completed the task node by the number of players who have reached the task node.

[0061] Environmental status data is acquired through an application programming interface (API) gateway, which manages and caches calls to external APIs. In one embodiment, the system calls the OpenWeatherMap API to obtain real-time weather data, the SunriseSunset API to obtain day / night information, and the Public Holidays API to obtain holiday information. The frequency of external API calls is subject to quota limitations; therefore, the system caches this data locally and determines when to re-fetch it based on a cache validity policy.

[0062] Player long-term behavior profiles are stored in a separate user profile database. Tagging can employ rule-based methods based on event counting or methods based on machine learning classification models. In one embodiment, the system analyzes the player's behavior data across all activity instances participated in over the past 30 days. If the number of exploration behaviors (entering non-mainline areas, engaging in non-essential dialogues with NPCs, etc.) exceeds a preset threshold (e.g., 10 times), the player is tagged as "exploratory." Skill level ratings are determined based on the ratio of the player's average time to complete deduction or combat missions to the server-wide average time. Spending habit tags are determined based on the amount and frequency of a player's spending in the virtual store.

[0063] In some implementations, the player's global status data also includes the real-time status data of other players in the same team; when the parameterized logic rules include collaborative unlocking conditions and the player's global status data meets the collaborative unlocking conditions, a collaborative request is sent to the mobile clients 14 of all relevant players in the team; after receiving confirmation instructions from all relevant players, a content unlocking determination result is generated, and the target content is unlocked for all players participating in the collaboration.

[0064] Team data is stored in the platform service and the Redis cache in data layer 13 to support high-concurrency read and write operations. The team data structure includes fields such as team identifier, member list (each member includes player identifier, online status, and current node position), and creation time.

[0065] The conditions for collaborative unlocking are represented by specific function nodes in the parameterized logic rules, such as "AllMembersInRange(geofence)". id ")" indicates that all members are within the specified geofence, and "MinMembersCompleted" indicates that at least a specified number of members have completed a task. When the parsing engine encounters the above function nodes, it calls the corresponding function implementation to read the real-time status data of other players in the team from the global state intermediary pool for calculation.

[0066] The collaboration request is pushed via a long-lived connection channel (such as WebSocket). After receiving the collaboration request, the mobile client 14 displays the request content in a pop-up window or notification bar, and provides "Confirm" and "Reject" buttons. The system sets a timeout period (e.g., 60 seconds). If no confirmation instructions are received within the timeout period, the collaboration unlock request fails, and the system returns a "Collaboration Timeout" message to the initiating player.

[0067] Set a response time threshold of 55 to 60 seconds. If no confirmation instruction is received from all relevant players within the time threshold, return a 'Cooperative unlock timeout' message to the confirmed players, and the unlock request will fail. Alternatively, when the number of players who agree to confirm reaches 2 / 3 of the total number of team members, it can also be considered that the cooperative unlock condition has been met.

[0068] In another embodiment, collaborative unlocking does not require confirmation from all members, but instead uses a voting system. The system presets an "agreement ratio" parameter. When the number of confirmation commands reaches a specified percentage (e.g., two-thirds) of the total number of members, the collaborative conditions are considered met, and the system unlocks the target content for all members, including those who have not yet confirmed.

[0069] This embodiment introduces a team (i.e., player team) collaborative unlocking mechanism. Real-time status data of other players within the same team includes, but is not limited to: other players' current geographical location, task completion progress, online status, and current item list, etc.

[0070] Specific examples of co-op unlock conditions include: "All members of the team are within the same geofence," "At least three members of the team have completed prerequisite task B," and "All members of the team possess co-op item C." When the system detects that the parameterized logic rule contains the above co-op unlock conditions, it first determines whether the conditions are met based on the player's global state data.

[0071] When the conditions are met, the system pushes a collaboration request notification to the mobile clients 14 of all relevant players in the team. This notification includes the name of the target content to be unlocked and the initiator's information. The system waits for responses from all relevant players, and only after receiving confirmation from all relevant players does it officially generate the unlocking result.

[0072] It should be noted that the above two modes are either full confirmation or majority confirmation methods, and the selection logic may be determined by the system configuration.

[0073] Reference Figure 5 In S6: Boolean operations include at least one adaptive adjustment branch: Difficulty Adaptive Branch: When the server-wide average completion rate of a specific task node contained in the player's global status data is lower than the preset difficulty threshold, the current activity instance is determined to be in a high-difficulty interaction mode. Additional auxiliary items are distributed to the mobile client 14, and the judgment conditions of the parameterized logic rules of subsequent nodes are reduced. Personalized push branch: When the player's long-term behavior profile data in the player's global status data contains the preset exploration player tag, a hidden story branch or rare virtual item will be unlocked after completing the prerequisite task.

[0074] In one specific embodiment, the execution of the personalized push branch relies on a pre-built player behavior tagging system and content association rule base, and its specific implementation steps are as follows: First, the system constructs and queries player behavior tag profiles. A separate user profiling service is deployed in the platform's service and data layer 13. This service tags players based on their historical behavior data across multiple activity instances. Specifically, the system defines a set of behavior and tag mapping rules: if a player actively enters a non-task-directed side area more than 3 times in a single activity instance, or engages in non-essential dialogue with a non-player character more than 5 times, then the "exploration" tag is scored.

[0075] The scoring uses an exponential decay weighted algorithm for accumulation to emphasize recent behavioral tendencies. The formula is: S new =α*E+(1-α) *S old Where E is the trigger score for this behavior (0 or 1), α is the decay factor (e.g., 0.3), and S old This is the cumulative score based on history. When S... new When three consecutive activity instances exceed a preset threshold (e.g., 0.6), the system will officially write the tag into the player's long-term behavior profile.

[0076] When performing the S6 Boolean operation, the system queries whether the current player's tag list contains the "explorer" identifier by calling the playerId application interface of the user profile service.

[0077] Second, a content association rule base is established. During the content production stage, the system maintains a content association rule table in the database, whose data structure includes the following fields: field name type describe <![CDATA[source content id ]]> VARCHAR Regular unlock content identifier (i.e., trigger source) <![CDATA[hidden content id ]]> VARCHAR Hidden content marker (i.e., the target to be unlocked) <![CDATA[required tag ]]> VARCHAR The required player tag (such as "explorer") must be triggered. <![CDATA[trigger threshold ]]> FLOAT Trigger threshold (e.g., if a player's tag score is higher than this value) Third, conditional content merging and distribution: If the comparison result is true (i.e., the player has the "exploration" tag and there is related hidden content), the system will perform the following operations: Content preloading: Platform services and data layer 13 based on hidden content id Preload the corresponding hidden story data package or configuration information of rare virtual items from the cold storage partition of the content library.

[0078] Response packet reassembly: The system adds an extra... to the standard JSON response packet generated and sent to the mobile client. content The field is used to serialize the preloaded hidden content information (including content ID, type, access address, etc.) into this field; Client-side logic trigger: After the mobile client 14 parses the response packet, when it detects the existence of the extra_content field, it will automatically activate a "hidden entry" component in the user interface. Players can click on the component to experience the unlocked hidden content. After performing basic Boolean operations, the system queries the player's long-term behavior profile data before generating the final response to check for the presence of the "exploratory" tag. If it is present and the currently unlocked target content has associated hidden content, the system adds the hidden content's identifier to the list of content to be distributed.

[0079] The relationships between hidden content and regular content are stored in the `contentrelations` table of the content library. Each record contains: source content id : Source content identifier (i.e., content that is normally unlocked); hidden content id Hidden content identifier; trigger tag : The player tag required to trigger (such as "explorer").

[0080] The environment linkage logic is executed as an independent condition triggering mechanism after the Boolean operation is completed; when the environment triggering condition is met, the system adds additional content on the basis of the determined unlock content, rather than re-performing the Boolean judgment.

[0081] After the main Boolean operation is completed, the adaptive adjustment branches are executed sequentially according to priority, which is determined by the operation system configuration.

[0082] The adaptive adjustment branch is executed as additional decision logic in Boolean operations, and its execution flow is as follows: T1: Platform services and data layer 13 complete basic Boolean operations to generate preliminary content unlocking judgment results (i.e., Boolean values ​​calculated based on local and global state conditions in parameterized logic rules). T2: The system executes the determination of one or more adaptive adjustment branches in parallel or serially. Each branch independently calculates its triggering condition based on a specific field in the player's global state data. T3: If the trigger condition for a certain adaptive adjustment branch is met, the system records the corresponding adjustment action (such as issuing auxiliary items, unlocking hidden content, etc.) in the adaptive data packet. actions In the field; T4: The system summarizes the preliminary content unlocking judgment results and the adjustment actions of all triggered adaptive adjustment branches, and generates the final response content to be sent to the mobile client 14.

[0083] The triggering conditions and adjustment actions for adaptive adjustment branches are configured by operations personnel through the backend interface of the activity operations system 12. Each adaptive adjustment branch record contains the following fields: branch id : Unique identifier for the branch; branch name Branch name; trigger condition Triggering conditions use the same expression syntax as parameterized logic rules, but only global state data is allowed to be referenced (local state data is not allowed to be referenced). trigger action The adjustment action to be executed after triggering, including the action type (e.g., GRANT). ITEM Distribute items, Unlock CONTENT Unlock content, MODIFY DIFFICULTY Adjusting difficulty) and action parameters (such as item icons, content icons, and difficulty adjustment values); priority: When multiple branches are triggered simultaneously, they are executed in order of priority; enabled: Whether it is enabled.

[0084] Preferably, the blockchain network uses a consortium blockchain built with Hyperledger Fabric, with the platform operator and a third-party auditing institution jointly serving as verification nodes. Before being written, the evidence record is assembled according to the data structure defined in the smart contract. This data structure includes the following fields: recordId (record identifier), playerId (player identifier), contentId (content identifier), result (judgment result), stateSnapshot (state snapshot, containing the global state data used and its version number), timestamp, and signature (platform private key signature).

[0085] The asynchronous write implementation works as follows: After generating the unlock determination result, the system encapsulates the result and related data into a notarization task and submits it to a local task queue implemented by BlockingQueue. One or more consumer threads continuously retrieve tasks from this queue and call the blockchain client's SDK interface to perform the on-chain operation. After successful on-chain processing, the blockchain network returns a transaction hash, which the system stores in a relational database for subsequent queries.

[0086] Asynchronous writing means that the main process of sending target content does not need to wait for the blockchain write operation to complete before returning the execution result, thus avoiding the impact of blockchain consensus delays on user experience. The system can use a background thread or message queue (such as Kafka or RabbitMQ) to handle blockchain access tasks. The complete asynchronous write process is as follows: M1: The platform service and data layer 13 complete Boolean operations to generate content unlocking determination results and determine the target content to be unlocked from the content library; M2: The system will assemble the unlock judgment result, the identification information of the player's global status data used (including data name, data value and timestamp), and the player's identification information into evidence storage data; M3: The system encapsulates the evidence storage data into evidence storage tasks and submits them to the local task queue (implemented by BlockingQueue). M4: The system immediately continues the process of sending the target content and returns a response to the mobile client 14 without waiting for the blockchain to be written. M5: One or more consumer threads in the background continuously retrieve evidence storage tasks from the task queue and call the SDK interface of the blockchain client to perform on-chain operations; M6: After successful on-chain processing, the blockchain network returns a transaction hash. The system then stores this hash value in a relational database (with the associated fields being the player identifier and content identifier) ​​for subsequent query and verification.

[0087] In this embodiment, if the on-chain process fails, the system will initiate an exponential backoff retry strategy, with a maximum of 3 retries. If the process still fails after retries, the system will persist the notarization task to a local failure queue and issue an operational alarm. Meanwhile, the unlocking result of mobile client 14 will not be affected by the on-chain failure, ensuring a smooth user experience. After the system recovers, the background process will automatically process the tasks in the failure queue.

[0088] To ensure the reliability of blockchain write operations, the system implements the following fault tolerance mechanisms in the task queue and consumer thread: Persistent queue: The task queue is implemented using a persistent message middleware (such as Apache Kafka or RabbitMQ) instead of a memory queue to prevent the loss of evidence storage tasks due to system restart; Retry mechanism: When a blockchain write operation fails (such as network timeout, node unavailability, etc.), the consumer thread retryes according to the exponential backoff strategy, with a maximum of 5 retries and retry intervals of 1 second, 2 seconds, 4 seconds, 8 seconds, and 16 seconds respectively. Failure Records: If the write operation fails after the maximum number of retries, the system will write the evidence storage task to the failure record table (blockchain). failures (Table), and the maintenance personnel will manually enter the data through the backend; Idempotency guarantee: Each notarization task contains a unique task identifier. The blockchain smart contract checks whether the identifier already exists before writing to avoid duplicate writing.

[0089] When an operator or player initiates a verification request through the client, the request carries a content identifier and a player identifier. Platform service and data layer 13 queries the corresponding transaction hash from the database based on these identifiers, and then retrieves the original evidence record from the network through the blockchain client. The system re-executes the calculation of parameterized logic rules based on the state snapshot in the evidence record, and compares the calculation result with the judgment result in the evidence record. The state snapshot in the evidence record contains both the player's local real-time state and the player's global state data. The player's global state data is divided into near-real-time data (such as macro-statistics and environmental status) and non-real-time / periodic updated data (such as the player's long-term behavior profile) to ensure that the judgment process can be completely reproduced during verification. If they match, "Verification Passed" is returned; if they do not match, "Verification Failed" is returned and an exception log is recorded.

[0090] When the platform service and data layer 13 receives a verification request for the target content, it processes it according to the following procedure: N1: Based on the player identifier and content identifier carried in the request, query the corresponding transaction hash from the relational database; N2: If the transaction hash cannot be found, return the message "No evidence record". N3: If the transaction hash is found, the original evidence record is obtained from the blockchain network through the blockchain client; N4: Extract a status snapshot from the evidence record (including player's local real-time status and player's global status data). N5: Recalculate the parameterized logic rules based on the data in the state snapshot; N6: Compare the recalculated result with the judgment result in the evidence record; N7: If they match, return "Verification passed"; if they do not match, return "Verification failed" and record the exception log, triggering a security alarm.

[0091] The system converts local status data into Boolean values ​​(e.g., a task completion status of "completed" is mapped to True, and an item possession status of "not possessed" is mapped to False). It also converts global status data into Boolean values ​​based on preset thresholds (e.g., comparing a server-wide completion rate of 45% with a threshold of 50%; if less, it's True). Finally, it combines all Boolean values ​​according to the logical operators specified in the rules to calculate the final result. The content library is an independent content storage service, which can be object storage or a content delivery network, used to store content resources such as videos, images, audio, and 3D models.

[0092] This implementation introduces a blockchain-based evidence storage and verification mechanism. The blockchain network can be Ethereum, Hyperledger Fabric, or a self-built consortium blockchain. The data structure of the evidence storage record includes the following fields: player identifier (e.g., user ID), target content identifier (e.g., content ID), unlock determination result (True / False), identifier of the global state data used (e.g., the server-wide completion rate value and environment state snapshot at a specific moment), timestamp, and platform signature.

[0093] When a player or operator questions the unlocking conditions for certain content, they can initiate a verification request through the mobile client 14 or the operation backend. After receiving the verification request, the platform service and data layer 13 queries the corresponding evidence record from the blockchain network, recalculates the judgment conditions based on the status data recorded in the evidence record, and compares the recalculated result with the judgment result in the evidence record to verify whether there are any abnormalities or tampering in the unlocking process.

[0094] In this embodiment, specific limitations are made on the data source and construction method of the global state mediation pool.

[0095] Environmental status data is acquired by calling external application programming interfaces (APIs). For example, real-time weather conditions (sunny, rainy, snowy, cloudy, etc.) for the latitude and longitude region of the event venue can be obtained by calling the API of a third-party weather service provider; day / night status can be determined by combining system time functions with time zone information; and whether it is a statutory holiday or a specific anniversary can be determined by reading the system calendar or public holiday database. In addition, environmental status data can also include seasonal information (spring, summer, autumn, winter), air quality index, temperature range, etc., all of which can be used as input variables for unlocking conditions.

[0096] Furthermore, the construction of long-term player behavior profiles can employ rule-based or machine learning-based methods. For example, the system records a player's behavioral sequence in each activity instance, including but not limited to: whether they actively explore areas outside the main storyline, whether they collect non-essential collectibles, their average time spent on deduction tasks, and the amount spent on transactions. By statistically analyzing these behavioral sequences, the system assigns corresponding tags to players. For instance, players who frequently explore non-main storyline areas across multiple activities are tagged as "exploratory"; players whose time spent on deduction tasks is below average are rated "high skill level"; and players whose spending exceeds a preset threshold are tagged as "high willingness to spend."

[0097] Preferably: when the update frequency of the player's global state data corresponding to the dynamic variable placeholder is lower than the preset frequency threshold, the platform service and data layer 13 obtain cached data from the global state intermediary pool according to the first time interval; When the update frequency of the player's global state data corresponding to the dynamic variable placeholder is higher than or equal to the frequency threshold, the platform service and data layer 13 obtain real-time data from the global state intermediary pool according to the second time interval. The second time interval is less than the first time interval. This update frequency determination logic is applicable to data with timeliness requirements. The platform service and data layer 13 determines the corresponding global state data acquisition strategy based on the type identifier of the dynamic variable placeholder. The acquisition strategy includes the data source address, data format parsing method, and cache validity period.

[0098] The frequency threshold and acquisition strategy are loaded from the configuration file at system startup and cached in memory for fast lookup. The configuration file is in YAML format.

[0099] Here, interval refers to the specific value (in seconds) of the first or second time interval. When the platform service and data layer 13 receives an unlock request containing a placeholder of a specific type, it determines the data acquisition strategy based on the above configuration.

[0100] Regarding cache expiration, the system manages it according to the following rules: When the data resides in the cache for longer than the cacheTTL, the system determines that the cached data is invalid, and the next time the data is retrieved, it will trigger a re-query of the upstream data source or recalculation of statistical data. The data source address points to the specific storage location or server endpoint. The data format parsing method tells the system how to convert the obtained raw data into numeric or Boolean data that can participate in Boolean operations. For example, for weather data in JSON format, the system needs to extract "weather" from the JSON object. code The field is mapped to enumeration values ​​such as "sunny day" and "rainy day", and then compared with the preset trigger conditions.

[0101] This implementation provides a differentiated data acquisition strategy to optimize system performance.

[0102] The platform service and data layer 13 pre-configures update frequency attributes for each type of dynamic variable placeholder. For example, "Holiday Information" is updated once a day, which is a low update frequency; "Current Weather Information" is updated once an hour, which is a medium update frequency; and "Average Completion Rate Across the Server" is calculated every 5 minutes, which is a high update frequency.

[0103] A preset frequency threshold is used to distinguish between low-frequency and high-frequency data. In one embodiment, the threshold is set to update every 10 minutes. For "holiday information" (update frequency below the threshold), the system retrieves cached data from the global state intermediary pool at a first time interval (e.g., 1 hour), meaning that frequent queries to external data sources are not required. For "server-wide average completion rate" (update frequency above the threshold), the system retrieves data from the global state intermediary pool at a second time interval (e.g., 1 minute).

[0104] The retrieval strategy is stored in the platform service and data layer 13 in the form of a configuration file. Each dynamic variable placeholder's type identifier corresponds to a retrieval strategy record, which includes: the data source address (e.g., Redis key name, external API URL), the data format parsing method (e.g., JSON parsing, XML parsing, Protobuf parsing), and the cache validity period (e.g., the valid duration for which the data is retained in the local cache).

[0105] S6. Substitute the player's local real-time state and global state data into the parameterized logic rules for Boolean operations. Boolean operations refer to evaluating the local and global state conditions separately and then combining them into a final Boolean result using logical AND, OR, and NOT operators. For example, a parameterized logic rule can be represented as: (Local task A has been completed) AND (Average completion rate across all servers < 60%). When both conditions are true, the unlocking determination result is true, and the system retrieves the corresponding target content from the content library and sends it to mobile client 14. Perform Boolean operations, determine the target content to be unlocked from the content library based on the operation result, and send it to mobile client 14 for display.

[0106] Furthermore: The calculation process in S6 includes dynamic difficulty adjustment logic: when the server-wide average completion rate of a specific task node contained in the player's global status data is lower than the preset difficulty threshold, the current activity instance is determined to be in a high-difficulty interaction mode; In high difficulty mode, based on the content unlocking result, additional auxiliary items are distributed to mobile client 14, or the judgment conditions of the parameterized logic rules of subsequent nodes after the target node are reduced, so as to achieve adaptive adjustment of game difficulty.

[0107] This implementation provides a specific logic for dynamic difficulty adjustment. The difficulty threshold can be preset by the operator according to the game design goals, for example, set to 30%. When the system detects that the server-wide average completion rate is below 30%, it means that a large number of players are encountering difficulties at this point, and the system automatically determines that the current difficulty mode is high. The dynamic difficulty adjustment logic is executed as an additional branch of the Boolean operation in step S6. After completing the basic unlocking judgment, the system additionally reads the server-wide average completion rate data and compares it with the difficulty threshold. The difficulty threshold and the ease threshold can be dynamically configured by the operators through the operations backend without restarting the service or modifying the code.

[0108] In high-difficulty mode, the specific implementation of unlocking additional auxiliary items is as follows: When returning the content unlock result, the system appends an "Extra Reward" field to the response data packet. This field contains the identifier and quantity of the auxiliary item. Upon receiving this field, mobile client 14 calls the local item management module to add the auxiliary item to the player's inventory and displays a notification. The system executes at least one auxiliary measure: Assistance measure 1: Unlock additional auxiliary items, such as providing "hint cards" or "ability enhancement potions". These items can be used directly at the target node to help players pass through.

[0109] Second auxiliary measure: Reduce the judgment conditions of subsequent nodes. For example, reduce the condition of collecting 5 items to collecting 3 items, or reduce the condition of completing all three prerequisite tasks A, B and C to completing any two of them.

[0110] The specific implementation of lowering the judgment conditions for subsequent nodes is as follows: The system maintains a "difficulty adjustment mapping table" in memory, which records the identifiers of affected nodes and their corresponding adjusted judgment parameters. For example, a node whose original judgment condition was "requires collecting 5 fragments" is recorded in the mapping table as "requires collecting 3 fragments". When the system receives an unlock request for this node, it first reads the adjusted parameters from the mapping table for judgment.

[0111] It is worth noting that when multiple adaptive adjustment branches are triggered simultaneously, the platform service and data layer 13 sort them according to the preset priority values ​​of each branch, with the branch with the higher priority being executed first. If the adjustment actions of different branches conflict (for example, making opposite adjustments to the drop probability of the same item), the adjustment result of the branch with the highest priority shall prevail, and the conflict log shall be recorded. If there is no explicit priority, the default priority order of 'issuing items > unlocking content > modifying judgment conditions' shall be followed.

[0112] In one embodiment, the system can dynamically adjust the level of assistance based on the difference between the server-wide average completion rate and the difficulty threshold. For example, when the completion rate is only 10%, the system unlocks multiple assistance items; when the completion rate is 25%, the system unlocks only one assistance item.

[0113] In another embodiment, the dynamic difficulty adjustment logic may also include the determination of "easy mode": when the average completion rate of the entire server is higher than a preset easy threshold (e.g., 90%), the system determines that the current game environment is easy mode, and accordingly increases the challenge difficulty of subsequent nodes or reduces the rewards to maintain the challenge of the game.

[0114] Furthermore: The calculation process in S6 includes personalized content push logic: when the player's long-term behavior profile data in the player's global status data contains a preset exploratory player tag, the current player is determined to be a user with a high willingness to explore; After completing the prerequisite tasks on mobile client 14, in addition to unlocking regular subsequent content based on the content unlocking judgment result, hidden story branches or rare virtual items will be unlocked.

[0115] The personalized content push logic is also executed as an additional branch of the Boolean operation in step S6. After obtaining the player's long-term behavior profile data, the system checks whether the tag set of the profile contains the preset "exploration" tag. If it does, a "high exploration willingness" flag is set to true.

[0116] After the mobile client 14 reports the completion of the prerequisite task, the platform service and data layer 13, in addition to performing the usual subsequent content unlocking judgment, will also check the player's "high exploration willingness" flag. If true, it will query the hidden plot branch content or rare virtual items associated with the prerequisite task from the hidden partition of the content library, and add the flag of the above additional content to the data packet.

[0117] This implementation provides a specific logic for personalized content recommendation. When determining whether a player has a high willingness to explore, the system can do so by querying the player's long-term behavior profile to see if an "exploratory" tag exists. In one embodiment, for players identified as having a high willingness to explore, upon completing a main quest node, the system, in addition to unlocking the next main quest node according to the usual logic, will automatically trigger an unlock signal for a hidden story branch. This hidden story branch contains additional story content and exclusive rewards. This hidden story branch is invisible to players who do not have the "exploration-oriented" tag.

[0118] In another embodiment, the system can differentiate content recommendations based on a player's skill level rating. For example, for players with a "high skill level" rating, the system tends to recommend more difficult and complex puzzle tasks when unlocking new missions; while for players with a "low skill level" rating, the system recommends easier tasks. In yet another embodiment, the system can recommend different virtual goods or value-added services based on a player's spending habits, such as recommending limited-time exclusive skins to players with a "high willingness to spend" and offering free trial content to players with a "low willingness to spend".

[0119] Furthermore: The operation process in S6 includes environment linkage logic: when the environmental state data in the player's global state data meets the preset environmental trigger conditions, specific content bound to the environmental trigger conditions is unlocked; the environmental trigger conditions include the current time being night, the current weather being rainy, or the current time being a specific holiday; the specific content is sent to the mobile client 14 as the target content.

[0120] This implementation provides a specific method for implementing the environment linkage logic. The environment triggering conditions correspond to specific fields in the environment state data.

[0121] In one embodiment, when the system detects that the current time is nighttime (e.g., 6:00 PM to 6:00 AM the next day local time), specific content associated with "nighttime" is activated, such as displaying a starry sky background on the display interface of the mobile client 14, unlocking virtual items with a nighttime theme, or triggering a nighttime-limited ghost storyline.

[0122] In another embodiment, when the system detects through the weather API that the location of the event venue is currently raining, it activates specific content associated with "rainy weather," such as unlocking the task "Finding Treasure in the Rain," which can only be triggered on rainy days, or changing the rendering effect of the virtual environment in the game to match the real weather.

[0123] Furthermore, the environment linkage logic is executed as an additional branch of the Boolean operation in step S6. The system pre-stores a binding table between environment trigger conditions and specific content in the database. Each binding record contains: trigger condition type, trigger condition parameters, and the corresponding specific content identifier.

[0124] In another embodiment, when the system detects that a specific holiday is in effect, the corresponding holiday-specific content is activated. This environmental linkage logic enables synchronization between the virtual and real worlds, enhancing the player's sense of immersion.

[0125] Once the system obtains the environment status data, it iterates through the binding relationship table, checking whether the current environment status matches the trigger condition in any record. If a match is found, the corresponding specific content is extracted from the content library, and its identifier is added to the data packet to be sent.

[0126] After being serialized, the parameterized logic rules generate structured data, a directed graph data structure of the line content, and multimodal content resources stored in the content library, which together constitute an executable structured data package of real-world interactive content. After the data package is structured and arranged during the content production stage, it is directly instantiated into an executable activity instance by the activity operation system 12, without the need for manual content adaptation or secondary arrangement after the activity is released. Dynamic variable placeholders enable the same structured data package to be bound to different global state data sources in different activity instances, achieving differentiated reuse of a set of structured content across multiple venues, time periods, and player groups, forming an automated content generation pipeline from structured configuration to differentiated execution.

[0127] In some implementations, after generating the content unlocking determination result and before issuing the target content, the method further includes: asynchronously writing the content unlocking determination result, the identification information of the player's global state data used, and the player's identification information into the blockchain network to generate an unlocking evidence record; When the platform service and data layer 13 receives a verification request for the target content, it verifies the authenticity of the acquisition conditions of the target content based on the unlocked evidence record. Furthermore, if the verification fails, the platform service and data layer 13 generates an abnormal alarm record and rejects any subsequent display requests for the target content.

[0128] In some implementations, the target content includes at least one of virtual storylines, interactive tasks, virtual items, map areas, or game function modules; when the target content is a virtual item, it further includes: dynamically adjusting the drop probability or usage effect of the virtual item based on the server-wide holding density of a specific virtual item in the player's global status data, and the server-wide holding density is negatively correlated with the drop probability.

[0129] The target content is stored in the content library with a content identifier as the unique key. Each content entry contains a content type field (type) and a specific content data field (data). The platform service and data layer 13 determines the content identifier to be unlocked based on the unlocking judgment result, queries the content library through the content identifier, obtains the data packet of the corresponding content, and sends it to the mobile client 14 via HTTP or WebSocket protocol.

[0130] For virtual item targets, after determining the content to be unlocked but before actually distributing it, the system invokes the item adjustment module. This module reads the server-wide holding density data of the item from the global state intermediary pool and calculates the actual drop probability or usage effect parameters based on a preset adjustment function.

[0131] In one embodiment, the adjustment function employs a piecewise linear function. The target holding density is set to 30%, the current holding density is D, and the baseline drop probability is P0. When D < 20%, the actual drop probability is P0 * 1.5; when 20% ≤ D ≤ 40%, the actual drop probability is P0; and when D > 40%, the actual drop probability is P0 * 0.5. Through this negative correlation adjustment, the system maintains the server-wide holding density of items within a reasonable range.

[0132] In another embodiment, the system dynamically adjusts the item's attack power bonus based on the server-wide ownership density to regulate its effectiveness. When ownership density is low, the item's effect is stronger; when ownership density is high, the effect gradually diminishes. This mechanism encourages players to actively acquire items when they are scarce, while suppressing their value when they are abundant, thereby protecting the balance of the game's economic system.

[0133] This implementation method specifically classifies the types of target content and provides a dynamic adjustment mechanism for the management of virtual item drops.

[0134] Virtual storyline refers to a playable animation or readable text story; interactive task refers to a challenge that requires player participation, such as puzzles, quizzes, and treasure hunts; virtual item refers to items that can be used in the game, such as weapons, armor, consumables, and skins; map area refers to a specific scene or space in the game world.

[0135] Regarding the drop rate adjustment of virtual items, the system sets a negative correlation between server-wide holding density and drop rate. For example, with a base drop rate of 10%, when the system detects that the server-wide holding density of a certain item is 5% (low), the drop rate is increased to 15% to increase supply; when the system detects that the server-wide holding density of the same item is 80% (high), the drop rate is decreased to 2% to control scarcity. In terms of usage effect adjustment, when the server-wide holding density is high, the system can reduce the item's attribute bonus (e.g., attack power bonus reduced from +20% to +10%); when the server-wide holding density is low, the system can maintain or increase its attribute bonus.

[0136] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the invention should be included within the scope of protection of the invention.

Claims

1. A method for dynamically unlocking real-time state content based on logical relationships, characterized in that, The method is applied to a real-world interactive platform (1) that includes a content production system (11), an event operation system (12), a platform service and data layer (13), and a mobile client (14). The method includes the following steps: S1. Create line content containing multiple nodes in the content production system (11), and configure parameterized logic rules for the target nodes in the line content; the parameterized logic rules include: local state conditions and at least one dynamic variable placeholder; the local state conditions are Boolean expressions that are judged based on the state data generated by the player in the current activity instance; the dynamic variable placeholder is a variable reference identifier, which is not bound to a specific data source during the content production stage; during the runtime parsing stage, it is dynamically bound to global state data outside the current activity instance according to its type identifier; the parameterized logic rules and the target nodes are associated through rule identifiers, and the same parameterized logic rule can be reused by multiple target nodes; S2. In the activity operation system (12), reference the created line content and configure the running parameters of the activity instance to generate an executable activity instance; S3. After the mobile client (14) joins the activity instance, it collects the player's local real-time status and uploads it to the platform service and data layer (13). The player's local real-time status includes the task completion status, item holding status and geographical location information in the current activity instance. The geographical location information is used to verify whether the player is actually located in the preset check-in area of ​​the physical venue space point bound to the target node before the unlock judgment. If the verification fails, the content unlock request is rejected. S4. When the platform service and data layer (13) receives the content unlocking request for the target node from the mobile client (14), it obtains the player's local real-time status, parses the parameterized logic rules associated with the target node, and identifies the dynamic variable placeholders therein. S5. Based on the type identifier of the dynamic variable placeholder, query the corresponding player global state data from the global state intermediary pool maintained by the platform service and data layer (13); the global state intermediary pool is a persistent state storage independent of the life cycle of any activity instance. It is an internal component of the platform service and data layer (13). Its data is not cleared after the end of any activity instance, but is continuously accumulated and updated for use by subsequent activity instances; the player global state data includes at least one of macro statistical data across activity instances, environmental state data, and player long-term behavior profile data. S6. Substitute the player's local real-time status and the player's global status data into the parameterized logic rules to perform Boolean operations, generate content unlocking judgment results, and determine the target content to be unlocked from the content library based on the content unlocking judgment results, and send it to the mobile client (14) for display; The parameterized logic rules are serialized to generate structured data, the directed graph data structure of the line content, and the multimodal content resources stored in the content library, which together constitute an executable structured data package of real-world interactive content. After the data package is structured and arranged in the content production stage, it is directly instantiated into an executable activity instance by the activity operation system (12), without the need for manual content adaptation or secondary arrangement after the activity is released. The dynamic variable placeholders enable the same structured data package to be bound to different global state data sources in different activity instances, realizing the differentiated reuse of a set of structured content in multiple venues, time periods, and player groups, forming an automated content generation pipeline from structured configuration to differentiated execution.

2. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S5, the process of constructing and maintaining the global state mediation pool includes: Real-time collection and aggregation of player behavior data generated from all running activity instances, and statistical calculation to generate macro-statistics, including the server-wide average completion rate of specific task nodes, the server-wide holding density of specific virtual items, and the average completion time of specific routes; The environmental status data is obtained by accessing an external data source through an application programming interface (API); the environmental status data includes real-time weather information, day / night time information, or holiday information of the geographical location of the activity venue. Based on players' historical behavior records across multiple activity instances, the data is tagged and constructed, and continuously updated to form a long-term player behavior profile. The profile data includes players' behavior preference tags, skill level ratings, and spending habit tags.

3. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, The Boolean operation in S6 includes at least one adaptive adjustment branch: Difficulty Adaptive Branch: When the server-wide average completion rate of a specific task node contained in the player's global state data is lower than the preset difficulty threshold, the current activity instance is determined to be in a high-difficulty interaction mode, and additional auxiliary props are issued to the mobile client (14), and the judgment conditions of the parameterized logic rules of subsequent nodes are reduced. Personalized push branch: When the player's long-term behavior profile data in the global player status data contains the preset exploration player tag, a hidden story branch or rare virtual item will be unlocked after completing the prerequisite task. The adaptive adjustment branch is executed as an additional decision logic for the Boolean operation, and together with the content unlocking decision result, determines the final target content to be issued.

4. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S1: The parameterized logic rules are stored in the database with independent data structures, and are associated with one or more target nodes through rule identifiers; Each instance shares the rule structure, but independently stores references to the global state data bound at runtime.

5. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, The computation process in S6 includes environment linkage logic: When the environmental status data in the player's global status data meets the preset environmental trigger conditions, specific content bound to the environmental trigger conditions is unlocked; the environmental trigger conditions include the current time being night, the current weather being rainy, or the current time being a specific holiday. The specific content is sent to the mobile client as the target content (14).

6. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S1: The parameterized logic rules are configured through a visual logic editor, which provides graphical nodes for representing logical AND, logical OR, and logical NOT, as well as function nodes for representing dynamic variable placeholders. The visual logic editor also supports graphical loading, modification, and reserialization storage of the configured parameterized logic rules. The visual logic editor allows users to construct the parameterized logic rules by dragging and connecting the graphical nodes and the function nodes. After construction, the editor serializes the rules into structured data. The structured data includes at least node types, parameters and connection relationships. The platform service and data layer (13) is used to parse and execute the structured data. The dynamic variable placeholder function node is only displayed as an unbound identifier during the configuration phase. During runtime, the platform service and data layer (13) automatically parses and binds the corresponding global state data source according to the type identifier of the function node.

7. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S5: The player global status data also includes the real-time status data of other players in the same team; When the parameterized logic rule contains a collaborative unlocking condition and the player's global state data satisfies the collaborative unlocking condition, a collaborative request is sent to the mobile clients (14) of all relevant players in the team. After receiving confirmation instructions from all relevant players, the system generates the content unlocking determination result and unlocks the target content for all participating players. Set a response time threshold of 55 to 60 seconds. If no confirmation instruction is received from all relevant players within the time threshold, return a 'Cooperative unlock timeout' message to the confirmed players, and the unlock request will fail. Alternatively, when the number of players who agree to confirm reaches 2 / 3 of the total number of team members, it can also be considered that the cooperative unlock condition has been met.

8. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S6: After generating the content unlock determination result and before sending the target content, the process also includes: The unlocking determination result, the identification information of the player's global state data used, and the player's identification information are asynchronously written into the blockchain network to generate an unlocking evidence record; Asynchronous writing to the blockchain network generates an unlocked evidence record. The main process of sending the target content does not need to wait for the blockchain writing operation to complete before returning the execution result. When the platform service and data layer (13) receives a verification request for the target content, it verifies the authenticity of the acquisition conditions of the target content based on the unlocked evidence record. If the verification fails, the content unlocking result is deemed invalid. The platform service and data layer (13) generates an abnormal alarm record and refuses to respond to subsequent repeated display requests for the target content.

9. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, The target content includes at least one of the following: virtual storyline, interactive tasks, virtual props, map area, or game function module; When the target content is a virtual item, the method further includes: dynamically adjusting the drop probability or usage effect of the virtual item based on the server-wide holding density of the specific virtual item in the player's global status data, and the server-wide holding density is negatively correlated with the drop probability.

10. The method for dynamically unlocking real-time state content based on logical relationships according to claim 1, characterized in that, In S5: When the update frequency is lower than a preset threshold, the system acquires cached data at a first time interval; otherwise, it acquires real-time data at a second time interval that is less than the first time interval. The second time interval is shorter than the first time interval, and the update frequency is applied to data with timeliness requirements; The platform service and data layer (13) determines the corresponding global state data acquisition strategy based on the type identifier of the dynamic variable placeholder. The acquisition strategy includes the data source address, data format parsing method and cache validity period.