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

Trigger Help

Status
Not open for further replies.
Level 4
Joined
Jun 23, 2014
Messages
46
Hi, I'm not sure how to do these two triggers but the first one is:
Making a trigger run ONLY when another trigger has been activated -Conditions-

And secondly how do I make an effect for when a unit is made
Specifically: Undead kills a unit, the unit becomes a zombie, and I want an unholy effect to show the unit has risen.

All thanks are given in advanced ^
 
Level 18
Joined
May 11, 2012
Messages
2,103
1.) You can turn off that trigger, and then put ITE and put condition that you want, and if that condition is met, turn on that trigger that you turned off in Trigger Editor.

2.) Just register when a unit is killed (Killing unit belongs to the owner of(Player number that controls Undead units)), and then add special effect to the origin of triggering unit -> Unholy Aura.
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
#1 Making a trigger running when another trigger is running :
First Trigger Solutions
  • 1st Solution - Run the trigger once
  • Events
    • === Any Event You want ===
  • Conditions
    • (Trigger 'your trigger' is on) Equal To True
  • Actions
    • Trigger - Run 'Your second trigger' (Ignoring Conditions)
  • 1nd solution - Periodic Running
  • Events
    • Time - Every 1 seconds of time
  • Conditions
    • (Your Trigger '###' is on) Equal to True
  • Actions
    • === Your second trigger actions ===
  • 2nd solution - Doesn't matter, depends on your event
  • Events
    • == Any Event because this is the first trigger ==
  • Conditions
  • Actions
    • Set First_Trigger_ON = True (Boolean)
  • Events
    • Any event === Periodic or Just once-run event
  • Conditions
    • First_Trigger_ON Equal to True
  • Actions
    • === Your second trigger actions ===

CONCLUSION OF THE POINT : You can either use Trigger-is-on condition or booleans.

2# Creating a special effect after a unit is died to create a zombie :

Special Effect Option

  • Events
    • Unit - A Unit dies
  • Conditions
  • Actions
    • If/The/Else Multiple Actions
      • Conditions
        • (Unit-type of (Triggering Unit)) Equal to 'Human'
      • Then - Actions
        • Set Human_Dying = (Position of (Triggering Unit))
        • Special Effect - Create a special effect in Human_Dying point using 'Mdl/HolyEffect'
        • Unit - Create 1 Zombie in Human_Dying facing Default building facing angle
        • Special Effect - Destroy (Last Created Special Effect)
        • Unit - Remove (Triggering Unit) from the game === (Optional)
        • Custom script: call RemoveLocation(udg_Human_Dying) === that's just to remove memory lag/leak
 
Status
Not open for further replies.
Top