attach attachment abillity on start

Status
Not open for further replies.
Level 7
Joined
Mar 24, 2008
Messages
244
hey guys, I have a hair model and I want to make it through a trigger for the unit to have the ability "Black Hair" at game start. The reason I don't just make it the heroes abillity is because I'll make a trigger
  • Event - A Hero acquires an item equal to Helmet(Variable)
  • Condition - Hero is equal to "Guy."
  • Action - Disable "Black Hair Trigger."
  • Event - A Hero doesn't contain Helmet(variable)
  • Condition - Hero is equal to "Guy."
  • Action - Enable "Black Hair Trigger."
Can someone make me a trigger Using the event "Map Initialization"
and to make the ability "Black Hair" as the hero "Guy"'s ability?

Any help appreciated.
 
  • Trigger
  • Events
    • Time - Elapsed time is 0.00 seconds
  • Conditions
  • Actions
    • Set T_G = (Units in (Playable Map Area) matching (((Matching unit) is a Hero) Equal to True)
    • Unit Group - Pick up every unit in (T_G) and do (Actions)
      • Loop - Actions
        • For each (Integer A) from 1 to 6, do (Actions)
          • Loop - Actions
            • If (Conditions)
              • ((Item carried by (Picked unit) in slot (IntegerA))) Equal to Helmet [Item Comparison]
            • Then (Actions)
              • Player - Disable Black Hair for (Owner of (Picked unit))
            • Else (Actions)
              • Player - Enable Black Hair for (Owner of (Picked unit))
    • Custom script: call DestroyGroup (udg_T_G)
 
Status
Not open for further replies.
Top