Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Starcraft > Starcraft Maps and Modifications

Reply
 
Thread Tools Display Modes
Old 12-25-2007, 06:18 AM   #1 (permalink)
BattleForums Newbie
 
Join Date: Dec 2007
Posts: 4
Switches

Ello

I guess you can say im an ok map maker but i cant figure out how to use switches, i only know how to rename them xD Which is nothing. So could you tell me how to use em

Thanks...

P.S. AWESOME EMOTES!
Gerone is offline   Reply With Quote
Old 12-25-2007, 04:10 PM   #2 (permalink)
BattleForums Senior Member
 
Johnny's Avatar
 
Join Date: Mar 2005
Location: Garden Grove, CA
Posts: 2,121
Re: Switches

They act like switches, pretty much. When something happens (Player 1 brings 1 unit to Location 1), turn switch 1 ON. When switch 1 is ON, create 1 zergling at location 2 for Player 1. I haven't made maps in several years, but I think there was some kind of trigger for when there was no unit of player 1's on location 1, then you would make the switch go to off.

Its hard to describe, but its as if it makes the trigger repeat, otherwise, when player 1 goes to location 1, it would only create 1 zergling. With switches, it would create it every however long your wait is set for.

Sorry if its not as advanced as you would need, you can google more advanced switch guides, I just haven't made a map in at least 2 years.
__________________
Quote:
We will not tolerate any form of staff corruption or power abuse.
Johnny is offline   Reply With Quote
Old 12-26-2007, 02:41 AM   #3 (permalink)
BattleForums Newbie
 
Join Date: Dec 2007
Posts: 4
Re: Switches

yeah i need abit more detail and that example can i think be used

Condition: Player 1 brings 1 rine to Location 1
Trigger: Create 1 Zergling At location 2
Preserve trigger

that would be like that.

And things like the thing, sex on the beach (sorry if thats vulgar) and especially those games where you mass the location where the observer is. I need things like that but thanks anyway
Gerone is offline   Reply With Quote
Old 12-26-2007, 01:08 PM   #4 (permalink)
BattleForums Senior Member
 
Johnny's Avatar
 
Join Date: Mar 2005
Location: Garden Grove, CA
Posts: 2,121
Re: Switches

I think it would be more like this when using switches. The conditions/triggers you had would make it only create 1 zergling every time player 1 brought a marine to location 1. I think.

Code:
Players: 1
Condition: Player 1 brings exactly 1 marine to location 1
Trigger: Turn Switch 1 ON
Preserve trigger

Condition: Switch 1 is ON
Trigger: Create 1 zergling for player 1 at location 2
Wait 500 milliseconds
Preserve Trigger

Condition: Player 1 brings exactly 0 marine to location 1
Trigger: Turn Switch 1 OFF
You can also use them in Hyper Triggers, which will make your game, waits and triggers lag to hell and become useless.

Code:
Player: 1
Conditions: Always 
Actions: Preserve trigger
Wait 0 milliseconds 
Set Switch 1 
Wait 0 milliseconds

Player: 2
Conditions: Switch 1 is set 
Actions: Preserve trigger
Wait 0 milliseconds
Clear Switch 1

Sorry I can't be any more help, let me know if you have any diablo 2 help you need sorted out.
__________________
Quote:
We will not tolerate any form of staff corruption or power abuse.
Johnny is offline   Reply With Quote
Old 12-27-2007, 12:59 AM   #5 (permalink)
BattleForums Newbie
 
Join Date: Dec 2007
Posts: 4
Re: Switches

Yeah i think i see the basics of it. Thanks just need to know how to use that "mass where the observer is" thing then ill be done

And i dont have Diablo 2 :OOO
Gerone is offline   Reply With Quote
Old 01-03-2008, 08:11 AM   #6 (permalink)
BattleForums Senior Member
 
-Azrael666-'s Avatar
 
Join Date: Jan 2005
Location: near Watertown, NY
Age: 22
Posts: 2,985
Re: Switches

I'll just point out that switches aren't always reliable, especially when you need them to change rapidly. It may take a thousand plays through a map with a hundred switches all being toggled non-stop with hyper triggers running at the same time for you to experience it once, but when a switch fails to set or clear, you'll know it.

A much more reliable substitute for switches is death counts, and they are much easier to work with, since they can be assigned player-specifically with a single trigger. I use both, myself, but use death counts about a thousand times more often than switches.

Basically, instead of using the action "Set Switch 1," you would use the action "Modify death counts for Player 8: Set to 1 for Jim Raynor (Vulture)." Instead of clearing Switch 1, you'd set Player 8's death count for Jim Raynor back to 0. Instead of using the condition "Switch 1 is Set," you would use the condition "Player 8 has suffered exactly 1 death of Jim Raynor (Vulture)."

Not only can this be done on a player-by-player basis, but it also allows you to use the same "switch" in more than two modes (instead of "Set" and "Clear," you have 0, 1, 2, 3, 4, etc).

Just something to keep in mind. As for your original question, a switch is nothing more than a tool to be used in trigger conditions. One trigger turns a switch on, another trigger performs actions repeatedly while the switch is on. Another trigger turns that switch off, and the repeating trigger turns off.

Not too bad when you get used to using them.
__________________



WHEN WILL TEH EGG HATCH!?!! MEOWZ!!1
-Azrael666- is offline   Reply With Quote
Old 04-26-2008, 03:27 AM   #7 (permalink)
Smot Poker
 
SagaWrath's Avatar
 
Join Date: Mar 2008
Age: 24
Posts: 14
Re: Switches

Here is a little trick I've figuered out on my own years ago but I'm sure people use it all the time with switches. You know how there is a Random setting for switches. This works great...

With Fastest triggers works best....

Condition
Always
Action
Switch 1 Random
Switch 2 Random
Switch 3 Random
Preserve Trigger

Whatever trigger you want to randomly happen whenever, would be...

Condition
Switch 1 Set
Switch 2 Set
Switch 3 Clear
Action
(Whatever you want)

With fastest triggers it will switch through every possibility very fast until it happens. Each Switch you add to that randomization will add something like 400% harder chance for it to happen.

I'm too old to hide my ideas now.. lol.. I hope you put these ideas into some good use
__________________

Cannot connect without being direct but always in neglect without anything to reflect, to those who live in fantacy with a real world to see, but the world has one truth, hanging by a noose, by those who simplify and deny can only fly by the beliefs of no gravity. Theories, Facts, are not lies anything else can be denied. The world was strong in the side of truth. Two thousand years ago was killed by a noose. The burning of buildings, and the killing of men, the degrading method in "Never Again". The same people in the side of truth have brought wonders and maybe the end too. Nuclear weapons as it seems can destroy everything, everything without natures approval of removal of man kind cannot be rewind. So I say unto thee, "Words Of Wisdom, Let It Be".
SagaWrath is offline   Reply With Quote
Reply

« I need help making a building lift trigger | I'm developing a map, I need to assemble a team »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 10:39 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0