HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

the shortest way to get rid of leaver players get picked ?

05-28-2006, 01:37 PM#1
sky_FireIce
in my map
i have random duel system, two players randomly picked to fight each other.
Set Duelant_1 = (Random player from (All players controlled by a Human player))
Set Duelant_2 = (Random player from (All enemies of Duelant_1))
the scheme is very primitive, is there is simple and effective way of preventing leaver players beign choosen for duelants ?

sry for my eng
05-28-2006, 01:39 PM#2
Thunder_Eye
use a "matching player" and check if that player is playing
05-28-2006, 01:49 PM#3
sky_FireIce
05-28-2006, 02:23 PM#4
Thunder_Eye
Trigger:
Actions
Set Duelant_1 = (Random player from (All players controlled by a User player))
Set Duelant_1 = (Random player from (All players matching ((((Matching player) is an enemy of Duelant_1) Equal to True) and (((Matching player) slot status) Equal to Is playing))))
there you go
05-28-2006, 02:32 PM#5
sky_FireIce
yes yes , i got it... )
i just didnt know that u can detect if player is playing (((
thank you
05-28-2006, 03:00 PM#6
sky_FireIce
well, my next question is based on this. for example, there is no player for duelant_2, so dueland_2 value would be 0 or game will fill it something else ?
05-28-2006, 08:25 PM#7
Thunder_Eye
It would be 0