Could someone please tell me ,how to work with swithes?
For example:
1How to do that when I kill an enemy unit ,he appears in other place,i kill him again,and he arrives a place were he arrived after i killed him first time ,and again,and again....
2Enemy has killed mine Hero,he arrives at my base,then enemy kills my hero again and he arrives at my base again,and again,and again....
Switches are just like something that will make you trigger work. Its like a just in case lol. Plus Check you triggers. Look for mistakes if something weird like that is happening than look them over. Or post you trigger.
1:
CONDITION:
Player 8 has suffered at least 1 death of zerg hydralisk
ACTION:
Set Switch1
Wait for 3000 milliseconds
Preserve trigger
CONDITION:
Switch1 is set
ACTION:
Greate 1 zerg hydralisk at Location1 for player 8
2:
CONDITION:
Player 1 brings at least 1 any unit to Location 2
ACTION:
Set switch2
Preserve trigger
CONDITION:
Switch2 is set
ACTION:
Centered view on Location 3
Give all buildings owned by player 8 at Location 3 to player 1
Did I make any mastakes?
I think i did because its not working...
You must clear the switches after
You have to set the death counter at the begining of your trigger DaarkDoom. It does not count it if the unit dies. Unless you use a trigger to set the death.
Tutorial on switches:
http://www.staredit.net/index.php?tutorial=116Edit: copied "DaarkDoom" instead of the link.
Could you show an example pleas
You see, I understand english,but not very well...
Look at the tutorial. I forgot to copy the link properly but it is there now. And you don't always need to clear the switches.
¤ Actions here because the switch was set.
I am editing my map with X-tra 2.6 editor, and it hasnt any action like this...
How to make this action with X-tra 2.6 editor?
You mean the switch trigger? It should be under "Set switch". I don't really understand what you mean.
QUOTE(KaboomHahahein @ Jun 14 2005, 03:46 PM)
You mean the switch trigger? It should be under "Set switch". I don't really understand what you mean.
[right][snapback]235248[/snapback][/right]
Trigger
Players:
¤ Players this trigger applies to.
Conditions:
¤ 'Switch 1' is set.
Actions:
¤ Actions here because the switch was set
Tutorial on switches , the action....X-tra 2.6 editor hasnt any actions like that, how can I make that action in X-tra 2.6 editor?
...
There are other topics like this.
But:
Player 1:
Conditions:
Current player kills atleast 1 hydralisk.
Swtich 1 is cleared.
Actions:
Set switch 1.
Creat 1 hydralisk at location 2.
Preserve trigger.
---------------------
Player 1:
Conditions:
Current player kills atleast 1 hydralisk.
Swtich 1 is set.
Actions:
Clear switch 1.
Creat 1 hydralisk at location 1.
Preserve trigger.
Something like that.
Dont forget to preplace a hydra.
QUOTE(KaboomHahahein @ Jun 14 2005, 02:59 PM)
You have to set the death counter at the begining of your trigger DaarkDoom. It does not count it if the unit dies. Unless you use a trigger to set the death.
Tutorial on switches:
http://www.staredit.net/index.php?tutorial=116Edit: copied "DaarkDoom" instead of the link.
[right][snapback]235140[/snapback][/right]
What are you talking about? It does to count if a unit dies, It just doesn't add a death if the unit dies due to a trigger. Like a bound will not drive up death counters.
Switchs are simply a usefull tool for setting a status.
If u had a trigger u only wanted to work after say 5 minutes. u can make a trigger to wait for 5 minutes then turn on switch 1
in the conditions of the trigger u wanted to work after 5 minutes you can put 'switch 1 is set'
There are other functions like toggle, clear etc. think it through. U can make complex switchs using a few combos and triggers.
CONDITION:
Player8 suffers at least 1 death of Zerg Hydralisk
Switch 1 is cleard
ACTION:
Set Switch 1
Preserve trigger
CONDITION:
Player8 suffers at least 1 death of Zerg Hydralisk
Switch 1 is set
ACTION:
Greate 1 Zerg Hydralisk at Location 1 for Player8
Switch 1 is cleard
Preserve trigger
CONDITION:
Player8 bring at most 1 Zerg Hydralisk
Switch 1 is set
ACTION:
Clear Switch 1
Preserver trigger
It works ,but i whant that it would give me 1 Hydralisk after each deaf of 1 Hydralisk,but it gaves me a hole swarm and keeps going to create more Hydralisks....
Did I maka any mastakes
QUOTE((U)Bolt_Head @ Jun 14 2005, 05:53 PM)
What are you talking about? It does to count if a unit dies, It just doesn't add a death if the unit dies due to a trigger. Like a bound will not drive up death counters.
[right][snapback]235318[/snapback][/right]
Yes you are right. I was thinking about the death counters.
Wait, so if a unit dies it does count into the death? I thought it never counted and it only works if you set the death first.
When a unit is killed by some way other than triggers, the death is counted.
Yeah, if i dies 'Naturally' as I like to say.
You know, from old age [he he joke]
QUOTE(DaarkDoom @ Jun 15 2005, 01:16 PM)
CONDITION:
Player8 suffers at least 1 death of Zerg Hydralisk
Switch 1 is cleard
ACTION:
Set Switch 1
Preserve trigger
CONDITION:
Player8 suffers at least 1 death of Zerg Hydralisk
Switch 1 is set
ACTION:
Greate 1 Zerg Hydralisk at Location 1 for Player8
Switch 1 is cleard
Preserve trigger
CONDITION:
Player8 bring at most 1 Zerg Hydralisk
Switch 1 is set
ACTION:
Clear Switch 1
Preserver trigger
It works ,but i whant that it would give me 1 Hydralisk after each deaf of 1 Hydralisk,but it gaves me a hole swarm and keeps going to create more Hydralisks....
Did I maka any mastakes
[right][snapback]235951[/snapback][/right]
So could someone help?What did I make wrong?
the 3 triggers you wrote could be said like this. Assumeing thats what you want to do.
Conditions:
-Player 8 suffers at least one death of hydralisk
Actions:
-Create one hydralisk owned by player 8 at Location Respawn
-Set Deaths of Hydralisk for player 8 to subtract 1
-Preserve Trigger
There are no need for switches in the triggers you listed.
Thanks (U)Bolt_Head ,that solves everything in my map

, but wy my 3 triggers with switches gaved me not 1 ,but a hole swarm of hydralisks?What did I made wrong?

ADDITION:
I`ve dont wanted to create new topic for this question, so I add it here....
How can I change player colors?
Use SF, SCMD2, GUEdit, or Uber@tion on a BroodWar map.