WoW:API SwapRaidSubgroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Corrected template usage - Oops guess we need an API version)
m (Move page script moved page API SwapRaidSubgroup to API SwapRaidSubgroup without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
{{protectedapi|1.0|}}


Swaps two players in a raid.
Swaps two players in a raid.
Line 21: Line 20:
----
----
;''More info on raid indecies''
;''More info on raid indecies''
:(As of 3.1, this no longer accurate. Raid indices now reorder themselves every time the raid layout changes.)


:  Regarding the corrispondance of raid indecies to players.  Let C be the list of players in a raid ordered by their raid index.  It appears that after any series of changes is made to the raid, at the end all players from C still in the raid will retain their original ordering (even if they left and rejoined the raid), with new members existing at any index 0<i<=40.
:  Regarding the corrispondance of raid indecies to players.  Let C be the list of players in a raid ordered by their raid index.  It appears that after any series of changes is made to the raid, at the end all players from C still in the raid will retain their original ordering (even if they left and rejoined the raid), with new members existing at any index 0<i<=40.
----
----

Latest revision as of 04:47, 15 August 2023

WoW API < SwapRaidSubgroup

Swaps two players in a raid.

SwapRaidSubgroup(index1, index2);

Arguments
index1 - ID of first raid member (1 ... MAX_RAID_MEMBERS)
index2 - ID of second raid member (1 ... MAX_RAID_MEMBERS)

Example
Swap raid member (ID=20) with raid member (ID=25)
SwapRaidSubgroup(20, 15);

More info on raid indecies
(As of 3.1, this no longer accurate. Raid indices now reorder themselves every time the raid layout changes.)
Regarding the corrispondance of raid indecies to players. Let C be the list of players in a raid ordered by their raid index. It appears that after any series of changes is made to the raid, at the end all players from C still in the raid will retain their original ordering (even if they left and rejoined the raid), with new members existing at any index 0<i<=40.