HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

adding skill problem

11-16-2003, 03:40 AM#1
311
Ok im starting to make a new map again, Im not to far yet, but I have a feeling im going to have to scrap it because I dont see anyway possible to do this except 1way that will take FOREVER. Anyway on to the question. Ok in my map I implemented a cool idea of instead of each hero having skills, they buy them at a shop, so you can choose what kind of character you want to be, whether it be some tuff melee guy with evasion stormbolt avatar, or some heavy magic user with blizzard flamestrike and starfall. I ran into a problem however.

E: unit uses item
C: item = book of holylight
A: ?????????

the action is where im stuck on
theres an action called unit learn ability, however it sets the hero skill as an ability so I cant level it up now, its just level 1. Theres an action called hero learn skill, well that dont work unless you have the skill already. So what am I to do? I only see 2possible ways
1: make shops sell level 1/2/3 skills NOT possilbe really considering all of my skill will be going to at least level 4 some going to 7

2: using the add ability action, and setting variables, ex: holylight and when I use the item (book of holylight) add +1 to holylight variable, and set the skill holylight to whatever the variable is. This will be extreamly long though and I would have to do a variable for EVERY player and EVERY skill. I have alot of skills i think 45 so thats 45 x however many players I decide to make it which is probably 4-10. I really hope this idea is possible, as I have many other ideas I want to put in my map and most of it is about customization, picking your own skills/stats/defense and has lots of strategy. Lots of custom skills, most of just returing from my last map though, I cant help it I love meteor shower/cyclone storm/Lighting sentry
11-16-2003, 04:16 AM#2
AllPainful
Lots of people thought up an idea based on that, (even me a while back) and we all realized there is only 1 solution to the problem.. You have to make a hero fore EVERY possible combination, and then switching them out with triggers.

There is NO way to give a hero a levelable ability via triggers.

You could however do what you suggested and give the hero a levelable "dummy" ability and go from there...
11-16-2003, 04:53 AM#3
311
:(. Every map I make I run into a problem like this, theres gota be a way
11-16-2003, 05:25 AM#4
Biflspud
I see a workaround to it, but it'll cost you levels. Meaning that your hero won't be able to actually level up.

Give heroes EVERY skill in the game. The learn skill window's going to be crammed, I know - there's nothing that actually prevents you from having more than 4 skills, but they won't be available on your command window.

Then, when they buy a book, level them up, and order them to spend their point in the relevant skill. You'll probably want to set their stats back to what they were pre-level (or change stat increase/level to 0).

Basically, this is an easy workaround to the problem, but has the serious side effect that experience points mean jack. But since you weren't allowing heroes to buy their own skills anyway, they already sorta didn't matter.
11-16-2003, 05:29 AM#5
Hunter0000
just as a side note,

put a warning up that you cannot buy more than 5 skills at a time or make some arrays that detect this and dont allow you to buy the item.
11-16-2003, 05:40 AM#6
Biflspud
Quote:
Originally posted by Hunter0000
just as a side note,

put a warning up that you cannot buy more than 5 skills at a time or make some arrays that detect this and dont allow you to buy the item.

Er yeah, that's kind of a must. Good reminder, though.

Actually, since they'd always have more skills available to buy, the + hero skill window will ALWAYS be on that character, just greyed out.