Staredit Network > Forums > SC2 Assistance > Topic: [SOLVED] Actions happening at the same time
[SOLVED] Actions happening at the same time
This topic is locked. You can no longer write replies here.
May 27 2010, 11:02 pm
By: payne  

May 27 2010, 11:02 pm payne Post #1

:payne:

In my map, if two players of the same team happens to click the same button at the same time, everything bugs out :(
I am talking of the "GO FIRST!" button that appears in the middle of the screen. It generates a random combo for all players of the team.
It should be pressed only once per match per team, there are two teams of 2 players.
Also, after a while, for some reasons, if the other team has not pressed the button it either bugs out or they get combos.
I'm not very good with triggers and I haven't made most of them (avgnerd made them).

I'd need someone to fix the issue, PLEASE :(

Post has been edited 3 time(s), last time on Aug 10 2010, 4:34 am by payne.



None.

Aug 9 2010, 8:03 am Ghoustine Post #2



Hello payne,
You have wait times in the trigger that processes the button click. During this 1.5 seconds (0.5 + 1.0 seconds) any player who clicks the button after the previous player will experience the same actions run. I believe this is causing your errors. I realize that you need these wait times, so I propose adding a condition to those triggers that have wait times. You need to make sure they don't run after someone has already clicked them once.

Condition: Comparison -> Make sure those variables are set to default (or zero?) values.

If you still need more help, shoot me a PM.



None.

Aug 9 2010, 12:37 pm Devourer Post #3

Hello

Dude, if you want the trigger to run only once in the same time use this:
condition: action list of current trigger is empty == true

and if you want the entire trigger to fire only once at all, add the condition and this action at the end of the trigger: "disable current trigger". Hope that helps.



Please report errors in the Staredit.Network forum.

Aug 10 2010, 4:33 am payne Post #4

:payne:

I guess this problem is solved. The solutions looks logical. :P
I unfortunately do not have access to the editor and I was actually mainly asking the question for my triggerer (since I do not make my own triggers :><:).

Tag this as solved! :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[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.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03: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]
[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.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
Please log in to shout.


Members Online: Zycorax