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

[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: 106
  • Skill 2.jpg
    Skill 2.jpg
    42.4 KB · Views: 140
Status
Not open for further replies.
Top