• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Replacing spells.

Not open for further replies.
Level 5
Mar 27, 2008
Heya, I have a spell, when you use it the spell is removed and you gain a new spell. In other words, the spell is replaced. :) But when this happens, almost all of the spells the hero have switch places, is there any way to prevent this? cuz I imagine that it'd be pretty annoying for the player.

The Hero have 7 spells (max) and Im using a simple trigger:
  • Create Light Ball
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Create Light Ball (Light Consumer)[Start]
    • Actions
      • Unit - Add Use Light Ball (Light Consumer) to (Triggering unit)
      • Unit - Remove Create Light Ball (Light Consumer)[Start] from (Triggering unit)
Level 15
Aug 31, 2009
As Axarion says, you need to specify the button positions of the abilities correctly.

The co-ordinates are X,Y. Where X is the position going from left to right (0 is furthest left) and Y is the position going down from up (0 is at the top of the buttons... though you can't overwrite the position of something such as move or attack).

As long as you set up all the positions to be the same for the abilities that replace each other, then they won't be thrown all over the place as they try to land on top of one another.
Not open for further replies.