HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero pick spells

03-07-2010, 05:38 PM#1
blution_mor
First, hello everyone! This is my first post...
So basically, the thing im trying to do is the hero to learn custom spells....
I've made a shop, with recipes for the skill...
You buy the recipe, and you learn the skill...
The i am trying to make the spells, after you buy the item, to become like default skills to the hero... Like when you gain a level, you can spend the skillpoint on it, not just have level 1 as in this... Like in the map Custom Hero Line Warz. You buy the items for the skills, you enter the arena, and the hero learns them, and as he levels, he spends the skill points on them... Sorry for the bad english, and the bad explanation... Hope somebody can help me...
03-08-2010, 08:51 AM#2
sPyRaLz
Do you have any experience with JASS? or are you trying to do this with GUI?

I'm building a map with a similar system, but I'm using JASS, so I can't help you much if you're using GUI. If you're using JASS, There's a library out there somewhere that allows you to bind skills to items, then add the skills to your hero when then item is picked up (Have to call through Trigger Custom Script if you're using GUI)

So you'd just need to sell items in the shop that are binded to abilities. Make them perishable, like tomes, so they disappear once you get them.

I'm not sure about upgrading the skills with skill points though.. I recall the skills I added were not upgradable even though my hero had skill points at his disposal.

Hope that made sense.
03-09-2010, 05:24 AM#3
TheKid
Quote:
Originally Posted by sPyRaLz
There's a library out there somewhere that allows you to bind skills to items, then add the skills to your hero when then item is picked up

To my knowledge there is no way of adding "hero" abilities. Items do not add abilities to units, though you can add an ability to a unit when an item is picked up --as you described, it still won't make these abilities "learn-able". I honestly don't think that there is a way to do this, but then again someone around here may have some crazy voodoo trix.
03-09-2010, 05:28 AM#4
Earth-Fury
If you want to be able to buy abilities, then level them up like normal hero skills, read the WC3 Ability Guide by Pitzer Mike. (Link in my signature.)

Namely, the section on the engineering upgrade ability.
03-09-2010, 06:06 AM#5
sPyRaLz
Quote:
Originally Posted by TheKid
To my knowledge there is no way of adding "hero" abilities. Items do not add abilities to units, though you can add an ability to a unit when an item is picked up --as you described, it still won't make these abilities "learn-able". I honestly don't think that there is a way to do this, but then again someone around here may have some crazy voodoo trix.

I haven't actually tried this, but what if we set the level of the ability added by the item to 0? Would it cause the ability to un-learn and thus appear on the addable skills list?
03-09-2010, 06:16 AM#6
TheKid
Quote:
Originally Posted by WarCraft III Ability Guide
ANeg (Engineering Upgrade): The engineering upgrade finally solves the problem of not levelable trigger added hero skills.

Quite easy to find, actually. Its funny that I have it in my signature and I missed that.

Okay, I got the idea working. I added Blink to my Paladin. This is nice since you can add the place-holder ability and immediately change it. You have to remove the added ability in order to set it's level to 0 though. That's awesome. I knew there was an abundance of voodoo trix here.

I'll post a demo-map for you to see how its done, sPyRaLz, but do you use vJass? I tend to do everything in vJass and it would be an annoyance to have to do it in GUI, but because I love you I'll do it in GUI for you if you need.