• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Clicking Spell Icon Activates Another

Status
Not open for further replies.
Level 28
Joined
Jul 26, 2008
Messages
1,491
Hi guys, I realize i have been posting a lot here recently, i promise i did spend at least 3 hours trying to fix the problem myself, and then combed through the hive search feature for similar threads before coming here to ask :)

Basically my issue is, when i click on my spell, it activates another spell, without activating the spell i clicked on. I do not think this is an issue of the base ID being the same, as for that issue it would trigger both spells when i activate one. In this case, when i click on spell A it only activates spell B.

To give more information, when i do not research spell B, clicking on spell A works fine. However, when i research spell B, then whenever i click on spell A it only activates spell B.

What is interesting is, when both are researched, clicking on spell A does not activate the cool down of spell A, however, if i click spell A very quickly like 3 times very fast, it still activates spell B, BUT it actually triggers the cool down of spell A (still does not activate spell A) BUT, the interesting thing is, when i do this, a strange animation covers my hero. I can only describe it as green/black balls that roll around the hero. If any of you play spider based custom maps, it is the unit for the newly spawned spiders, or if you play zombie simulator, it is the swarm unit.

Many thanks guys, i am truly stuck on this after looking through the triggers and object data for for spells multiple times :)
 
Level 13
Joined
May 10, 2009
Messages
868
Sounds like both spells are based off the same ability. That means, both of them have the same string order, and that causes what you are experiencing. I suggest that you base your spell B on something else, or use Channel and change its Base Order ID field.
 
Level 13
Joined
Oct 12, 2016
Messages
769
What are the two spells both based off of?
I know some spells of the same type activate at the same time, like Firebolt and Hurl Boulder.
Also, if you copied a spell and changed its string order ID, that won't stop them from both activating.

As a final note, do both spells have the same hotkey?
 
Level 28
Joined
Jul 26, 2008
Messages
1,491
What are the two spells both based off of?
I know some spells of the same type activate at the same time, like Firebolt and Hurl Boulder.
Also, if you copied a spell and changed its string order ID, that won't stop them from both activating.

As a final note, do both spells have the same hotkey?

It doesn't show what the spells are based off of (their base ID). I know the (text - order string- use/turn on) are Berserk for both of them, but i have tried changing that and it wont work
 
Level 13
Joined
Oct 12, 2016
Messages
769
I know the (text - order string- use/turn on) are Berserk for both of them
OK, I see. That would be the problem; they are both "berserk". What do you want to do with each separate spell?
If you want, for example, 1 for attack speed and 1 for movement speed, I know other spells you can base it off of.

For example:
Metamorphosis: make the morphed unit have increased attack speed or movement speed for its duration (I do not recommend this if you use spellbooks)
Potion of Speed: Useful buff spell for movement speed. It's an "item" ability, but can be changed to a "hero" ability and modified with triggers. Has a casting time though.

As Bloodsoul mentioned, Windwalk is also a good option for movement speed, but with invisibility.
 
Status
Not open for further replies.
Top