HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Learning Spell from Shop?

06-02-2005, 03:50 AM#1
l-lunter
I would like a hero to learn their skills from the shop or something like that.

The example is...

My hero has no skill at all.
He goes to a store.
He buys the skill that he wants.
It comes out in the hero's magic/skill thing so he could use it.
06-02-2005, 04:13 AM#2
Ignitedstar
There is a map that has that same type of learning system... although I think it's protected, I never checked. Obviously, it has to be triggered.

Here's the map... try and see if it isn't locked or not.

I don't know... you might have to try both of them.
06-02-2005, 11:48 AM#3
divine_peon
Code:
Event-
A unit acquires an item
Condition-
Item being manipulated equal to blablabla
Actions-
Add ability blablabla to hero manipulating item
Remove item being manipulated
06-03-2005, 05:41 AM#4
Ant
An easy way for many items is to have an array of item-types and an array of abilities. Then assign a corresponding item to a corresponding ability, and everytime a hero acquires an item, check for integer 1 to size of item array, and add the corresponding ability to the hero.