Fbu Posted February 6, 2011 Author Share Posted February 6, 2011 Is there some sort of Sub or function or something that checks the amount of players on a given map?If it helps this is what I'm trying to do```'garbage psuedocodePlayer steps on custom tileChecks for proper requirements (mana, items, blah blah) if requirements not met send message "You cant warp there right now"elseI = 0while I != 9 check amount of players on map(n+I) < 1 then warp to map n and stop else I++if no maps availible, send message "You cant warp there right now"```Bad psuedo code but I think you can see what I mean. I want it to check each map (n, n+1, n+2… n+9) until it finds an empty one and warps you there.I just want to know if there is a easy way to check amount of players on the map. Can anyone show me the right place to start? Link to comment Share on other sites More sharing options...
Robin Posted February 6, 2011 Share Posted February 6, 2011 ```For i = 1 to MAX_MAPS If Not PlayersOnMap(i) > 0 then ' Warp them here End ifNext``` Link to comment Share on other sites More sharing options...
Fbu Posted February 6, 2011 Author Share Posted February 6, 2011 Thanks Robin <3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now