• 🏆 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!

How to make!!! arrow spell book!!!?

Status
Not open for further replies.
Level 7
Joined
May 6, 2008
Messages
284
How i can make arrow book like ''u can choose 1arrow ability from these 3 Ice,Fire,Dark'' then the book fanish and the skill comes to ''hero abilities''
 
Level 2
Joined
Jul 12, 2008
Messages
34
Try this :

Create (for each type of spell) a dummy spell, for exaple Ice. Make it off Thunder Clap. Set every damage,aoe,manacost etc to zero and change icons etc. Make its Editor Name as Ice0 or whatever, so you can distinguish it from the actual spell that will be used. The real spell will have normal name. Now create a variable of type "unit" named LearningHero.
Add each dummy spell in the spellbook. Now create a trigger as such :

  • Spellbook trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Ice0
    • Actions
      • Set LearningHero = (Casting unit)
      • Unit - Add Ice to LearningHero
Ice0 = dummy spell
Ice = Actual spell hero/unit will use
LearningHero = variable that picks the hero/unit that learns the ability.

Wish this helps.
 
Status
Not open for further replies.
Top