Staredit Network

Staredit Network -> UMS Assistance -> Stuck ,why End Scenario with 2 kills ?
Report, edit, etc...Posted by LegitXeris on 2004-11-11 at 19:48:25
Hey guys,

Thx for help in previous post, I finally figured it out, but its gonna take 288 triggers since i have 8 players and 36 units.

Anyways I have a new problem..... I play game with 2 players, and player 1 won with only 2 kills when goal is to kill 30 to win. Here is two triggers, I can't find out what I did wrong

Condition:
player 1 brings 1 scv to "30 kills win"

Action:
set switch "Chose 30 kills to win"


Condition:
player 1 custom score at least 30
switch "Chose 30 kills to win" is set

Action:
Set switch "Player 1 Won"
wait 5000
display text
end scenario in victory

If you want to take a look or will help me fix, please download the map below

legitXeris
Report, edit, etc...Posted by BeeR_KeG on 2004-11-11 at 19:52:19
The Triggers should work fine from what I see.
Maybe you mixed up some of the switches?

The "Player 1 Won" switch is not needed.
Any action that is done with what that switch does can be put in that same trigger and save up on strings and switches.

BTW: Please comment your triggers i couldn't find them all.
Report, edit, etc...Posted by LegitXeris on 2004-11-11 at 19:55:48
I added switch "player 1 won"

because of this following trigger

Players:
2,3,4,5,6,7,8
condition:
switch "Player 1 won" is set

Action:
end scenario in defeat for current player
Report, edit, etc...Posted by SA_Max71 on 2004-11-11 at 20:04:54
Ok, here is what the trigger should look like.

Trigger
Description:
player 1 wins after killing at least 30 of unit x
Conditions:
¤ player 1 kills at least 30 of any unit/unit x
Actions:
¤ wait 5000
¤ display for current player: congrats, you have won!
¤ end scenario in victory for current player

It does not matter a whole lot if you have a location involved in your trigger... but the key to your trigger needs to be "player 1 kills at least 30 of any unit/unit x" in the conditions.
Report, edit, etc...Posted by SaLaCiouS(U) on 2004-11-12 at 14:01:19
You shouldn't have used SC Trigger, that's incredibly wasteful. You should have used the Kills to Cash methods found in the Triggers section of the Tutorials Database. Then you probably wouldn't have this problem either.
Next Page (1)