• 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.

[JASS] need help replacing abilities

Status
Not open for further replies.
Level 3
Joined
Sep 14, 2007
Messages
43
spell 1:

the hero does something for 3 sec and after that the first spell is replaced by spell 2.
spell 2:
the hero makes an explosion and after that spell 2 is replaced by spell 1.

now the problem is that while the hero has spell 2 he can relearn spell 1 again because it was removed.

i'm thinking of making a connection spell.
A spell that can be learned but is invisible after you learn it and each time the player spends skill point on that spell spell1 and spell2 will gain lvls.

if i want to create a connection spell do i need to make a trigger that works every couple of seconds and checks if the connection spell was learned or can i do it otherwise?

and is there even a need in a connection spell or can i fix the problem without it?

if you dont understand me please tell me and i will edit my post, thanks for any kind of help :)
 
Level 3
Joined
Sep 14, 2007
Messages
43
i do add / remove
here:
call UnitRemoveAbility(u,'A043')
call UnitAddAbility(u,'A03U')
call SetUnitAbilityLevel(u,'A03U',level)

thats not the problem
the problem is when the hero has the second spell which isnt on his ability list he can relearn the deleted spell which is on his ability list...
 
Level 3
Joined
Sep 14, 2007
Messages
43
Thanks :D
i already made a connection ability and it works nice :)
what i mean by connection spell is a spell that does nothing but is on the hero ability list and the other 2 spells are connected to him.
 
Status
Not open for further replies.
Top