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

[Solved] Buyable Abilitie Problem

Status
Not open for further replies.
Level 3
Joined
Jun 9, 2008
Messages
36
Hey guys, i got a big problem.

I'm creating and orpg and i want to make players choose 4 abilities they like from a big abilitie pool ( some shops ).

So when a player buys the ability they should be stored at normal hero abilitie lvl up system ( like in a normal game ur hero lvls up gets a point and can increase the lvl of one of his 4 abilities)
_________________________________________________________

now the problem: i can make the unit buy an abilitie from a shop, but the abilitie is automatically set to lvl 1 and when the hero lvls up u cant increase the abilites lvl, cause (wtf?!) the hero doesnt get a skillpint so spend

im hoping 4 help thanks alot
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
This thread seems to have solved that problem.

Basically, the map in the last post is a good example of how it works. It uses the Engineering Upgrade to add those abilities.
I just don't like the way he triggers the "add ability".
Personally, I prefer some simple list (PurchasedItem[1] = Storm Bolt Item / PurchasedAbility[1] = Storm Bolt) for that, or you could link them directly with hashtables.
 
Last edited:
Status
Not open for further replies.
Top