HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spellbook location question

07-27-2004, 06:52 PM#1
TheXenocide
I have created a hero that uses a spellbook and I want the spell book to be located in one of the item slots rather than on the default spell menu. The only problem is, is that i don't want the hero to have to pick up the spell book from off the ground i want the hero to start the game with the spell book in its item invintory.
07-27-2004, 07:08 PM#2
Pyrus
First assign your spellbook ability to an item (make sure it is an item ability though). Then double-click on your hero in the map area and go to inventory. Choose which slot you want the spellbook in and choose the spellbook. If you want you could make the spellnook undroppable and unsellable in the item editor.
07-28-2004, 08:36 PM#3
TheXenocide
Quote:
Originally Posted by Pyrus
First assign your spellbook ability to an item (make sure it is an item ability though). Then double-click on your hero in the map area and go to inventory. Choose which slot you want the spellbook in and choose the spellbook. If you want you could make the spellnook undroppable and unsellable in the item editor.

Doesn't that just give it to one guy instead of all the units exactly like him... I want a unit that is created in game to have the item rather than a unit already being created and haveing the item.
07-28-2004, 09:49 PM#4
Pyrus
Oho, a trained unit. For that you need triggers.

Code:
Give Item
    Events
        Unit - A unit Finishes training a unit
    Conditions
        (Unit-type of (Trained unit)) Equal to [u]Footman[/u]
    Actions
        Hero - Create [u]Potion[/u] and give it to (Trained unit)
07-31-2004, 12:49 AM#5
TheXenocide
Quote:
Originally Posted by Pyrus
Oho, a trained unit. For that you need triggers.

Code:
Give Item
    Events
        Unit - A unit Finishes training a unit
    Conditions
        (Unit-type of (Trained unit)) Equal to [u]Footman[/u]
    Actions
        Hero - Create [u]Potion[/u] and give it to (Trained unit)

Thanks thats just what i needed.