Difference between revisions of "Osiris/API/AddToParty"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
Line 4: Line 4:
 
Adds the characters controlled by the [[Osiris/API/CharacterGetReservedUserID|user]] with User ID '''_Source''' to the party to which the user with User ID '''_Target''' belongs.
 
Adds the characters controlled by the [[Osiris/API/CharacterGetReservedUserID|user]] with User ID '''_Source''' to the party to which the user with User ID '''_Target''' belongs.
 
===== Notes =====
 
===== Notes =====
* A party is a group of all characters controlled by one or more [[Osiris/API/CharacterGetReservedUserID|users]], along with these characters' [[Osiris/API/CharacterAddToPlayerCharacter|party followers]], [[Osiris/API/CharacterIsSummon|summons]]. By default, all users are in the same party. Players can split parties by right-clicking on a character controlled by another user and selecting "Kick from party". From script, you can create multiple parties using some of the APIs mentioned below.
+
* A party is a group of all characters controlled by one or more [[Osiris/API/CharacterGetReservedUserID|users]], along with these characters' totems (and in Game Master mode, also characters possessed by the game master). By default, all users are in the same party. Players can split parties by right-clicking on a character controlled by another user and selecting "Kick from party". From script, you can create multiple parties using some of the APIs mentioned below.
 
* All characters from a single user are always in the same party.
 
* All characters from a single user are always in the same party.
 
* Never add NPCs to a party, as many code paths do not support that situation (it is not possible with this API, but it is possible with another one).
 
* Never add NPCs to a party, as many code paths do not support that situation (it is not possible with this API, but it is possible with another one).

Revision as of 11:16, 17 January 2019

Full Definition(s)
  • call AddToParty((INTEGER)_Source, (INTEGER)_Target)
Description

Adds the characters controlled by the user with User ID _Source to the party to which the user with User ID _Target belongs.

Notes
  • A party is a group of all characters controlled by one or more users, along with these characters' totems (and in Game Master mode, also characters possessed by the game master). By default, all users are in the same party. Players can split parties by right-clicking on a character controlled by another user and selecting "Kick from party". From script, you can create multiple parties using some of the APIs mentioned below.
  • All characters from a single user are always in the same party.
  • Never add NPCs to a party, as many code paths do not support that situation (it is not possible with this API, but it is possible with another one).
See Also