Author Topic: Conditional for checking type and ID  (Read 1055 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
Conditional for checking type and ID
« on: January 06, 2020, 11:07:32 PM »
For example, if I want a command block to check for anything and I want to check for different objects, like an specific block and then a player etc. We will need this because as far as I know we only can detect the id, but that wouldn't be useful for anything type of command block
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Conditional for checking type and ID
« Reply #1 on: January 06, 2020, 11:12:47 PM »
Really needed!

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Re: Conditional for checking type and ID
« Reply #2 on: January 06, 2020, 11:52:36 PM »
I am not sure if this is same as OP, but checking status would be great

For example:

check if custom enemy is moving, if so make custom enemy stop
if enemy 5 = move
{
enemy 5 = stop
}

if custom enemy is moving left, then make it move right
if enemy 5 = left
{
enemy 5 = right
}

if player has super jump ability, then stop this ability
if player 1 super jump = true
{
player 1 super jump = false
}


CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Conditional for checking type and ID
« Reply #3 on: January 07, 2020, 04:00:25 PM »
You can already do this, Saiwong. Check the conditionals page of Command Prompt.