#1
Help with triggers.
Provisions:skill1
hero1
blizzard_integer
nothing
Ability1
blizzard
blizzard (Item version)
KEY:
Green=Variables
Blue=Abilities
Yellow=Items
Trigger One
SetSkill1Nothing
Events
Map initialization
Conditions
Actions
Set Skill1[1] = Nothing Trigger Two
Blizzard
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Blizzard
Hero1[1] Equal to No unit
Skill1[2] Equal to Nothing
Actions
Set Blizzard_Integer[1] = 1
Set Hero1[2] = (Buying unit)
Set Skill1[3] = BlizzardTrigger Three
LearnBlizzard
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Ability 1
Blizzard_Integer[2] Equal to 1
Skill1[4] Equal to Blizzard
Actions
Hero - Modify unspent skill points of Hero1[3]: Add 1 points
Hero - Learn skill for Hero1[4]: Human Archmage - Blizzard