Staredit Network

Staredit Network -> UMS Assistance -> About switch looping
Report, edit, etc...Posted by cuinhell(ds) on 2006-07-23 at 23:03:47
I really never understood this but. When switch 1 ends and switch 2 begins. Can you go back to switch 1 as a loop?
Report, edit, etc...Posted by Electroid on 2006-07-23 at 23:11:12
switches and death counters are my most valued attribute of map editing. i dont really understand your question, but id say yes, it is very possible. post back, and please use the correct terms, such as clear and set.
Report, edit, etc...Posted by Urmom(U) on 2006-07-23 at 23:32:19
You could even do a loop with just 1 switch.

Switch 1 is cleared
-----------
do actions
set switch 1
preserve trigger


Switch 1 is set
-----------
do actions
clear switch 1
preserve trigger

I hope that is what you meant.
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-23 at 23:38:00
Switch 1 and Switch 2 have two states, set clear. They are independent of eachother and you can set/clear them regardless of what the other switch is set to.

It depends on you on what conditions/actions you want to use on those switches.

And it is hard to understand what exactly your question is, please elaborate.
Report, edit, etc...Posted by Zeratul_101 on 2006-07-23 at 23:50:08
QUOTE(urmom @ Jul 23 2006, 09:31 PM)
You could even do a loop with just 1 switch.

Switch 1 is cleared
-----------
do actions
set switch 1
preserve trigger
Switch 1 is set
-----------
do actions
clear switch 1
preserve trigger

I hope that is what you meant.
[right][snapback]530002[/snapback][/right]


EDITED

i think he wants a terminating loop, which is impossible with only one switch(i think). so he would have to use two switches. however, in that case, it'd be better to use a DC and save your switches. simply have 0 D represent 'loop turned off', and let 1 and 2 represent the switch that controls looping
Report, edit, etc...Posted by fritfrat(U) on 2006-07-23 at 23:53:18
Whatever he wants to do I'm sure is possible. He just has to explain what he needs to have done more clearly.
Report, edit, etc...Posted by Urmom(U) on 2006-07-23 at 23:59:54
Zeratul, save you switches? you get 255 (or is it 256). but yea, please elaborate more on your problem.
Report, edit, etc...Posted by Mp)EnderDouble on 2006-07-25 at 00:40:58
He wants to know how to do something like this.

Conditions:
- Switch One is Set
Actions:
- (Any Actions)
- Clear Switch 1
- Set switch 2
- Preserve Trigger

Conditions:
- Switch two is set
Actions:
- (Any Actions)
- Clear switch 2
- Set Switch 1
- Preserve trigger

It is very easy to loop triggers with switches, you just have to make sure to clear the first switch in the first trigger, and clear the second switch in the second trigger. And you also have to have preserve trigger.
Report, edit, etc...Posted by Zeratul_101 on 2006-07-25 at 12:36:08
QUOTE(urmom @ Jul 23 2006, 09:59 PM)
Zeratul, save you switches? you get 255 (or is it 256).  but yea, please elaborate more on your problem.
[right][snapback]530032[/snapback][/right]


personally, i don't have problems with hitting limits(except locations), but i've seen a few cases where people have run out of switches(mainly cause they shouldn't have used them in the first place). and when i wrote that, i was referring to proportion mainly. there are a hell of alot more DCs than there are switches.

ADDITION:
QUOTE(Mp)Ender @ Jul 24 2006, 10:40 PM)
He wants to know how to do something like this.

Conditions:
- Switch One is Set
Actions:
- (Any Actions)
- Clear Switch 1
- Set switch 2
- Preserve Trigger

Conditions:
- Switch two is set
Actions:
- (Any Actions)
- Clear switch 2
- Set Switch 1
- Preserve trigger

It is very easy to loop triggers with switches, you just have to make sure to clear the first switch in the first trigger, and clear the second switch in the second trigger. And you also have to have preserve trigger.
[right][snapback]530793[/snapback][/right]


um, you don't need two switches to do a non-terminating loop...
it'd be more like this:

Conditions:
- Switch One is clear
Actions:
- (Any Actions)
- Set switch 1
- Preserve Trigger

Conditions:
- Switch One is set
Actions:
- (Any Actions)
- Clear switch 1
- Preserve trigger
Report, edit, etc...Posted by cuinhell(ds) on 2006-07-25 at 18:33:39
what i mean is when i run out of switch's lets say 100 switch's can you loop back to switch 1 after the clearing of 100switch?
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-25 at 19:22:58
Switches can be set/cleared an infinite number of times. There's no limit.

You can set a switch, then clear it, then set it again over and over.

However, you have to be aware of the triggers with conditions based on the state of those triggers, because lets say you have a condition that runs with switch 1 is set, and then you clear it so it only runs once. If you set that switch again the trigger will run again. Yet, that may be what you are trying to do, that's essentially a loop.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-07-25 at 20:42:31
QUOTE(cuinhell(ds) @ Jul 25 2006, 05:33 PM)
what i mean is when i run out of switch's lets say 100 switch's can you loop back to switch 1 after the clearing of 100switch?
[right][snapback]531302[/snapback][/right]


It seems as if your asking "After I've used up all the switches can I use the same ones for other stuff?"

I really don't know what your asking but I know there is a more effecent way to do what your thinking of.
Report, edit, etc...Posted by Zeratul_101 on 2006-07-26 at 00:48:09
QUOTE(cuinhell(ds) @ Jul 25 2006, 04:33 PM)
what i mean is when i run out of switch's lets say 100 switch's can you loop back to switch 1 after the clearing of 100switch?
[right][snapback]531302[/snapback][/right]


can you tell us what context you're using this in?
Report, edit, etc...Posted by Mp)EnderDouble on 2006-07-26 at 08:02:58
QUOTE(Zeratul_101 @ Jul 25 2006, 10:35 AM)
personally, i don't have problems with hitting limits(except locations), but i've seen a few cases where people have run out of switches(mainly cause they shouldn't have used them in the first place).  and when i wrote that, i was referring to proportion mainly. there are a hell of alot more DCs than there are switches.

ADDITION:
um, you don't need two switches to do a non-terminating loop...
it'd be more like this:

Conditions:
- Switch One is clear
Actions:
- (Any Actions)
- Set switch 1
- Preserve Trigger

Conditions:
- Switch One is set
Actions:
- (Any Actions)
- Clear switch 1
- Preserve trigger
[right][snapback]531083[/snapback][/right]


If you dont use two switches, then there is no way to stop the looping. If you need to stop it sometimes, you have to use two switches.
Report, edit, etc...Posted by Zeratul_101 on 2006-07-26 at 10:40:02
QUOTE(Mp)Ender @ Jul 26 2006, 06:02 AM)
If you dont use two switches, then there is no way to stop the looping. If you need to stop it sometimes, you have to use two switches.
[right][snapback]531664[/snapback][/right]


blink.gif where did he say he wanted terminate his loop? i put that in cause everybody was assuming he wanted a non-terminating loop. also, he may have some other conditions - in addition to the switches - that would terminate the loop.

this is an example of a loop using DC:

deaths of looper is at exactly 1

<actions>
set deaths of looper to 2


deaths of looper is at exactly 2

<actions>
set deaths of looper to 1

now lets say i want to turn the loop off

<conditions>

set deaths of looper to 0
Next Page (1)