Page:
Adding a Class
No results
10
Adding a Class
LunarTides edited this page 2026-01-12 09:02:29 +01:00
Warning
Most of this no longer applies as of 4.0.0. An updated version of this wiki is in progress: https://hs.lunartides.dev/guides/creating/classes/use/ (#447)
Adding a class in Hearthstone.js is surprisingly easy. Here's how:
- Open the Hearthstone Runner.
- Enable Developer Mode by typing
m. - Open the Class Creator by typing
s. - It will now ask you:
What should the name of the class be?: The name of the class you want to create. This can be anything (eg:Mage).What should the default hero's name be?: The name that you want the default hero to be named. This can be anything (eg:Jaina Proudmoore).What should the name of the hero power be?: What the name of the hero power should be (eg: 'Fireblast')What should the description of the hero power be?: What the description of the hero power should be (eg:Deal 1 damage.)How much should the hero power cost?: What the hero power should cost. For all classes except Demon Hunter, this is 2. Just press enter to apply the default.
- Open the specified heropower path in your favorite code editor.
- Add logic to the
heropowerability and add text to it.
And that's it. Now if you put Class Name in a new card, it works.