• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

spellbook + buying ability

Status
Not open for further replies.
Level 6
Joined
May 20, 2010
Messages
274
hi i just wanna ask if there;s a way i can buy an ability BUT it will be inside a spellbook??
ig there would be a way..... that is not so complicated like vJass can you pls share it with me? :cute:
I'm making an rpg and it needs alot of skills and i want it to be bought and in a spellbook

im new at making scripts and others (its my first map :D) so pls pls pls tell me :sad:
 
Level 11
Joined
Feb 11, 2010
Messages
199
hi i just wanna ask if there;s a way i can buy an ability BUT it will be inside a spellbook??
Yes.

ig there would be a way..... that is not so complicated like vJass can you pls share it with me? :cute:
Use the "spellbook sharing trick." That is, make your first Spellbook ability, set the maximum/minimum spells to 0, and shared spell cooldown to false. Don't put any spells in it. The will be the spellbook you add stuff too.

Now, create a new spellbook ability with the spell you want to add inside with the same base order id as the previous one, and put the ability you want to add into the newly created spellbook. Add this ability to the unit, then *disable* that ability triggers.

  • Unit - Add AddingSpellbook to (Your Unit)
  • Player - Disable AddingSpellbook for AddingPlayer
The reason this works is because spells are shared between spellbooks with the same base order ID. :thumbs_up:

No vJASS or anything like that. Guaranteed to work. Have fun.
 
Level 6
Joined
May 20, 2010
Messages
274
yah i know that but still i dont get the connection between buying the ability for the spellbook?? im confused @_@
i mean for example....there is a tavern...in which the abilities are in...then when you learn the skill there it will be inside the spellbook AND if you already have the spell...it will be upgraded :D perhaps a sample map will be more informative for me :p
 
Level 6
Joined
May 20, 2010
Messages
274
ok ill try that

off-topic:
pls answer my other question :D i know your online hehe

EDIT:
hey hey hey the system you just gave me is not what im talking about what im saying is....it shouldn't be an item when i buy it it should be like...something saying "you have gained a new spell" and spell will go to the spellbook

ok ill try that

off-topic:
pls answer my other question :D i know your online hehe

Yes.

Use the "spellbook sharing trick." That is, make your first Spellbook ability, set the maximum/minimum spells to 0, and shared spell cooldown to false. Don't put any spells in it. The will be the spellbook you add stuff too.

Now, create a new spellbook ability with the spell you want to add inside with the same base order id as the previous one, and put the ability you want to add into the newly created spellbook. Add this ability to the unit, then *disable* that ability triggers.

  • Unit - Add AddingSpellbook to (Your Unit)
  • Player - Disable AddingSpellbook for AddingPlayer
The reason this works is because spells are shared between spellbooks with the same base order ID. :thumbs_up:

No vJASS or anything like that. Guaranteed to work. Have fun.


dont get it....maybe if you have a step by step tutorial or something..i wil really appreciate it and will understand it more clearly because i cant even find the connection of buying abilities with that im confused @_@ :confused:
 
Last edited by a moderator:
Level 11
Joined
Jun 20, 2009
Messages
880
Make 3 spells:
1. Spellbook, where you want to put all spells.
2. Another spellbook, called Hammer. Add an Storm Bolt ability to this ability list.
3. Just an normal Storm Bolt ability.

Then make one item based on Tome of Agility called Learn Hammer

1. Make new trigger.
  • Learn
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Item is Learn Hammer
    • Actions
      • Unit - Add Hammer ( THIS IS THE SPELL BOOK[2] ) to (Triggering unit)
Then make another trigger:
  • Disable
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Disable Hammer ( THIS IS THE SPELL BOOK[2] ) for Player 1 (Red)
Then add this Spellbook(1) for any unit you want.

Now if you buy this item your hero will learn storm bolt.
 
Level 6
Joined
May 20, 2010
Messages
274
I have another PROBLEM!!! >.<
(Probably a question)
How can i make a spell for example a passive ability in a spellbook but even if i close the spellbook i want its effect still present because i tried it and nothing happened for example

I used a hero and placed its skills to a spellbook its skill's shortcut key is "T" while the spellbook is open the skill worked but when the spellbook is close nothing happens >.< is there any solution for this? please explain >.<
 
Status
Not open for further replies.
Top