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

[Spell] Spell book

Status
Not open for further replies.
Level 4
Joined
Nov 5, 2011
Messages
63
How can i make a buy spell which it level up when you buy it again and when you buy it it goes into your spell book how can i make like that?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Add all the spells you need into the spell book.

Use Player Enable/disable ability to disable the abilities (not the spell book) initially. When you buy the ability, enable the ability for the buying player. When you buy again (check for ability level > 0), increase the level of the ability you buy.
 
Level 9
Joined
Nov 19, 2011
Messages
516
You can go also this way:

1.Put all spells into spell book.
2.Set all spells level 1 tip with no level, level 2 with level 1 tip and so on
3.Set all spells level 0 do nothing
4.Make trigger:

Event:
Unit buy an item
Condition:
<<diffrent for each spll-item relations>>
Acction:
Increse level of (Your Spell) for (Your Unit)

5.Its ready.

This way works with regular spells, so I don't know at all if it will work with spellbook or not.
 
Status
Not open for further replies.
Top