Habitica icon

Habitica

Habitica API

Overview

This node applies a selected skill (spell) in the Habitica game environment. It allows users to cast various skills on tasks, party members, or themselves, depending on the skill type. This is useful for automating gameplay actions such as healing, attacking, or buffing party members within Habitica.

Use Case Examples

  1. Casting 'Burst of Flames' on a specific task to deal damage.
  2. Using 'Healing Light' to heal oneself.
  3. Applying 'Snowball' on a party member to transform them.

Properties

Name Meaning
Skill Name The specific skill (spell) to be applied, selected from a predefined list of skills categorized by character class and effect target (task, party, self, or party member).
Task The task on which to cast the skill, required for skills that target tasks such as 'Burst of Flames' or 'Brutal Smash'. This property supports selection by list or by entering a task ID.
Party Member The party member on whom to cast the skill, required for skills that target party members such as 'Snowball' or 'Spooky Sparkles'. This property supports selection by list or by entering a user ID.
Request Options Additional options for the request such as batching, SSL certificate validation, proxy settings, and timeout configuration to control how the skill casting request is sent.

Output

JSON

  • castResult - The result of the skill cast action, including success or failure details.
  • targetId - The ID of the task or party member on which the skill was cast.
  • skillId - The identifier of the skill that was applied.

Dependencies

  • Habitica API
  • An API key credential for authentication

Troubleshooting

  • Ensure the correct task or party member ID is provided when casting skills that require a target; otherwise, the request may fail.
  • If SSL certificate validation errors occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.
  • Batching options should be configured properly to avoid request throttling or timeouts.
  • Common error messages may include invalid ID format or unauthorized access due to missing or incorrect API credentials.

Links

  • Habitica API Documentation - Official API documentation for Habitica, useful for understanding skill casting endpoints and parameters.

Discussion