• 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.

Some problem about spellbook.

Status
Not open for further replies.
Level 2
Joined
May 26, 2008
Messages
11
First of all, sorry for my bad english, i'm italian, so, if there's someone who can speak italian, it's better :p

Explain my problem:

I used this tutorial for making a spellbook, and i create it at 90%. I've 3 problems about it.

  • When I pick an item, this item creates another one spellbook in the ability slot of the hero, with the description that i've wrote for that dummy book.
  • There's a way to leveling the ability inside of the spellbook?
  • I use this system for a campaign, when I change map the spellbook remain, but not the abilities inside :(

That's a trigger example of my abilities
  • Add Bufera
    • Events
      • Unit - A unit Pick an item
    • Conditions
      • (Item-type of (Item being manipulated)) equal to |c008080FFTomo della Bufera|r
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Aggiungi Bufera for (Triggering unit)) equal to 0
        • Then - Actions
          • Unit - Add Aggiungi Bufera to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Aggiungi Bufera for (Triggering unit) to ((Level of Aggiungi Bufera for (Triggering unit)) + 1)
Thanks to all in advice
 
Last edited:
Level 17
Joined
Jan 21, 2007
Messages
2,014
Wait, you want to make a trigger that triggers when the unit picks an item up, and gives him an ability while holding the item? And if the item is picked up again, the ability improves? But it wont follow when you progress to the next map?
(This is just checking, it'll be hard to help you otherwise)

Are you using game caches?

if you aren't, read this:
Then use them, they store the progress of different things in your map and sends them to your next map. (Easily explained)
I haven't used it myself yet, but i think there may be some tutorial on the hive, or someone else might know.:con:

if you are, read this:
Then try to put the level of the ability into a variable and put it into your game cache.:wink:
 
Level 2
Joined
May 26, 2008
Messages
11
I've resolved the first and the second problem, but i still can't save and restore the abilities. Pls help me :(
 
Level 3
Joined
Jun 25, 2008
Messages
65
Hmm... Bad =)
I could have helped you with the first and second question. THe third is harder ;)

Maybe you should do it like this :p
You create a variable (Integer) for each Spell you own by an Item.
Then if you solved the first Map of the Campaign you use:

For each Integer A from 0 to Variable, do
Hero - Create Item(The SpellgivingItem) for (Your Hero)

And you do this for every Item that gives an Ability.
I think you dont have more than 10 Items that give abilities and because of that it's not so much work...

Greetings Chrissi ;)
 
Status
Not open for further replies.
Top