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

[Trigger] Buyable Spells uppgrade

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
All items are runes

Map Init
Set Ability[1] = Storm Aura
Set Item[1] = Storm Aura Rune
Set Ability[2] = Fire Aura
Set Item[2] = Fire Aura Rune
etc etc
Set NumberOfAbilities = <number of abilities>

When Someone uses item
For Each integer from 1 to NumberOfAbilities
----If Item[integer A] is equal to (Item Being Manipulated)
------Then
---------if Ability level of (Triggering Unit) of Ability[integer A] is equal to 0
-----------Then
-------------Add Ability[integer A] to (Triggering Unit)
-----------Else
-------------Increase (Triggering Unit)s Ability[integer A] level
------Else

I Guess you can put limits by yourself
 
Level 4
Joined
Aug 9, 2008
Messages
67
Do you want the thing that is bought to level the spell or do you want it do make leveling the spell available?
If it is the former then:
  • Event - Item is aquiared
  • Condition - Item being manipulated is equal to <the item required for upgrade>
  • Event - Unit - Level ability <the corresponding ability> for <triggering unit>
And just make the item so that it gets used when you get it

Does that help (I appologise for my incapability to use the
Code:
 tags:cry:

EDIT: Wow I took long to post, anyways now you have 2 solutions
 
Status
Not open for further replies.
Top