I have a problem with the triggers.

Post Reply
User avatar
omega20
Zerg Ultralisk Waste Manager
Zerg Ultralisk Waste Manager
Posts: 692
Joined: Sun Apr 06, 2008 7:38 am

I have a problem with the triggers.

Post by omega20 »

When I'm going to create a unit (using triggers) in a map, this unit is created twice. And the trigger is simple, look:

C - Always
A - Create 1 unit at location to player


Why? :(

Also, ALL the switches are set at the same time! (I've checked the triggers many times; I haven't done anything wrong, I assure you) :'(

Can anyone help me, please?
[imgwh 400x120]http://www.sigrealm.com/freesigs/178_Starcraft2MultSig.jpg[/imgwh]
User avatar
Revan
Terran Dropship Flight Attendant
Terran Dropship Flight Attendant
Posts: 154
Joined: Wed Dec 26, 2007 11:15 am

Re: I have a problem with the triggers.

Post by Revan »

The first trigger runs for two players (or a force of two players), doesn't it? That's why it creates two units; it runs itself twice.
Signature can be found here.
User avatar
omega20
Zerg Ultralisk Waste Manager
Zerg Ultralisk Waste Manager
Posts: 692
Joined: Sun Apr 06, 2008 7:38 am

Re: I have a problem with the triggers.

Post by omega20 »

Revan wrote: The first trigger runs for two players (or a force of two players), doesn't it? That's why it creates two units; it runs itself twice.
Oh, yes, I didn't notice that. Fixed. It now works perfectly. Curiously, the problem with the switches is solved now... Thanks. ;)
[imgwh 400x120]http://www.sigrealm.com/freesigs/178_Starcraft2MultSig.jpg[/imgwh]
slasher
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 1
Joined: Thu Aug 28, 2008 5:59 am

Re: I have a problem with the triggers.

Post by slasher »

man i really hate switches but ive never stoped to wonder what are they?  ::)
User avatar
Whiplash!
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 963
Joined: Wed Sep 13, 2006 4:21 pm
Location: Florida
Contact:

Re: I have a problem with the triggers.

Post by Whiplash! »

slasher wrote: man i really hate switches but ive never stoped to wonder what are they?  ::)
They are useful for having an event start as soon as you want it to get triggered from any type of event.
¯\_(ツ)_/¯
User avatar
Legion
Xel'naga Hero
Xel'naga Hero
Posts: 1140
Joined: Tue Aug 21, 2007 1:17 am

Re: I have a problem with the triggers.

Post by Legion »

slasher wrote: man i really hate switches but ive never stoped to wonder what are they?  ::)
They're exacty that, "switches". I find them extremely useful, and they make things possible that wouldn't be possible otherwise. A prime example is Oracle's LotC -- the installation maps, especially.
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: I have a problem with the triggers.

Post by Lavarinth »

You know, at one point, I was like slasher and preferred to use a lot of conditions over switches. I only discovered the value of switches by looking at the door tutorials as well as realizing it's a great way to allow the story to continue at a previously explored location by setting a switch to on and the right conditions also met.
Last edited by Lavarinth on Thu Aug 28, 2008 10:23 am, edited 1 time in total.
- - Lavarinth
Campaign Creations Administrator
Post Reply