• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Shapeshift - Problem

Status
Not open for further replies.
Level 2
Joined
Jul 3, 2014
Messages
14
I want make a hero who will be able to change form every second.
But I have a problem when I give the same spell to both forms it's works like it should, but when i give spell to one of these form and don't to second form and hero transform himself CD of that spell will reset.
Example :
Bear form : Roar, normal form, bash
Normal form : Roar, bear form, root

Roar works correctly
Bash and root reset CD when you transform back.

How can i fix it ?
PS : Hero doesn't learned that spells, spells are from units.
 
Can you try with adding abilites to first unit only and then making them permanent?

native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean

If you are gui user:
  • Custom script: call UnitMakeAbilityPermanent(yourUnit, true, 'A000')
'A000' is only an example, you have to look at rawcode in object editor.
 
Level 2
Joined
Jul 3, 2014
Messages
14
error.jpg

This happened, i am new at W3 editor
 
Last edited by a moderator:
Level 2
Joined
Jul 3, 2014
Messages
14
Same problem, CD of that spell reset when i transform back.
Can fix it when that both forms have the same spells, but each should be hidden other spells ?
Example:
Bear form: Roar, druid form, stun, root (hide)
Druid form: Roar, bear form, root, stun (hide)
CD will not reset, but druid form will not be able to use stun and root bear form again.
 
Level 2
Joined
Jul 3, 2014
Messages
14
Yes i can, but there is nothing to use

TEST3 is the same map but with spellbook try
 

Attachments

  • TEST2.w3x
    13 KB · Views: 53
  • TEST3.w3x
    13.1 KB · Views: 53
Level 2
Joined
Jul 3, 2014
Messages
14
That's look great but that second form may not have that spell.
I need that spell in first form ,but doesnt castable in second.
And when i transform back into first form that spell may not reset CD.
 
Level 2
Joined
Jul 3, 2014
Messages
14
Yeah it's work ! Really thanks for help.
I have only one last question, how to do it for that second form too ?
That second form have spell what first form cannot cast.
Btw : do you want that reputation from me ?
 
Status
Not open for further replies.
Top