Staredit Network

Staredit Network -> UMS Assistance -> Switch Help :\
Report, edit, etc...Posted by Vampiir on 2007-01-25 at 16:11:14
yawn.gif i got a lot of questions lol... Ok i got a question... How do u rename switches? And does it matter what switch is set? in the actions?
Report, edit, etc...Posted by S)T-Twitch6000 on 2007-01-25 at 16:24:05
QUOTE(Vampiir @ Jan 25 2007, 04:11 PM)
yawn.gif i got a lot of questions lol... Ok i got a question... How do u rename switches? And does it matter what switch is set? in the actions?
[right][snapback]618342[/snapback][/right]

Ok dude if you make maps you should know this but ill tell you if you have scm draft just go to triggers then he thing that says switchs.If you have SF its kinda like Xtra editor.Xtra editor is just pick a sitch then rename.
Report, edit, etc...Posted by Kaias on 2007-01-25 at 16:30:09
It depends on which editor you use.

For regular editor, you can change it whenever you are dealing with the action to turn them on or off.

On SCMDraft2, there is a switches button below the move down button. (Classic Trigger Editor)

Switches all start cleared, AKA off.

If you turn a Switch on (Set it) then it doesn't do anything unless there is a condition that requires it to be turned on. Once turned on, the Switch remains on until specifically cleared.

I.E.


Trigger
Description:
Trigger 1
Players:
¤ Player 1
Conditions:
¤ Player 1 brings at least 1 men to 'Location 1'
Actions:
¤ Set 'Switch 5'
¤ Preserve Trigger



Trigger
Description:
Trigger 2
Players:
¤ Player 1
Conditions:
¤ 'Switch 5' is set
Actions:
¤ Modify resources for Player 1: Add 1 ore
¤ Preserve Trigger


With these triggers, If Player 1 brought a [men] to 'Location 1', then 'Switch 5' would be turned on.

That would set the second trigger off and Player 1 would receive 1 mineral. Since it remains on, however, Player would continuously be receiving a mineral. Even if Player 1 took all men off Location 1, the switch would still be set and he would get minerals.

If you had this trigger:

Trigger
Description:
Trigger 3
Players:
¤ Player 1
Conditions:
¤ Player 1 brings exactly 0 men to 'Location 1'
Actions:
¤ Clear 'Switch 5'
¤ Preserve Trigger


Then Player 1 would only receive 1 mineral constantly whenever he has a guy on 'Location 1' because 'Switch 5' would be cleared when he gets off of it.

Of course, this would be a really lame application of Switches because you could do the same thing with just 1 trigger. But Switches have tons of great uses.

I hope this answers any question you have about switches.

Yeah it matters what switch you use. Say that the condition in the second trigger in this post was: 'Switch 4' is set. It would run because you set Switch 5 and not 4.

Get it?
Report, edit, etc...Posted by Vampiir on 2007-01-25 at 17:20:19
Nah dude, i know this, the problem is, i dont know how to rename switches in StarForge, because I never used switches, its all triggers, but no switches...
Report, edit, etc...Posted by fritfrat(U) on 2007-01-25 at 19:35:12
Starforge doesn't have the capacity to rename switches, last time I checked. It works with the new names, though, when you rename them in other editors.
Next Page (1)