Having a problem with (picked unit)

Corleone

New Member
Reaction score
44
I'm making a few easter eggs for my Tower Defense map, and here's the code I'm using for it :
Code:
Event
       Player - Player 1 ( Red ) types a chat message containing X as an exact match
Condition
Action
       Unit Group - Pick every unit in (unit type of X) and do (actions)
             Unit - Replace (picked unit) with a X2 using maximum life and mana
       Wait - Wait until ((Number of units in (Units of type X2) is not equal to 0), checking every 0.10 seconds
       Unit Group - Pick every unit in (unit type of X2) and do (actions)
             Special Effect - Create a special effect attached to the overhead of (picked unit) using Abilities/...
             Wait - Wait 0.10 seconds
             Unit - Explode (Picked unit)
Now the problem is that it actually does create that special effect at the position of units X2, but it doesn't make them explode after the 0.10 seconds. Can't I somehow make them explode after the special effect?

::EDIT::
I noticed that when I remove the
Code:
Wait - Wait 0.10 seconds
I can actually kill the unit, but not make it explode...

::EDIT2::

I got the trigger working. Using :
Code:
Event
       Player - Player 1 ( Red ) types a chat message containing X as an exact match
Conditions
Actions
       Unit Group - Pick every unit in (Units of type X) and (Replace (Picked unit) with a X2 using maximum life and mana
       Wait - Wait 1.00 seconds
       Unit Group - Pick every unit in (Units of type X2) and (Special Effect - Create a special effect at (position of (picked unit))
       Wait 0.4
       Unit Group - Pick every unit in (units of type X2) and (Unit - Explode (picked unit))
Quite inefficient, but heck.. it works! I really should think a bit longer before I ask for help here >_<
 

Exide

I am amazingly focused right now!
Reaction score
449
Maybe because you have 'Pick every Unit in' two times in the same trigger?
Try splitting the trigger in two, and at the end of the first one. Put a 'Run Trigger2 (Ignoring Conditions)'
 
B

blackchoas

Guest
Does the model for the egg have an "explosion" animation?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Oh, I see. I thought Chinese version of A-levels :D
  • jonas jonas:
    I've been using the translate app a lot on my phone. take a photo, translate. take another photo, translate again :D
  • jonas jonas:
    it also has voice translation, my colleagues sometimes use that
  • jonas jonas:
    You came during the 0 covid policy right? How'd you get through quarantine? Did you have some help with the apps and green codes?
  • tom_mai78101 tom_mai78101:
    If you have any Chinese you need help with, let me know.
    +1
  • vypur85 vypur85:
    @jonas Those were the things I did too. Translate app and VPN are always the most important things to have to survive. Lol.
  • vypur85 vypur85:
    Yea I came last year. I was quarantined for about 30 days. Fml. The first day of my quarantine was the eve of Chinese new year last year. Fml again... Lol.
  • vypur85 vypur85:
    @tom_mai78101 IIRC you're from Taiwan right.
  • The Helper The Helper:
    I thought China had cracked down on having any foreign teachers?
  • vypur85 vypur85:
    Yeah I've heard of the news before. My school is still actively hiring foreign teachers. Not sure how things work now.
  • The Helper The Helper:
    yeah it is hard to get reliable information about that kind of stuff
  • The Helper The Helper:
    but you are doing it so it is still doable
  • vypur85 vypur85:
    I think it doesn't affect existing foreign teachers. Then again, its still weird that my school is hiring.
  • The Helper The Helper:
    Happy Monday people hope everyone has a fantastic week!
  • Ghan Ghan:
    Happy Monday?! That's a contradiction.
  • jonas jonas:
  • jonas jonas:
    please put this in the news section, it's crazy
  • tom_mai78101 tom_mai78101:
    Technically, you can post in the Headline News. Just posted your news there.
  • tom_mai78101 tom_mai78101:
    I'm not aware of you not being able to post news.
  • jonas jonas:
    I think technically I can I just forget how
    +1
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Happy Friday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday night!
    +1
  • vypur85 vypur85:
    Happy Sunday. Sigh. Work day tomorrow.
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top