• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need some help with solo play! {making a map unable to be played in Single Player}

Status
Not open for further replies.
Level 6
Joined
Mar 15, 2009
Messages
190
Hey guys,

Can anyone help me with this:

How do i make sure,
That when my map starts,
it CANNOT be played in single player, but with at least 2 players?

Thanks in advance!
 
Level 11
Joined
Feb 16, 2009
Messages
760
Here you go:
  • Player check
    • Events
      • Map initialization
    • Conditions
      • (Number of players in (All players controlled by a User player)) Equal to 1
    • Actions
      • Player Group - Pick every player in (All players controlled by a User player) and do (Game - Defeat (Picked player) with the message: This game can only ...)
 
Level 18
Joined
Mar 7, 2005
Messages
824
dunno if this works for the computer players as well, some maps got some single player protection, but when i added some computer players to it, it worked..
so you should check, if he is playing and if it's a user, instead of just counting ingame players

conditions:
- check if player is user or computer player
- check if player slot equal to is playing
 
Status
Not open for further replies.
Top