TargetNotRequired

From Intrigues Wiki

TargetNotRequired Property in Scheme Class

Overview

The TargetNotRequired property in the Scheme class indicates whether a specific target actor is not essential for initiating the scheme. This property helps define the nature of the scheme, particularly in terms of its operational requirements.

Property Definition

[field: SerializeField]
public bool TargetNotRequired { get; private set; }

Description

  • Type: bool
  • Accessibility: Publicly accessible for reading, but the value can only be set within the Scheme class.

Functionality

  • When TargetNotRequired is set to true, it indicates that the scheme can be initiated and executed without specifying a particular target actor.
  • This property is used to distinguish schemes that are general or self-targeted from those that require a specific target actor.

Usage

This property is crucial in the game's logic to determine the applicability of schemes in various contexts. It allows for more dynamic and flexible gameplay, where players can engage in schemes that do not necessarily involve targeting another character.

Remarks

  • The TargetNotRequired property is particularly relevant in games with complex interaction systems, where players have the freedom to choose from a wide range of actions and strategies.
  • It enhances the design of schemes by providing options for actions that are more general in nature or focused on the player's character itself.