Workshop.codes
Create

Swap Ability Slots Last updated April 03, 2025

Description

Exchanges the abilities assigned to two specified button slots on a player, swapping their functions, cooldowns, and charge counts simultaneously. Both slots must belong to the same player. Useful for randomization mechanics, ability shuffle modes, or mirror-control effects.

Snippet

Swap Ability Slots(Event Player, Button(Ability 1), Button(Ability 2));

Properties

Returns: Void
Parameters: Player, Button A, Button B

Player
Type: Player, Default: Event Player
The player whose ability slots will be swapped.

Button A
Type: Button, Default: Ability 1
The first ability slot to swap.

Button B
Type: Button, Default: Ability 2
The second ability slot to swap.

Workshop.codes