Trigger help
May 16 2008, 9:56 pm
By: Cheathunta  

May 16 2008, 9:56 pm Cheathunta Post #1



How do i make it so that after a 15 min time limit runs out, One player wins and four other playr lose?



None.

May 16 2008, 10:09 pm DevliN Post #2

Woah

I don't have an editor open so I don't know the exact names, and I assume this is for your Spongebob map, so it should look like this:

PLAYERS
Player X (Gary)

CONDITIONS
Elapsed game time is at least 900 seconds.
Player X controls exactly 1 Zergling.

ACTIONS
Display text message: You win!
End scenario in victory for current player.


Or, you could do:
PLAYERS
Everyone but Player X (Gary)

CONDITIONS
Elapsed game time is at least 900 seconds.
Player X controls exactly 1 Zergling.

ACTIONS
Display text message: You have failed to find Gary.
End scenario in defeat for current player.


One or the other will work.



:devlin: Currently Working On: :devlin:
Myself

May 16 2008, 10:19 pm Wormer Post #3



Actually you dont need to run the Defeat action as when the Victory action runs SC automatically defeats all non allied victory players.



Some.

May 16 2008, 10:21 pm DevliN Post #4

Woah

That's why I said either one will work, and not both.



:devlin: Currently Working On: :devlin:
Myself

May 16 2008, 10:43 pm Wormer Post #5



I'm sorry. But will the player be automatically Victorious when all non allied victory players are defeated?



Some.

May 16 2008, 10:56 pm DevliN Post #6

Woah

Based on his thread about the map, its supposed to be like Team 1 has to find Player X before the time runs out. If they kill him in that time, they win. If he survives by that 15 minute mark, he wins.



:devlin: Currently Working On: :devlin:
Myself

May 17 2008, 12:13 am Cheathunta Post #7



Quote from DevliN
I don't have an editor open so I don't know the exact names, and I assume this is for your Spongebob map, so it should look like this:

PLAYERS
Player X (Gary)

CONDITIONS
Elapsed game time is at least 900 seconds.
Player X controls exactly 1 Zergling.

ACTIONS
Display text message: You win!
End scenario in victory for current player.


Or, you could do:
PLAYERS
Everyone but Player X (Gary)

CONDITIONS
Elapsed game time is at least 900 seconds.
Player X controls exactly 1 Zergling.

ACTIONS
Display text message: You have failed to find Gary.
End scenario in defeat for current player.


One or the other will work.


Isnt it better to do both at once?



None.

May 17 2008, 12:38 am DevliN Post #8

Woah

Yes, but you only need one of them to have "Victory" or "Defeat" triggers. If everyone else is defeated, the Player X wins without the trigger. And if Player X wins, everyone else gets defeat without a trigger making it happen. So really only one of those 2 triggers needs it.



:devlin: Currently Working On: :devlin:
Myself

May 17 2008, 7:03 am Wormer Post #9



Quote
If everyone else is defeated, the Player X wins without the trigger.
This cant be true.

Attachments:
DefeatTest.scx
Hits: 0 Size: 38.42kb



Some.

May 17 2008, 8:21 am DevliN Post #10

Woah

Oh right, my mistake. So you only need the victory trigger. I always thought that if everyone else was defeated, then the only one left gets victory... but that doesn't make sense, now that I think about it.

Thanks for pointing that out. :)



:devlin: Currently Working On: :devlin:
Myself

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:45 pm]
Vrael -- no u
[12:40 am]
Ultraviolet -- u mad bro
[2025-7-15. : 11:53 pm]
Vrael -- UR WATERFALL SUX AND U SHUD B ASHAMED (excuse me while I go and cry in a corner somewhere at all the hours I spent trying to make a waterfall that nice)
[2025-7-14. : 5:10 pm]
Ultraviolet -- No kidding, that thing is incredibly slick. If I didn't know SC that well, I'd assume it was a standard graphic that came with the game
[2025-7-14. : 10:14 am]
Oh_Man -- zomg that waterfall is the best thing i've ever seen
[2025-7-14. : 5:13 am]
Moose -- dumbducky
dumbducky shouted: Huge breakthrough: I fixed the RAID failure to automount and my stupid router applied the correct IP
put ddwrt or openwrt on router. Or maybe don't I have no idea if it will make your use case easier
[2025-7-14. : 4:58 am]
Moose -- O cool, someone else fixed it while I was dead or w/e
[2025-7-13. : 4:32 am]
dumbducky -- Huge breakthrough: I fixed the RAID failure to automount and my stupid router applied the correct IP
[2025-7-12. : 5:13 pm]
Ultraviolet -- :wob:
[2025-7-10. : 7:43 pm]
dumbducky -- >is retarded
Please log in to shout.


Members Online: RIVE