• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Passive Hero Transformation :(.

Status
Not open for further replies.

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Hello guys. I'm making a hero who has 2 form: Day and Night. When the time is 6:00 am, he will transform to Day form and when the time is 18:00, he will transform to Night form. I create 2 ability like in the attachment (dont know how to post image from my computer so I'll use attachment, sorry for the inconvenient.).
And I have 2 triggers for each of them:
6:00 Transformation:
  • Transform N2D
    • Events
      • Game - The in-game time of day becomes Equal to 6.00
    • Conditions
    • Actions
      • Set tempGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Chaos Angel (Night)))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set CV = (Custom value of (Picked unit))
          • Unit - Add Night to Day to (Picked unit)
          • Unit - Remove Night to Day from (Picked unit)
      • Custom script: call DestroyGroup(udg_tempGroup)
18:00 Transformation:
  • Transform D2N
    • Events
      • Game - The in-game time of day becomes Equal to 18.00
    • Conditions
    • Actions
      • Set tempGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Chaos Angel (Night)))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set CV = (Custom value of (Picked unit))
          • Unit - Add Day to Night to (Picked unit)
          • Unit - Remove Day to Night from (Picked unit)
      • Custom script: call DestroyGroup(udg_tempGroup)
But when I test it, it doesnt work :|. I follow all the steps in the tutorial. Does anyone have any idea?
 

Attachments

  • Skill 1.jpg
    Skill 1.jpg
    46 KB · Views: 102
  • Skill 2.jpg
    Skill 2.jpg
    42.4 KB · Views: 136
Status
Not open for further replies.
Top