Author Topic: Conditionals inside conditionals  (Read 2104 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
Conditionals inside conditionals
« on: July 07, 2019, 02:43:31 PM »
I know this can be hard, but I think it's really necessary for Platform Builder.
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: Conditionals inside conditionals
« Reply #1 on: July 08, 2019, 04:16:56 PM »
What would be the point of this?

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: Conditionals inside conditionals
« Reply #2 on: July 09, 2019, 01:37:15 PM »
Imagine you want to check if the player is doing something, if it does, execute some commands, and you want to check also for an item when it's doing something. Idk, it's like normal programming do and works.
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: Conditionals inside conditionals
« Reply #3 on: July 09, 2019, 01:44:46 PM »
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: Conditionals inside conditionals
« Reply #4 on: July 09, 2019, 05:45:50 PM »
Can't you just either A: Add a new conditional below or above the conditional, or B: Have it check for both things?

EG
if player 1=skidding & item 1 >1
{
xyz
}
I don't think we need conditionals inside conditionals.

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: Conditionals inside conditionals
« Reply #5 on: July 09, 2019, 06:10:36 PM »
Let's show you an example of how it will enhance the Command Prompt.

MCreator is a program to create mods for Minecraft, it's just like a normal programming language but with blocks like scratch or app inventor. This is from my mod, it's not the better example, but it's a crate that generates a random weapon in 50% chance, the other 50% it will generate a random amount of coal. There is some if inside if


In my games in PB, I commonly use timelines as a substitute for putting conditionals inside other conditionals, that is somehow bad and a good programming language needs this.

I will do also a new suggestion here:
"Else if" statement for conditionals.
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: Conditionals inside conditionals
« Reply #6 on: July 09, 2019, 06:13:23 PM »
Okay.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Conditionals inside conditionals
« Reply #7 on: July 09, 2019, 08:22:52 PM »
I just ran across a situation where I NEED this!

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Conditionals inside conditionals
« Reply #8 on: July 10, 2019, 04:54:31 PM »
I just ran across a situation where I NEED this!

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!