Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Can I remove a "wait" timer using triggers?
Can I remove a "wait" timer using triggers?
Dec 13 2021, 11:23 pm
By: FullMetalSnorlax  

Dec 13 2021, 11:23 pm FullMetalSnorlax Post #1

A hungerer of forbidden knowledge

I'm having an issue where an important transmission isn't playing because of a short wait timer that happens to activate just before the transmission fires.

Is there a way to cancel all wait's or set them to 0 prior to firing the cut-scene?



None.

Dec 14 2021, 12:20 am Oh_Man Post #2

Find Me On Discord (Brood War UMS Community & Staredit Network)

You can't stop a wait once it has started. Only thing you can do is add a condition to make sure the wait never activates in the first place.

Or you simply replace the wait with a DC timer instead.




Dec 14 2021, 6:02 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Oh_Man
Or you simply replace the wait with a DC timer instead.
This is the solution.

There's ways around wait blocks, but they're all just that: Workarounds.




Dec 15 2021, 3:24 am FullMetalSnorlax Post #4

A hungerer of forbidden knowledge

So I was planning a map that would use the escape key to make a certain event happen, (by having a preserved trigger with an enormous wait followed by the event).
I knew I wouldn't be able to sue any other waits on that map but I did not realize that transmissions would also be interrupted, regardless if they pause the game or not.

I guess I'll have to throw that idea out then.



None.

Dec 15 2021, 10:39 am TheHappy115 Post #5



A possible "work around" other than DC may involve having the transmission trigger be a first priority. What I mean is (hopefully) the player for the transmission is Player 1 and that you move the trigger to the top of the trigger list. This way it has priority over other wait triggers occurring. If you have multiple wait triggers running (especially with perserve trigger), the first ones read down said list (Top to Bottom, from Player 1 to Player 8).

I never really use transmissions so its interesting that they would share the wait trigger timer (but it makes sense since the transmission must finish before the next wait triggers)



None.

Dec 15 2021, 5:09 pm NudeRaider Post #6

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Transmissions are a combination of several actions in one. For example show portrait, and as you noticed a wait. The only thing you can't (easily) emulate is the selection circle. So technically a transmission IS a wait.

The mentioned workaround only works if both events start at the same time. And it forces the second trigger to be blocked, so it's not really helping, because if you don't need it to fire, you could just remove it.

There's no reason you can't time the described scenario with death counters rather than waits.




Dec 16 2021, 3:23 am Ultraviolet Post #7



In general it is considered poor mapping practice to use waits to delay triggers as only one can be run at a time without causing trigger interference. As Nude and Oh_Man say, DCs are the way.

Also, to achieve the ESC key triggering an event, you could use EUD Editor 2 with the MSQC plugin enabled to allow for keypress detection and then just make whatever triggers you need in the trigger editor. Bit of a learning curve, but well worth the effort.




Dec 16 2021, 12:35 pm GGmano Post #8

Mr.Pete-Tong

Quote from Ultraviolet
In general it is considered poor mapping practice to use waits to delay triggers as only one can be run at a time without causing trigger interference. As Nude and Oh_Man say, DCs are the way.

Funny ive been asked to fix a map which use wait blocks in +500 triggers and it cause faults/crash when players play em so players wanted me to fix the map but 500+ of wait block triggers takes more less the same time to fix this into dc triggers, as making the full map from scratch. so sad when some one actaully made a good map and than used wait blocks in all hes triggers to end up with a map that crashes more than often.



A Legendary Map Maker, Player. Apparently im more than intresting to observe Irl

Ill try do my best in making all youre watchers happy

The maps I made are tweaked into perfection and maximum strategy added

Dec 16 2021, 11:53 pm FullMetalSnorlax Post #9

A hungerer of forbidden knowledge

Quote from GGmano
Quote from Ultraviolet
In general it is considered poor mapping practice to use waits to delay triggers as only one can be run at a time without causing trigger interference. As Nude and Oh_Man say, DCs are the way.

Funny ive been asked to fix a map which use wait blocks in +500 triggers and it cause faults/crash when players play em so players wanted me to fix the map but 500+ of wait block triggers takes more less the same time to fix this into dc triggers, as making the full map from scratch. so sad when some one actaully made a good map and than used wait blocks in all hes triggers to end up with a map that crashes more than often.

