WoW:API HasSoulstone: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API HasSoulstone to API HasSoulstone without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
Returns true if your character possess a soulstone.
Returns whether or not, and how, your character can self-resurrect.


  HasSoulstone();
  text = HasSoulstone()
 
----
;''Arguments''


==Parameters==
===Arguments===
:''none''
:''none''


----
===Returns===
;''Returns''
:;text : string or nil - the type of self-resurrect available to your character (known values are "Use Soulstone", "Reincarnate", and "Twisting Nether") or nil if none are available
 
:;Boolean
 
----
;''Example''
if HasSoulstone() then
  --do something
end;


;''Result''
==Details==
Returns true if your character possess a soulstone.
* This function also returns nil if used while your character is alive.
* The return values from this function are (presumably) localized.
* The text returned by this function is used in the default Blizzard UI as part of the popup that appears when your character dies, to determine whether the second button should be shown, and if so, what text should be shown on it.
* The "Twisting Nether" self-resurrection is a proc from the item [[Darkmoon_Card:_Twisting_Nether]].

Latest revision as of 04:46, 15 August 2023

WoW API < HasSoulstone

Returns whether or not, and how, your character can self-resurrect.

text = HasSoulstone()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

text
string or nil - the type of self-resurrect available to your character (known values are "Use Soulstone", "Reincarnate", and "Twisting Nether") or nil if none are available

Details[edit]

  • This function also returns nil if used while your character is alive.
  • The return values from this function are (presumably) localized.
  • The text returned by this function is used in the default Blizzard UI as part of the popup that appears when your character dies, to determine whether the second button should be shown, and if so, what text should be shown on it.
  • The "Twisting Nether" self-resurrection is a proc from the item Darkmoon_Card:_Twisting_Nether.