• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Spell] select mastery

Status
Not open for further replies.
Level 13
Joined
Feb 13, 2012
Messages
427
hello i want to make an ultimat spell that allows to change the spell type ans missile that tha hero uses for exsemple the hero in question starts with an ice missile and ice beasd spells and and when you use the heros ultimat (beasd on the spell book ability in the editor) magic mastery (name still in pleaning) and select fire the hero then uses fire missile and fire spells ect , pleass help my with how to triger it pleass 🙏🙏
thank you
 
the complexity depends on the spells themselves. For example you can change the missile model path via triggers (not sure at the moment if it works or not), but you cannot change icon.
So if you want to change spell icons as well when changing mastery, then I don't think you have any other choice but to create a copy of the spell with different icon (and other stuff like buffs, etc.).
Of course, here I assume that the spells are same, but just some visuals change. If those are completely different spells, then that won't help here.

Detect when unit changes mastery via triggers and just remove the old mastery spells and give the unit the new mastery ones.
If those abilities are hero abilities, then removing them via triggers may not work. What you can do instead is give the hero all mastery abilities in object editor and in triggers at map initialization disable all hero's abilities except for his current mastery.
Detect when hero learns an ability and via triggers add additional skill points to hero and force the hero to spend them on the same abilities but from the remaining (disabled) masteries.
And finally, when hero casts mastery change, you just disable spells from current mastery and enable the next group of spells
 
You can change icon on spells and it works (at least on patch 1.31)
  • Ability - Set Icon of <YourSpell> to ReplaceableTextures\CommandButtons\BTNNewIcon123.blp
i want to chang the ability like swaping betwin bllizerd and flamstrick for exsemple
 
You can change icon on spells and it works (at least on patch 1.31)
  • Ability - Set Icon of <YourSpell> to ReplaceableTextures\CommandButtons\BTNNewIcon123.blp
That will only work if the hero is the only one with the spell. If multiple units/same heroes have that spell, the icon will change for all of them.

i want to chang the ability like swaping betwin bllizerd and flamstrick for exsemple
Then you will need to do what I wrote:
  • if those are non-hero spells, you can just remove the current spells from unit and add spells of the other mastery.
  • if those are hero spells, you will need to do the trick I wrote with hiding/disabling spells of inactive mastery
 
hello i want to make an ultimat spell that allows to change the spell type ans missile that tha hero uses for exsemple the hero in question starts with an ice missile and ice beasd spells and and when you use the heros ultimat (beasd on the spell book ability in the editor) magic mastery (name still in pleaning) and select fire the hero then uses fire missile and fire spells ect , pleass help my with how to triger it pleass 🙏🙏
thank you
Please let people know which version of Warcraft 3 you're using. There's a lot of differences between the new and old versions that change what can be done.

Edit: Attached a map with a little system for swapping between two sets of abilities (normal and alternate). Normal is what the Hero learns from their Skill Menu and uses by default. Alternate abilities are shown when you swap into your Alternate stance and share a cooldown with their Normal counterpart.
 

Attachments

Last edited:
i am using the latest version reforgd also its close to what i was invisoning but i want it like to swap betwin 3 spell typs and it being a hero ability that also chang the heros attck misile tyap
 
Status
Not open for further replies.
Back
Top