My main issue is that I didn't expect a transmission given a duration of 0 would be added to the wait stack. Otherwise my map would only have 1 wait.

Quote from Ultraviolet
Also, to achieve the ESC key triggering an event, you could use EUD Editor 2 with the MSQC plugin enabled to allow for keypress detection and then just make whatever triggers you need in the trigger editor. Bit of a learning curve, but well worth the effort.

I'll have to look into this, would this require mods to run the map? I know a bit about modding from long ago, but I was trying to avoid making maps that require mods.



None.

Dec 17 2021, 3:09 am Ultraviolet Post #10



Quote from FullMetalSnorlax
Quote from GGmano
Quote from Ultraviolet
In general it is considered poor mapping practice to use waits to delay triggers as only one can be run at a time without causing trigger interference. As Nude and Oh_Man say, DCs are the way.

Funny ive been asked to fix a map which use wait blocks in +500 triggers and it cause faults/crash when players play em so players wanted me to fix the map but 500+ of wait block triggers takes more less the same time to fix this into dc triggers, as making the full map from scratch. so sad when some one actaully made a good map and than used wait blocks in all hes triggers to end up with a map that crashes more than often.

My main issue is that I didn't expect a transmission given a duration of 0 would be added to the wait stack. Otherwise my map would only have 1 wait.

Consider that hyper triggers use stacks of wait(0) and wait blocks are still an issue here.

Quote from FullMetalSnorlax
Quote from Ultraviolet
Also, to achieve the ESC key triggering an event, you could use EUD Editor 2 with the MSQC plugin enabled to allow for keypress detection and then just make whatever triggers you need in the trigger editor. Bit of a learning curve, but well worth the effort.

I'll have to look into this, would this require mods to run the map? I know a bit about modding from long ago, but I was trying to avoid making maps that require mods.

No, in my opinion, this is one of the greatest beauties of EE2: it gives drastically expanded capabilities at the small expense of disabling the ability to have extended unit limits. Everyone on SC:R battle.net will still be able to freely play your map, no additional downloads required.

Check out these links for some examples of what can be done with EUDs: EUD Documentation Thread, Impossible Ultraviolet & Spark of Ean'lu

Post has been edited 1 time(s), last time on Dec 17 2021, 3:18 am by Ultraviolet.




Dec 17 2021, 4:14 am NudeRaider Post #11

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Ultraviolet
Consider that hyper triggers use stacks of wait(0) and wait blocks are still an issue here.
In this case workarounds are useful and effective. Easiest way is to give them to a computer player.
If that's not possible there's even more (more complex) ways to setup hypers. Just ask if you need that.




Dec 17 2021, 8:38 am Nekron Post #12



Quote
map which use wait blocks in +500 triggers and it cause faults/crash when players play em
Out of curiosity, when can waits cause a crash?




Dec 17 2021, 4:05 pm Oh_Man Post #13

Find Me On Discord (Brood War UMS Community & Staredit Network)

One thing that may help you is each player has their own waits. Eg. player 1's waits can't cause a wait block on player 2's triggers. You may be able to put your big wait timer on a AI player instead of a human one that way it won't mess up the transmissions.




Dec 17 2021, 7:33 pm GGmano Post #14

Mr.Pete-Tong

Quote from Nekron
Quote
map which use wait blocks in +500 triggers and it cause faults/crash when players play em
Out of curiosity, when can waits cause a crash?

as far as i know wait blocks can cause desync which result in crash for players disconnection. i tryid it with one map where i deleted all the wait blocks in triggers than asked the players to test the map now.. ofcourse the map dosent work the same way many things dosent work cause of deleted wait blocks but the map was actually play able but didnt crash any more.. (players didnt disconnect)

so players reported to me that deleting wait blocks resulted in no desyncs. cant say 100% that it was the wait blocks causing it but definately is an option



A Legendary Map Maker, Player. Apparently im more than intresting to observe Irl

Ill try do my best in making all youre watchers happy

The maps I made are tweaked into perfection and maximum strategy added

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: Roy, Judcfrffvf