Author Topic: if player conditional  (Read 1988 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
if player conditional
« on: January 13, 2020, 08:13:05 AM »
Checks only for a player if the player is 1 or 2
Sorry because my English is not very good because I'm Spanish ;) :P

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: if player conditional
« Reply #1 on: January 13, 2020, 03:25:28 PM »
Checks only for a player if the player is 1 or 2
Uhhh...Good idea?
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: if player conditional
« Reply #2 on: January 13, 2020, 07:51:33 PM »
If the character is player 1 or 2?

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: if player conditional
« Reply #3 on: January 13, 2020, 08:17:03 PM »
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: if player conditional
« Reply #4 on: January 13, 2020, 08:22:37 PM »
Then it makes sense. To see if a certain character is player 1 or 2. Like:

if character 23=player 1
{
XYZ
}

Is that correct?

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: if player conditional
« Reply #5 on: January 14, 2020, 07:02:19 AM »
Then it makes sense. To see if a certain character is player 1 or 2. Like:

if character 23=player 1
{
XYZ
}

Is that correct?
Seems good
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: if player conditional
« Reply #6 on: January 14, 2020, 07:09:43 AM »
No, its for two things. Check if the player that executed a command block is a player and which one and detect if a current character command prompt is being executed while is one player or another.

Useful if you make a multiplayer game, you can have only one character for two players, if they need different functions for each one, detect if its player 1 or 2
Sorry because my English is not very good because I'm Spanish ;) :P

Gizgord

  • average
  • Level 18: Statix
  • *
  • Posts: 835
    • View Profile
Re: if player conditional
« Reply #7 on: January 14, 2020, 07:19:04 AM »
I believe detecting which player does a certain action was requested before.
sure, I'm all for multiplayer representation.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: if player conditional
« Reply #8 on: January 14, 2020, 03:15:15 PM »
Gizgord: "I'm all fofr multiplayer representation."

CGM:
Same here.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: if player conditional
« Reply #9 on: January 14, 2020, 08:57:11 PM »
Gizgord: "I'm all fofr multiplayer representation."

CGM:
Same here.
"War555" Same here
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!