Text-Formatting

From Intrigues Wiki
Revision as of 16:20, 8 January 2024 by Tayfunwiki (talk | contribs)
Dynamic Text

Text-Formatting Wiki Page

Overview

Text-formatting tags are special placeholders used in dialogue nodes and other text-based elements within the game. They dynamically replace text with specific game data, enhancing the interactive storytelling experience. This document outlines the key text-formatting tags and their functions.

Text-Formatting Tags

  1. Conspirator and Target Names
    • {c*Name}: Returns the name of the Conspirator.
    • {t*Name}: Returns the name of the Target.
  2. Full Names with Titles
    • {c*FullName}: Returns the full name of the Conspirator, including title and family name. Example: "King Baldur of Forheaven".
    • {t*FullName}: Returns the full name of the Target, similar to the above format.
  3. Cultural Background
    • {c*Culture}: Returns the culture name of the Conspirator.
    • {t*Culture}: Returns the culture name of the Target.
  4. Family Affiliation
    • {c*Family}: Returns the family name of the Conspirator.
    • {t*Family}: Returns the family name of the Target.
  5. Roles in Society
    • {c*Role}: Returns the role name of the Conspirator. Example: "Engineer".
    • {t*Role}: Returns the role name of the Target. Example: "Engineer".
  6. Titles
    • {c*Title}: Returns the title of the Conspirator. Example: "King".
    • {t*Title}: Returns the title of the Target. Example: "Queen".
  7. Clan Membership
    • {c*Clan}: Returns the clan name of the Conspirator.
    • {t*Clan}: Returns the clan name of the Target.
  8. Gender Identification
    • {c*Gender}: Returns the gender of the Conspirator.
    • {t*Gender}: Returns the gender of the Target.
  9. Age Details
    • {c*Age}: Returns the age of the Conspirator.
    • {t*Age}: Returns the age of the Target.
  10. Private and Public Variables
    • {c:varname}: Returns the value of a specified Conspirator's private variable. Example: "Coins".
    • {t:varname}: Returns the value of a specified Target's private variable. Example: "Health".
    • {g:varname}: Returns the value of a specified public variable. Example: "GameMode".
  11. Scheme Graph Variables
    • {table:varname}: Returns the value of a specified Scheme graph variable.
  12. Language Localization
    • {l:language_key}: Returns the localized text corresponding to the specified language key. Example: "welcome_text".

Usage Notes

  • These text-formatting tags can be used in dialogue nodes or any other text field in the game to dynamically display relevant information.
  • They help create a more immersive and personalized gaming experience by reflecting the game's current state and player choices.
  • It is crucial to ensure the correct spelling and format of these tags for them to work as expected.

Examples in Game

In dialogue nodes, the text "Welcome, {c*Name}! You are a {c*Role} from the {c*Clan} clan." could dynamically display as "Welcome, Aria! You are an Engineer from the Arcanum clan." based on the current Conspirator's details.

Conclusion

Utilizing these text-formatting tags effectively can significantly enhance the narrative depth and player engagement in the game. They allow for dynamic text that adapts to the player's actions and the game world's state.


Dynamic Text

Text-Formatting Wiki Page - Dynamic Text Controllers

Overview

Dynamic text controllers use various variables (float, int, bool) to conditionally format text and dialogue options in Dialogue Nodes. They allow conditional rendering of text and influence the availability of dialogue choices based on variable values.

Dynamic Text Controllers and Indicators

  1. Basic Controllers:
    • $if[condition]: Checks a condition based on the Conspirator's variable.
      • Example: $if[boolVarName==true].
    • &if[condition]: Checks a condition based on the Target's variable.
      • Example: &if[varname==5].
    • !if[condition]: Checks a condition based on a public variable.
      • Example: !if[varname!=2].
    • #if[condition]: Checks a condition based on a Scheme variable.
      • Example: #if[varname<<5].
  2. Static Controllers:
    • $if[HasPolicy==Economy]: Checks if the Conspirator's clan has the 'Economy' policy.
    • &if[HasPolicy==Monogamous]: Checks if the Target's clan has the 'Monogamous' policy.
    • More static controllers are expected in future updates.

Usage Examples

Example 1: Conditional Dialogue Choice

  • $if[Coin>20]Buy: If the Conspirator's Coin variable is greater than 20, the "Buy" option is available. If not, the choice is hidden or disabled.

Example 2: Conditional Text Display

  • ...&if[Power>=20]{"My Lord.. The target is very powerful! We must make an informed decision.."}: This text appears only if the Target's Power variable is 20 or greater.

Implementing Controllers in Game

These controllers are directly inserted into the text within Dialogue Nodes. The Intrigues evaluates these conditions and renders the text accordingly.

Conclusion

Dynamic text controllers are essential tools for creating responsive and engaging dialogue systems. They enable a narrative that adapts to in-game circumstances and decisions, providing a richer gaming experience.