• 🏆 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!

[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,240
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