Difference between revisions of "Osiris/API/AddToParty"
From Divinity Engine Wiki
m |
m |
||
Line 6: | Line 6: | ||
* 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' [[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. | ||
* 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). | ||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterAddToParty|CharacterAddToParty]] | * [[Osiris/API/CharacterAddToParty|CharacterAddToParty]] |
Revision as of 07:39, 3 September 2018
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' party followers, 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.
- 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).