New Update: Added a Three New Macros


Health Regeneration

Description: A macro that gradually regenerates a player's health over time until it reaches a specified maximum value.

Input:

  • currentHealth: The player's current health.
  • maxHealth: The player's maximum health.
  • regenRate: The amount of health to regenerate per second.

Output:

  • The player's updated health value.

Cooldown Timer

Description: A macro that implements a cooldown timer for abilities or actions. Once an ability is used, it cannot be used again until the cooldown period has elapsed.

Input:

  • ability: The ability or action to be placed on cooldown.
  • cooldownTime: The duration of the cooldown period in seconds.

PriorityQueueSelector

Description: The PriorityQueueSelector macro takes a list of items, each associated with a priority level, and outputs the highest-priority item. If multiple items share the highest priority, the function randomly selects one of them.

Input:

  • items: A list of items to be selected from.
  • priorities: A list of priorities corresponding to each item in the items list. Higher values indicate higher priority.

Output:

  • The highest-priority item, selected randomly if there are ties.

Files

ForeverFunctions.zip 283 kB
15 days ago

Get Blueprints Forever: An Expanding Collection

Buy Now$1.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.