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

Help with triggers.

Status
Not open for further replies.
Level 2
Joined
Sep 1, 2005
Messages
14
Provisions:

skill1
hero1
blizzard_integer
nothing
Ability1
blizzard
blizzard (Item version)

KEY:
Green=Variables
Blue=Abilities
Yellow=Items

Trigger One
Code:
SetSkill1Nothing
    Events
        Map initialization
    Conditions
    Actions
        Set Skill1[1] = Nothing

Trigger Two
Code:
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] = Blizzard

Trigger Three
Code:
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
 
Status
Not open for further replies.
Top