IS this trigger MUI?

HydraRancher

Truth begins in lies
Reaction score
197
Trigger:
  • Tree Ressurection
    • Events
      • Destructible - A destructible within Desert Crystals <gen> dies
      • Destructible - A destructible within Lava Crystals <gen> dies
      • Destructible - A destructible within Lightning Crystals <gen> dies
      • Destructible - A destructible within Grass Crystals 1 <gen> dies
      • Destructible - A destructible within Grass Crystals 2 <gen> dies
      • Destructible - A destructible within Grass Crystals 3 <gen> dies
      • Destructible - A destructible within Ice Region <gen> dies
    • Conditions
    • Actions
      • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
      • Destructible - Make (Dying destructible) Invulnerable
      • Wait 5.00 seconds
      • Destructible - Make (Dying destructible) Vulnerable

If not, how do I make it MUI?
 

HydraRancher

Truth begins in lies
Reaction score
197
Darn, because
Trigger:
  • Wait 5.00 seconds
    • Remove (Triggering Unit)

This IS MUI acording to somebody, so how do I make this trigger MUI?
 

SwedishChef

New Member
Reaction score
32
Darn, because
Trigger:
  • Wait 5.00 seconds
    • Remove (Triggering Unit)

This IS MUI acording to somebody, so how do I make this trigger MUI?

that is mui since you use triggering unit, triggering unit is one of the few which is stored by WE. if you use buying unit in other triggers and wait they are "forgotten" by WE.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
yeah, locals are the easiest way, and for:
Trigger:
  • Wait 5.00 seconds
    • Remove (Triggering Unit)

Being MUI, that's because Triggering Unit won't be overwritten by small waits like Dying Destructible will.

And this trigger uses locals and does the same as your trigger, you just need to add the events yourself:
Trigger:
  • Destructable
    • Events
    • Conditions
    • Actions
      • Custom script: local destructable d = GetDyingDestructable()
      • Custom script: call DestructableRestoreLife( d, GetDestructableMaxLife(d), true )
      • Custom script: call SetDestructableInvulnerable(d,true)
      • Custom script: call TriggerSleepAction(5)
      • Custom script: call SetDestructableInvulnerable(d,false)
      • Custom script: set d = null
 

HydraRancher

Truth begins in lies
Reaction score
197
So whats the entire trigger I need to make to res them and play the birth animation while being invulnerable til it finishes the birth animation?
 

SwedishChef

New Member
Reaction score
32
Custom script: local destructable d = GetDyingDestructable()
sets the destructible to "variable" that will only used in this trigger (a local variable "d")

Custom script: call DestructableRestoreLife( d, GetDestructableMaxLife(d), true )
Custom script: call SetDestructableInvulnerable(d,true)
make the local unit invulnarable

Custom script: call TriggerSleepAction(5)
this is the wait (5sec)

Custom script: call SetDestructableInvulnerable(d,false)
make the local unit vulnareable again

Custom script: set d = null
removes the local unit

hmm do you understand a little better what all does now??
 

wraithseeker

Tired.
Reaction score
122
Replace dying destructable to Triggering Destructables and it'll be MUI.

> Scientific

TSAs are bad for long waits.
 

HydraRancher

Truth begins in lies
Reaction score
197
T.T...
I understand JASS its just I cant make a trigger, insert some actions then say its done!
 

SwedishChef

New Member
Reaction score
32
do as wraithseeker says use triggering desctuctible instead


events
Destructible - A destructible within Desert Crystals <gen> dies
Destructible - A destructible within Lava Crystals <gen> dies
Destructible - A destructible within Lightning Crystals <gen> dies
Destructible - A destructible within Grass Crystals 1 <gen> dies
Destructible - A destructible within Grass Crystals 2 <gen> dies
Destructible - A destructible within Grass Crystals 3 <gen> dies
Destructible - A destructible within Ice Region <gen> dies
conditions
actions

Destructible - Resurrect (Triggering destructible) with (Max life of (Triggering destructible)) life and Show birth animation
Wait 5.00 seconds
Destructible - Make (triggering destructible) Vulnerable

now its Mui since you use triggering instead of dying dest.
 

HydraRancher

Truth begins in lies
Reaction score
197
Please refrain from saying so, I have read wraith seeker's post, I would say the problem is solved.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
THERE IS NO SUCH THING AS "Triggering Destructable", just use my trigger 10 posts above this one:
Trigger:
  • Destructable
    • Events
      • Destructible - A destructible within Desert Crystals &lt;gen&gt; dies
      • Destructible - A destructible within Lava Crystals &lt;gen&gt; dies
      • Destructible - A destructible within Lightning Crystals &lt;gen&gt; dies
      • Destructible - A destructible within Grass Crystals 1 &lt;gen&gt; dies
      • Destructible - A destructible within Grass Crystals 2 &lt;gen&gt; dies
      • Destructible - A destructible within Grass Crystals 3 &lt;gen&gt; dies
      • Destructible - A destructible within Ice Region &lt;gen&gt; dies
    • Conditions
    • Actions
      • Custom script: local destructable d = GetDyingDestructable()
      • Custom script: call DestructableRestoreLife( d, GetDestructableMaxLife(d), true )
      • Custom script: call SetDestructableInvulnerable(d,true)
      • Custom script: call TriggerSleepAction(5)
      • Custom script: call SetDestructableInvulnerable(d,false)
      • Custom script: set d = null
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top