MapMaking Switches
Forum Index > BW General |
darnoconrad
Canada110 Posts
| ||
Phrujbaz
Netherlands512 Posts
There's 256 switches and you can pick any one of them at random, so the number doesn't mean anything. A switch can be either "on" or "off" and it's used for lot of logic in maps. "Set switch 34 to on" is meaningless by itself if you don't also have other triggers using "Switch 34 has to be on" conditions. Look for those other triggers to see what setting the switch on actually does. | ||
Hypnosis
United States2061 Posts
| ||
CharlieMurphy
United States22895 Posts
Example: You can easily make a trigger to give a unit full health; Current player brings any unit to location X modify unit properties 100% HP/Shied. But in order to only give to it at certain times via switches: Switch 1 is set off. Unit X at location Y is destroyed, set switch 1 on. Now you can use the same trigger in the first example with the added 'Switch 1 is on' as another condition to only heal units after a certain condition is met. switches are conditions for triggers. Does that make sense? | ||
darnoconrad
Canada110 Posts
Thanks guys for your responses. | ||
NastyMarine
United States1252 Posts
- A starter/action trigger (on/off/toggle) that specifies the switch in the condition(s) has to be implemented first. In the actions tab you can specify what you want the switch to do when its either turned on/off/toggled. - Then the actual condition trigger (what turns the swtich on/off/toggle) needs to be defined now. 'Set Switch' action will be used after any condition you want is set. Whenever the condition here is processed, the switch will be turned on/off/toggled by what you specified. If you turn a switch on (as an action) you must define the switch in a trigger using a separate condition. You define what it does in the proceeding action. It can get complicated in a good and a bad way. Thats why renaming your switches can be beneficial. There are a lot of possibilities via switches by turning them on and off (of course you must define them each separately). To get the most out of your triggers, make sure you define toggle, on, and off for every switch you use. It is also good to do that so you do not run into any bugs along the way. EDIT, DONE | ||
LuckyFool
United States9015 Posts
I found I absolutely needed them when I had custom music as well, especially for looping the music so it plays and keeps playing in the background. | ||
darnoconrad
Canada110 Posts
![]() | ||
| ||