SRL Archive - MSI Archives

When only one player left(suggestion)


nielskool

2010-06-16 14:25:27

If I specify 2 players then it won't use the break(sleep) function when there is only one player left.

Little, easy update.. I quess.

Frement

2010-06-16 14:31:29

Bad, what if the script runs for 24 hours on one player?

anonymity

2010-06-16 14:33:38

^ Correct. It still should break out and not have any player running for a while.. then go back and keep up the only available player. Lather Rinse Repeat.

3Garrett3

2010-06-16 14:50:39

From: anonymity
^ Correct. It still should break out and not have any player running for a while.. then go back and keep up the only available player. Lather Rinse Repeat.


This is what it should do.

I do it in my scripts, it's a really simple thing to add.

I'll look through the code and see what's up. I can't guarantee I'll add it or anything, I am studying for exams right now.

Coh3n

2010-06-17 06:10:22

Yes. Shouldn't be hard. In the breaking procedure:

if (HowManyPlayers = 1) or (PlayersActive = 1) then
Not sure if there's a PlayersActive function, but it can be made easily enough. :)

If not today, I'll definitely have time tomorrow to add this. :)

Thanks Neils

Coh3n

2010-06-17 18:12:17

Committed. :)