Staredit Network

Staredit Network -> UMS Assistance -> Condition or?
Report, edit, etc...Posted by biteme9080 on 2006-04-24 at 12:37:23
Can you make the condition in a trigger or?

EX.

Condition"
-Brings 1 any unit to location X
or...
-Kills 3 any unit at location Y

is this possible?


o and two seperate triggers wont work or the action could happen twice
Report, edit, etc...Posted by Oo.Insane.oO on 2006-04-24 at 12:41:03
QUOTE(biteme9080 @ Apr 24 2006, 11:37 AM)
Can you make the condition in a trigger or?

EX.

Condition"
-Brings 1 any unit to location X
or...
-Kills 3 any unit at location Y

is this possible?
[right][snapback]471769[/snapback][/right]


This belongs in mapmaking help and yes if I understood you correctly for what you want u just solved your own question u can do the bring 1 any unit to location X as for the other one I really dont know what you mean
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-04-24 at 12:43:22
Three triggers:
1. A true, B false.
2. A false, B true.
3. A true, B true.

Alternatively, you could combine 3 with either 1 or 2 to do this in two triggers:
1. A true, B whatever
2. A false, B true.

Either of these methods will give an equivalence to the logical OR between your two conditions. The three trigger method will offer you slightly greater flexibility in tailoring your actions to which condition(s) are true. So long as you give your triggers conditions based on these principles, no switches, deathcounts, etc. are required, since only one will ever have its conditions satisfied (they are mutually exclusive). Basically, instead of having one of the triggers set a switch or use a deathcount, you simply include that the conditions that would lead to the setting aren't true in the first place.
Report, edit, etc...Posted by Kupo on 2006-04-24 at 16:28:40
You can't do a kill units at location trigger, but you can do something like this

Current player kills atleast 3 men
Current player brings atleast 1 men to "KILL AREA"

your actions will go here.
Report, edit, etc...Posted by Mini Moose 2707 on 2006-04-24 at 16:36:38
You can have 2 triggers with different conditions and the same actions. Make sure the actions prevent the other trigger from running (ie death counter, switch).

» Moved to Mapping Assistance
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-24 at 16:51:20
QUOTE(biteme9080 @ Apr 24 2006, 11:37 AM)
Can you make the condition in a trigger or?

EX.

Condition"
-Brings 1 any unit to location X
or...
-Kills 3 any unit at location Y

is this possible?
  o and two seperate triggers wont work or the action could happen twice
[right][snapback]471769[/snapback][/right]

No.
Report, edit, etc...Posted by Toothfariy on 2006-04-24 at 17:10:48
make a switch that is set when you kill 3 guys and if its not set, then have another switch that has bring unit to loc X. put them in 1 trig that has what Wing-of-no-Wing said with the true false thing

Report, edit, etc...Posted by biteme9080 on 2006-04-24 at 20:44:32
QUOTE(Toothfariy @ Apr 24 2006, 03:10 PM)
make a switch that is set when you kill 3 guys and if its not set, then have another switch that has bring unit to loc X. put them in 1 trig that has what Wing-of-no-Wing said with the true false thing
[right][snapback]471889[/snapback][/right]


idk how to use switches

but i found it u get triggers so they have to meet 1 trigger but if they meet 2 it does not work

ex.

Brings 1 any unit to location X
Kills at most 2 any unit


and


Brings at most 0 any unit to location X
Kills at least 3 any unit

ty u all for ur help
Report, edit, etc...Posted by (U)Bolt_Head on 2006-04-24 at 21:42:56
This is quite simple it should have been answered long ago. (although Moose DID summerize it)

Trigger
Conditions:
¤ Condition 1
¤ Switch01 is clear
Actions:
¤ Action
¤ Set Switch01

Trigger
Conditions:
¤ Condition 2
¤ Switch01 is clear
Actions:
¤ Action
¤ Set Switch01


Only one of the triggers will fire never both. Just make sure only one player owns the triggers. Have your Bring condition in one and the Kills condition in the other and your result will be one OR the other..
Report, edit, etc...Posted by WoodenFire on 2006-04-25 at 06:40:53
Are my eye's tricking me? Is that BoltHead...

hi

Yea... this system can be done numerous different ways using switches, units, deathcounters, and more!
Report, edit, etc...Posted by Kupo on 2006-04-25 at 14:46:05
QUOTE(WoodenFire @ Apr 25 2006, 02:40 AM)
Are my eye's tricking me? Is that BoltHead...

hi

Yea... this system can be done numerous different ways using switches, units, deathcounters, and more!
[right][snapback]472346[/snapback][/right]


Bolt head has been posting alot....

Anyways, death counters can be used also. Which i prefer over swtiches.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-04-25 at 15:02:53
I've only really been posting in the Mapping Assistance forum.

oh yeah to make this post 'usefull'

A switch is perfectly fine in this situation, there is only 2 varables needed on/off and it is not needed for multiple players it spells out "switch" like none other.
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-04-25 at 15:58:25
Why do you even need the swith in the first place? Just use mutually exclusive condition sets so that only one ever applies, but all of your OR is covered...I've used this method to handle logical OR situations before, and it works fine.
Report, edit, etc...Posted by Toothfariy on 2006-04-25 at 18:19:43
ya but that takes more effort then making 3 switch trigs
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-04-25 at 18:54:07
I'd think writing a couple of extra conditions more than outweighs using up a switch or a deathcount...especially considering that the switch itself uses a condition. Also, you'll run into difficulty with multiple players if you're using switches, as switches are shared, not player-specific: you might need to copy the trigger group for every player that has it, giving a different switch for each player. Deathcounts are "Current Player" friendly, but still not as good as carefully done conditions.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-04-27 at 10:43:52
Wing, sure only one of those triggers can fire at a given time but what stops the other from firing later If those conditions are met?

The creator here doesn't want the actions to run more than once. If he wanted to preserve the triggers you would be correct.
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-04-27 at 12:11:45
Oh, he only wanted it to fire once for the whole time? I thought he was only worried about it firing more than once at a time (because of both conditions being met).

If it's only supposed to fire once overall, then yes, any type of switch system (switches, deathcounts, physical swtiches) could be added.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-04-27 at 13:54:03
Thats was I assumed because of this line...

QUOTE(biteme9080 @ Apr 24 2006, 11:37 AM)
  o and two seperate triggers wont work or the action could happen twice
[right][snapback]471769[/snapback][/right]

Report, edit, etc...Posted by Wing-of-no-Wing on 2006-04-27 at 14:20:42
I guess that whichever way he meant that line, he's got the answer now, eh?
Next Page (1)