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

[Trigger] Sub skill help

Status
Not open for further replies.
Level 2
Joined
Apr 6, 2012
Messages
12
[Resolved] Sub skill help

Hi, my hero has an ability that has a sub-skill. I can't get it so that the sub-skill doesn't show up in the "learn skills" pallette without not being able to enable the sub-skill later.

What I want to happen: the sub-skill is not available in the learn skills pallette. when you learn the main skill, it automatically learns the sub-skill (the sub-skill only has 1 level while the main has 4).

Here are the triggers:

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Hero - Add 10000 experience to Half-Phantom Gardener 0001 <gen>, Hide level-up graphics
      • Player - Disable Detonate (Youmu) for (Owner of Half-Phantom Gardener 0001 <gen>)
  • Wandering Soul Subskill
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Ability being cast) Equal to Wandering Soul (Youmu)
    • Actions
      • Hero - Learn skill for (Learning Hero): Detonate (Youmu)
      • Player - Enable Detonate (Youmu) for (Owner of Half-Phantom Gardener 0001 <gen>)
Help?
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
Don't give the unit the sub-skill in obect editor. That way it doesn't show up in learnable hero skills.

  • Untitled Trigger 009
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to xxx
      • (Level of xxx for (Triggering unit)) Equal to 1
    • Actions
      • Player - Enable yyy for (Triggering player)
      • Unit - Add yyy to (Triggering unit)
 
Level 2
Joined
Apr 6, 2012
Messages
12
Do I still disable the ability for the player in the map initialization or no?

Don't give the unit the sub-skill in obect editor. That way it doesn't show up in learnable hero skills.

  • Untitled Trigger 009
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to xxx
      • (Level of xxx for (Triggering unit)) Equal to 1
    • Actions
      • Player - Enable yyy for (Triggering player)
      • Unit - Add yyy to (Triggering unit)

Tried it =\. Doesn't work still. The skill doesn't show up.
 
Last edited by a moderator:
Level 2
Joined
Apr 6, 2012
Messages
12
  • Wandering Soul Subskill
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Ability being cast) Equal to Wandering Soul (Youmu)
      • (Level of Wandering Soul (Youmu) for (Learning Hero)) Equal to 1
    • Actions
      • Player - Enable Detonate (Youmu) for (Owner of (Learning Hero))
      • Unit - Add Detonate (Youmu) to (Learning Hero)
 
Status
Not open for further replies.
Top