Difference between revisions of "Osiris/API/CharacterReservedUserIDChanged"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterReservedUserIDChanged)
 
m
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
* '''_UserID''': The id of the user to which which the character was assigned.
 
* '''_UserID''': The id of the user to which which the character was assigned.
 
===== Notes =====
 
===== Notes =====
* When a character is no longer assigned to any user, i.e. if it was a player character and was then made an [[Osiris/API/CharacterMakeNPC|CharacterMakeNPC]], '''_UserID''' will be the reserved value '''-65536'''.
+
* When a character is no longer assigned to any user, i.e. if it was a player character and was then made an [[Osiris/API/CharacterMakeNPC|NPC]], '''_UserID''' will be the reserved value '''-65536'''.
* A character can either be explicitly assigned to a user from [[Osiris/API/CharacterAssignToUser|story]], or by the game engine when a new user connects to a game. In both cases, this event gets thrown
+
* A character can either be explicitly assigned to a user from [[Osiris/API/CharacterAssignToUser|story]], or by the game engine when a new user connects to a game. In both cases, this event gets thrown.
 +
 
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterAssignToUser|CharacterAssignToUser]]
 
* [[Osiris/API/CharacterAssignToUser|CharacterAssignToUser]]
 +
* [[Osiris/API/GetUserCount|GetUserCount]]
 +
* [[Osiris/API/UserConnected|UserConnected]]
 +
* [[Osiris/API/UserDisconnected|UserDisconnected]]
 +
* [[Osiris/API/CharacterGetReservedUserID|CharacterGetReservedUserID]]
 
* [[Osiris/API/IterateUsers|IterateUsers]]
 
* [[Osiris/API/IterateUsers|IterateUsers]]
 
   
 
   
[[Category:Osiris Events]]
+
[[Category:Osiris Events|CharacterReservedUserIDChanged]]

Latest revision as of 16:07, 19 December 2017

Full Definition(s)
  • event CharacterReservedUserIDChanged((CHARACTERGUID)_Character, (INTEGER)_UserID)
Description

Thrown when a character gets assigned to a user, or when a character no longer is assigned to any user.

Parameters
  • _Character: The character that was (re-)assigned.
  • _UserID: The id of the user to which which the character was assigned.
Notes
  • When a character is no longer assigned to any user, i.e. if it was a player character and was then made an NPC, _UserID will be the reserved value -65536.
  • A character can either be explicitly assigned to a user from story, or by the game engine when a new user connects to a game. In both cases, this event gets thrown.
See Also