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

Add Birth-animaton via trigger

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
Copy this trigger in your map and change conditions and special effect.

Trigger by Pyritie
  • Events
    • Unit - A unit starts construction
  • Conditions
    • Or - Any Conditions Are True
      • (Unit type of (Constructing structure)) is equal to <Building> (20secs)
      • (Unit type of (Constructing structure)) is equal to <Building> (30secs)
      • (Unit type of (Constructing structure)) is equal to <Building> (50secs)
  • Actions
    • Custom script: local effect udg_SFX
    • Custom script: local unit udg_Building
    • Set Building = (Constructing Structure)
    • Animation - Set vertex shading of Building to 100.00, 100.00, 100.00, 0.00
    • Special Effect - Create a special effect on the origin of Building using SharedModels\NEBirth.mdl
    • Set SFX = (Last created special effect)
    • If (Conditions) Then (Actions) Else (Actions)
      • If - Conditions
        • (Unit type of (Building)) is equal to <Building> (20secs)
      • Then - Actions
        • Wait 20.00 seconds
      • Else - Actions
        • If (Conditions) Then (Actions) Else (Actions)
          • If - Conditions
            • (Unit type of (Building)) is equal to <Building> (30secs)
          • Then - Actions
            • Wait 30.00 seconds
          • Else - Actions
            • If (Conditions) Then (Actions) Else (Actions)
              • If - Conditions
                • (Unit type of (Building)) is equal to <Building> (50secs)
              • Then - Actions
                • Wait 50.00 seconds
              • Else - Actions
  • If (Conditions) Then (Actions) Else (Actions)
    • If - Conditions
      • (Building is alive) equal to True
    • Then - Actions
      • Special effect - Destroy SFX
      • Animation - Set vertex shading of Building to 100.00, 100.00, 100.00, 100.00
    • Else - Actions

If I understand it correctly, this trigger adds a birth animation to a building that has no birth animation.

But the conditions at the top of the trigger, there are 3 buildings called "Building (20 sec)" and so on.

I don't understand that part.

What shall I add in these fields?
 
Status
Not open for further replies.
Top