Staredit Network > Forums > SC2 Assistance > Topic: Unit Clicked Trigger
Unit Clicked Trigger
Aug 6 2010, 10:53 pm
By: Salvador  

Aug 6 2010, 10:53 pm Salvador Post #1



So, I thought I'd make something simple to dip my toes into SC2 modding, so I'm making a game called "Whack-A-Roach." The premise is simple - click on a roach and it pops.

The problem is, my Unit Clicked trigger doesn't seem to be working. I have a screenshot of my trigger attached.

I will note that my Unit Selected trigger does work, but that's not ideal as the players could drag a box for unit selection, making the game much too easy!

Attachments:
trigger example.jpg
Hits: 8 Size: 22.45kb



None.

Aug 6 2010, 11:03 pm Devourer Post #2

Hello

Triggering Unit is the unit that runs the trigger, therefore triggering player might work. Unsure about triggering unit, but it apparently doesn't work.
Do something like this:
pick each unit in unit-group ( selected units by player 1)
-> kill Picked Unit



Please report errors in the Staredit.Network forum.

Aug 6 2010, 11:34 pm Salvador Post #3



I don't think that's the problem, though. The problem seems to be that it never registers clicking on a unit. I have tried simply spawning a text string (Text Tag - Create Text Tag) when I click a unit too, but it doesn't do that either.



None.

Aug 6 2010, 11:59 pm Devourer Post #4

Hello

Ya, I just tested it. This event is not working at all, apparently.

Use the event "Unit is selected", this should work and it does not repeat all the time. It only runs once when you selected the / a unit.



Please report errors in the Staredit.Network forum.

Aug 7 2010, 12:45 am Temp Post #5



You need to disable the cannot be clicked flag in the data editor on the unit.



None.

Aug 7 2010, 12:52 am Salvador Post #6



I thought it might be something like that! Thanks, I'll try that directly, then edit this post with my results.

Edit: Excellent, it worked! 1000 cool points to Temp!

Post has been edited 1 time(s), last time on Aug 7 2010, 1:04 am by Salvador.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Roy