Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Set/Clear and Toggle
Set/Clear and Toggle
2 hours ago
By: JohnnyTheWolf  

2 hours ago JohnnyTheWolf Post #1



Hello everyone,

I have begun to experiment with switches, but there is one thing I am still not sure I understand and that is the difference between Set/Clear and Toggle. I started reading the documentation, but so far I have been unable to find a satisfying answer.

Thanks in advance!



None.

27 minutes ago Zoan Post #2

Math + Physics + StarCraft = Zoan

Switches are always either in a "set" state or "clear" state (i.e., true or false).

If you have a "set switch X to true" action then it will set it to true (regardless of what it was before).
If you have a "set switch X to false" action then it will set it to false (regardless of what it was before).


If you have a "Toggle switch X" action then it will set it to false if it was true when the action was run, or it will set it to true if it was false when the action was run.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: Ultraviolet
[03:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: Ultraviolet, Zincoshine