Hi folks.
I am helping someone making a few features in his map. One of the things that he requested, was a hearthstone (Like the one in WoW). I took a quick look around the forum, but I couldn't really find anything that satisfied my criteria for it... so I made one myself.
The hearthstone differs from a Mass Teleport based spell in a few key areas. One being that it can be interrupted when taking damage, another being that Mass Teleport needs a target to function, while Hearthstone is cast as a non-target spell that sends you to a single location (which may be changed to different locations in-game).
Now, what I am wondering is, if I just overlooked it, or if there really isn't a Hearthstone ability ready for use on this forum. If the latter is the case, I might post mine.
Here's what my hearthstone spell can do, thus far:
I am helping someone making a few features in his map. One of the things that he requested, was a hearthstone (Like the one in WoW). I took a quick look around the forum, but I couldn't really find anything that satisfied my criteria for it... so I made one myself.
The hearthstone differs from a Mass Teleport based spell in a few key areas. One being that it can be interrupted when taking damage, another being that Mass Teleport needs a target to function, while Hearthstone is cast as a non-target spell that sends you to a single location (which may be changed to different locations in-game).
Now, what I am wondering is, if I just overlooked it, or if there really isn't a Hearthstone ability ready for use on this forum. If the latter is the case, I might post mine.
Here's what my hearthstone spell can do, thus far:
- Starts a channel (8 seconds by default).
- If the cast is finished, the casting unit is sent to a designated location.
- If the caster takes damage while casting the spell, the cast is interrupted.
- The cast has a casting bar made from scratch for this spell.
- It does not rely on any standard variables such as Custom Unit Value, and does not require an indexer (or anything else you'd have to set up, really) to work, which means that it shouldn't have any conflicts with any other system.
- It uses floating text for the bar.
- Cast-bar updates are automatically disabled whenever nobody is casting hearthstone, to minimize the load. As all strings are pre-generated, this load is rather minimal in the first place.
- The entire thing is 100% GUI, and the only JASS custom scripts are used for clearing memory leaks.
- Should be 100% memory leak free
- 100% MUI
- The whole thing is ready to paste, and any changes to the hearthstone system is done in a separate trigger file, so that map creators will only have to look at the variables that they want to adjust, rather than the entire code.
- An example for setting a new location for the hearthstone of a player ingame
- An option that can be toggled on/off which makes the hearthstone grab every nearby unit owned by the player and teleport those as well.
- A cooldown system that refreshes the cooldown if the cast isn't successfully completed.
Last edited: