User:Sunjammer/method: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m (Adding sample categories)  | 
				m (Fixing categories)  | 
				||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__  | __NOTOC__  | ||
Returns '''1''' if a character has a particular '''_Talent''' and '''0''' if they do not.  | Returns '''1''' if a character has a particular '''_Talent''' and '''0''' if they do not.  | ||
<div class="osiris" style="font-family:monospace; border: 1px dashed #777777; white-space:pre; line-height:1.25em; padding:1.0em;"><!--  | <div class="osiris" style="font-family:monospace; font-size: 10pt; border: 1px dashed #777777; white-space:pre; line-height:1.25em; padding:1.0em;"><!--  | ||
-->[[Osiris/API/query|query]] CharacterHasTalent (  | -->[[Osiris/API/query|query]] CharacterHasTalent ( <!--  | ||
--><br/>     [in]([[Osiris/API/CHARACTERGUID|CHARACTERGUID]])_Character <!--  | |||
<  | --><br/>    ,[in]([[Osiris/API/STRING|STRING]])_Talent <!--  | ||
<  | --><br/>    ,[out]([[Osiris/API/INTEGER|INTEGER]])_Bool <!--  | ||
)  | --><br/>)</div><dl>  | ||
</div>  | |||
<dl>  | |||
<dt>Parameters:  | <dt>Parameters:  | ||
<dd><dl>  | <dd><dl>  | ||
| Line 29: | Line 27: | ||
* [[Osiris/API/CharacterLockedTalent|CharacterLockedTalent]]  | * [[Osiris/API/CharacterLockedTalent|CharacterLockedTalent]]  | ||
[[Category:Character   | [[Category:Character Queries]]  | ||
[[Category:Talent   | [[Category:Talent Queries]]  | ||
Latest revision as of 12:54, 19 November 2017
Returns 1 if a character has a particular _Talent and 0 if they do not.
query CharacterHasTalent ( 
[in](CHARACTERGUID)_Character
,[in](STRING)_Talent
,[out](INTEGER)_Bool
)
[in](CHARACTERGUID)_Character
,[in](STRING)_Talent
,[out](INTEGER)_Bool
)
- Parameters:
 - _Character
 - the GUID of the character to be checked
 - _Talent
 - the name of the talent to check for
 - _Bool
 - the result (0 or 1)
 
- Returns:
 - 1 if the character has _Talent, or 0
 
Notes
- Fails if _Character does not exist.
 - The valid talents can be found at scripting talent types.