i tried to do it alone and i tried to find an answer here but i couldnt find it so....
help if you can. And my Q is: How to make when hero uses an item learns skill.
ty
all spells that have the suffix [SB] are spellbooks
this is how i do it
Trigger:
Skill Learn
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Learn Flame Strike [item]
(Ability being cast) Equal to Learn Wind Nova [item]
(Ability being cast) Equal to Learn Blink [item]
(Ability being cast) Equal to Learn Tranquility [item]
(Ability being cast) Equal to Learn Chain Lightning [item]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Flame Strike [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Flame Strike for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Flame Strike for (Triggering unit) to ((Level of Flame Strike for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Fire Gem)
Else - Actions
Unit - Add FlameStrike [SB] to (Triggering unit)
Player - Disable FlameStrike [SB] for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Fire Gem)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Chain Lightning [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Chain Lightning for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Chain Lightning for (Triggering unit) to ((Level of Chain Lightning for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Lightning Gem)
Else - Actions
Unit - Add Chain Lightning [SB] to (Triggering unit)
Player - Disable Chain Lightning [SB] for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Lightning Gem)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Blink [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Blink for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Blink for (Triggering unit) to ((Level of Blink for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Time Gem)
Else - Actions
Unit - Add Blink [SB] to (Triggering unit)
Player - Disable Blink [SB] for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Time Gem)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Tranquility [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Tranquility for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Tranquility for (Triggering unit) to ((Level of Tranquility for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Nature Gem)
Else - Actions
Unit - Add Tranquility [SB] to (Triggering unit)
Player - Disable Tranquility [SB] for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Nature Gem)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Wind Nova [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Wind Nova for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Wind Nova for (Triggering unit) to ((Level of Wind Nova for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Wind Gem)
Else - Actions
Unit - Add Wind Nova [SB] to (Triggering unit)
Player - Disable Wind Nova [SB] for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Wind Gem)
Else - Actions
you need 3 spells for each spell that you need to be learned
all the spells will go to one SpellBook
if you want to see all that you need feel free to download my map there you will have what i mean look at items and at Special Ability tab
gotta trigger it!
make a dummy item, which does nothing...(no bonus, no hp/mp regen, etc...)
and trigger it so that when he uses the item, it'll give that hero the desired ability!
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Learn Flame Strike [item]
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Flame Strike for (Triggering unit)) Greater than 0
Then - Actions
Unit - Set level of Flame Strike for (Triggering unit) to ((Level of Flame Strike for (Triggering unit)) + 1)
Item - Remove (Item carried by (Triggering unit) of type Fire Gem)
Else - Actions
Unit - Add Flame Strike to (Triggering unit)
Player - Disable Flame Strike for (Owner of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Fire Gem)
Else - Actions
this will learn an flamestrike .. the flame strike must be an unit ability you will not need another spell book for this
an an dummy ability that will goes in a dummy item
Let me explain 1 more time what i want so it wont confuse you cause your helping me
I want when hero buys an item from a store and when he use that item or it uses itself when he receives that item, hero learns some skill.
sry if you didnt understand the first time =D my bad
and how to get to this ?
If - Conditions
(Level of Flame Strike for (Triggering unit)) Greater than 0
i only can choose equal to something cant find anything else, if its not important let me know pls if it is tell me how to get to it again PLS XD
let me understand you need to level one of the spells it already have ?
to get that is an integer comparation
EDIT: let me explain what the second trigger do
1.hero get the item
2.hero use that item
3.trigger will check if hero has flame-strike
->hero don't have flame strike then the trigger add flamestrike and remove the item that has been used
->hero have flame strike then it learns next lv of the spell
P.S:i don't really understand what you really want
no no no my hero does not have any spells he only have Hero ability: Harvest wood and Inventory and i want when he buys an item and uses item he gets some skill in his skill sheet =D
how is it possible the in spellcraft, there when you buy 3 stones you get a skill in your skill list and when you buy the same 3 stones again your skill gets a lvl,
i want to make something like that but just to buy 1 item to get 1 spell.
If you dont know thx a LOT anyways and merry xmass =)
1.st of all let me answer on your question (Am I really helping anyone?) YES
2.nd here is the game link http://www.epicwar.com/maps/229/
3.rd when you get in game choose survivor mode that way you will get spells fastest way and youll bring me answer faster =D
well in that game there are something like this
for example if you need only to have 2 elements let say earth and fire
then if it haves earth and fire in his inventory it will ad an ability
so my second trigeer will do what you what if you want i can make an demo map and adding and using some items add and then lvup the spell [coming in 10 minutes with the demo
hahahahahaha check this out xD ME (Am I getting my questions answered?)
YOU(Am I really helping anyone?)
Like someone watched our chat past 20 mins xDDD 2 good 2 be true xD
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!