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
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 meanThree 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.
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.
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
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.
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
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
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..
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!
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.
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.
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.
ya but that takes more effort then making 3 switch trigs
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.
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.
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.
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]
I guess that whichever way he meant that line, he's got the answer now, eh?