• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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