Hearthstone

Hearthstone game events.

Please read the overwolf.games.events documentation page to learn how to use Overwolf game events. 

Game ID

  • 9898

Sample app

Available Features:

  • scene_state
  • collection

Info Updates

The Game Events Provider keeps an info DB with various information about the game state.
Updates about this information can be received as events by registering an event listener using overwolf.games.events.onInfoUpdates2()
It is also possible to get the current available information using overwolf.games.events.getInfo()

Feature Information
collection
Key Category Values Notes Since Version
collection game_info

The current cards collection of the local player.

  • The “collection”  data is available as soon as the player logins into Hearthstone.
  • The collection is getting updated when the user adds/removes a card.

Example for cards “collection”:

{ CS2_065: "{"id" : "CS2_065", "count" : "1", "premiumCount" : "0" }",
  CS1_113: "{"id" : "CS1_113", "count" : "2", "premiumCount" : "0" }",
  NEW1_011: "{"id" : "NEW1_011", "count" : "2", "premiumCount" : "0" }",
  EX1_131: "{"id" : "EX1_131", "count" : "1", "premiumCount" : "2" }",
  CS2_121: "{"id" : "CS2_121", "count" : "2", "premiumCount" : "0" }",
  …
}

“Card” structure:

{
  "id" : "card_id" ,
  "count" : "int" , 
  "premiumCount" : "int"
}  
  • “id” – The card’s id
  • “count” – The amount of regular cards
  • “premiumCount” – The amount of premium (golden) cards

 

 

 117.1.1
scene_state
Key Category Values Notes Since Version
scene_state game_info

 The current game scene.

 

Can be one of the following:

  •  scene_startup
  • scene_login
  • scene_hub
  • scene_gameplay
  • scene_collectionmanager
  • scene_packopening
  • scene_tournament
  • scene_friendly
  • scene_fatal_error
  • scene_draft
  • scene_credits
  • scene_reset
  • scene_adventure
  • scene_tavern_brawl
  117.1.1