Replacing spells.

Status
Not open for further replies.
Level 5
Joined
Mar 27, 2008
Messages
107
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
Joined
Aug 31, 2009
Messages
776
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.
 
Status
Not open for further replies.
Top