HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Real Value

08-14-2004, 01:23 AM#1
pappi.chullo
I'm looking for a value that detects the total number of users. I tried to use this trigger to display how many user players in the game:

Game - Display to (All players) the text: (Total number of players: + (String((Number of players in (All players controlled by a User player)))))

It turns out when I test it, (via ctrl+F9) the value is equal to 11. What is the real value that I need?

(edit: the value must not count computer players)

(edit two:Nevermind, I figured it out. Sorry.)
08-14-2004, 04:45 AM#2
Ninja73
2 ways, either do:

set integer = 0
for each player in all players do
if picked player slot status = is playing and player is not computer then
set integer = integer + 1
game display integer

or

set integer = player ammount of players in all players matching condition and matching player slot status = is playing and mathcing player is not equal to computer