Staredit Network

Staredit Network -> UMS Assistance -> switches
Report, edit, etc...Posted by Do-0dan on 2005-06-29 at 23:22:50
can there be more than one trigger affecting one switch?

ex:

trigger 1:
condition- switch 1 is set
action- create something somewhere...

trigger 2:
condition- bring something somewhere...
action- set switch 1

trigger 3:
condition- player something gets some amount of deaths...
action- clear switch 1

trigger 4:
condition- player something gets some amount of kills...
action- set switch 1

trigger 5:
condition- bring another something somewhere...
action- clear switch 1

multiple triggers affect one switch, all of them are carried out at the same time, will the switch become clear or set?

also, is making the conditions (switch 1 is clear) the same as (switch 1 is set)?
Report, edit, etc...Posted by slayer766 on 2005-06-29 at 23:37:48
QUOTE(o-0 @ Jun 29 2005, 10:22 PM)
can there be more than one trigger affecting one switch?

ex:

trigger 1:
condition- switch 1 is set
action- create something somewhere...

trigger 2:
condition- bring something somewhere...
action- set switch 1

trigger 3:
condition- player something gets some amount of deaths...
action- clear switch 1

trigger 4:
condition- player something gets some amount of kills...
action- set switch 1

trigger 5:
condition- bring another something somewhere...
action- clear switch 1

multiple triggers affect one switch, all of them are carried out at the same time, will the switch become clear or set?

also, is making the conditions (switch 1 is clear) the same as (switch 1 is set)?
[right][snapback]248753[/snapback][/right]


The switch will depend on the last trigger that will set it, so it might be Set or Clear, depending on the triggers actions.

I think so, Switch 1 is clear is just the same thing as Switch 1 is set.

Someone will come along to check on this I am sure of it. biggrin.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-06-30 at 01:16:06
If every trigger fires simultaneously, then Switch one will end up being Cleared because it is in the action of the last trigger. If two triggers Set and Clear a switch at the same time, the last action will leave the switch in its state.
Report, edit, etc...Posted by Sniper on 2005-06-30 at 01:33:58
It depends which trigger is on top. SC detects trigger from top to bottom. If the trigger at the very bottom clears the switch, then it will remain cleared. If it's set, then it will be set.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-06-30 at 02:13:36
QUOTE(o-0 @ Jun 29 2005, 10:22 PM)
also, is making the conditions (switch 1 is clear) the same as (switch 1 is set)?
[right][snapback]248753[/snapback][/right]


No ... the conditions Switch 1 is clear is differant as Switch one is set. A switch an only be set or clear. You can't expect the "switch 1 is set" condition to be triggered when the switch is cleared.

PS. slayer766, don't quote someone's entire post when it is directly above yours.
Report, edit, etc...Posted by Sniper on 2005-06-30 at 02:56:40
You know, if you look up switches in SCXE's help index, it helps a lot.
Report, edit, etc...Posted by slayer766 on 2005-06-30 at 10:19:42
Yeah I know Bolt, I am sorry about that, didn't really mean to do that.
Next Page (1)