Staredit Network

Staredit Network -> UMS Assistance -> MapMake
Report, edit, etc...Posted by DaarkDoom on 2005-06-14 at 14:57:41
Could someone please tell me ,how to work with swithes? helpsmilie.gif

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....

Report, edit, etc...Posted by Snipe on 2005-06-14 at 15:04:33
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.
Report, edit, etc...Posted by DaarkDoom on 2005-06-14 at 15:38:07
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...

Report, edit, etc...Posted by roule on 2005-06-14 at 15:59:24
You must clear the switches after
Report, edit, etc...Posted by KaboomHahahein on 2005-06-14 at 15:59:52
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=116

Edit: copied "DaarkDoom" instead of the link.
Report, edit, etc...Posted by DaarkDoom on 2005-06-14 at 16:13:16
Could you show an example pleas blushing.gif
You see, I understand english,but not very well...
Report, edit, etc...Posted by KaboomHahahein on 2005-06-14 at 16:40:22
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.
Report, edit, etc...Posted by DaarkDoom on 2005-06-14 at 17:43:19
¤ 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?
Report, edit, etc...Posted by KaboomHahahein on 2005-06-14 at 17:46:34
You mean the switch trigger? It should be under "Set switch". I don't really understand what you mean.
Report, edit, etc...Posted by DaarkDoom on 2005-06-14 at 17:52:04
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?
Report, edit, etc...Posted by axblader on 2005-06-14 at 17:55:18
...
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.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-06-14 at 18:53:33
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=116

Edit: 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.
Report, edit, etc...Posted by JSonicC on 2005-06-15 at 06:58:15
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.
Report, edit, etc...Posted by DaarkDoom on 2005-06-15 at 15:16:14
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
Report, edit, etc...Posted by KaboomHahahein on 2005-06-15 at 15:39:40
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.
Report, edit, etc...Posted by LegacyWeapon on 2005-06-15 at 16:04:13
When a unit is killed by some way other than triggers, the death is counted.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-06-16 at 00:07:55
Yeah, if i dies 'Naturally' as I like to say.

You know, from old age [he he joke]
Report, edit, etc...Posted by DaarkDoom on 2005-06-16 at 09:48:18
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?
Report, edit, etc...Posted by (U)Bolt_Head on 2005-06-16 at 11:29:15
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.
Report, edit, etc...Posted by DaarkDoom on 2005-06-16 at 13:06:41
Thanks (U)Bolt_Head ,that solves everything in my map cool1.gif , but wy my 3 triggers with switches gaved me not 1 ,but a hole swarm of hydralisks?What did I made wrong? confused.gif

ADDITION:
I`ve dont wanted to create new topic for this question, so I add it here....

How can I change player colors?
Report, edit, etc...Posted by LegacyWeapon on 2005-06-16 at 15:36:35
Use SF, SCMD2, GUEdit, or Uber@tion on a BroodWar map.
Next Page (1)