Trigger Problem

raDixGhost

Member!
Joined
Sep 20, 2002
Messages
2,603
Reaction score
0
Location
East Coast
Website
www.gamers2k4.com
Well i use Starforge, Zap Placer, and Starcraft X-Tra Editor. But sometimes when i use a trigger that is used to create units, it sometimes creates them like its supposed to but sometimes it doesnt create or sometimes it creates more than it should.

I have a trigger such as this.

Condition
Always
Action
Create 1 Protoss Dark Templar(Hero) at location xxx

But instead of creating one it creates two. And this just didnt happen in one map but alot of different maps i made. I asked someone and he says hyperaction type thing. I know how to fix it after it happens but why should it happen in the first place?
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
If you have that trigger in a force. That trigger will fire once, times the number of active players in that force. So if you have 2 human players alive in force 1. The trigger in force one will fire twice.
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
Having a trigger in a force is the exact same thing as having the trigger for the specific player.

PLAYERS
-Force 1(player 1, 2, 3)
CONDITIONS
-Always
ACTIONS
-Create 1 Protoss Dark Templar(Hero) at 'xxx' for Force 1.

is the exact same thing as:

PLAYERS
-Player 1
-Player 2
-Player 3
CONDITIONS
-Always
ACTIONS
-Create 1 Protoss Dark Templar(Hero) at 'xxx' for Force 1.

I haven't encountered this problem a lot so I don't know everything about this. But I don't think Current Player would work.
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
Current player would work.

It creates extras because of whom the units are created for.

If you create 1 unit for "force 1" that single trigger will create one unit for each player in that force. Since your trigger is owned by the whole force each player will run the trigger. Each time creating one more unit for every player.

If you select 'current player' instead of 'force 1' then each trigger acts differantly. Instead of creating one unit for each player in the force it ONLY creates a unit for the player running the trigger. Then since the trigger will run for each player in that force each player will end up getting one unit.

Keep in mind that group owned triggers do not fire all at once. They fire independantly for each player in that group. And along with the rest of that specific players triggers.
 

NewPosts

New threads

Top