Author Topic: CP-specific commands and conditionals.  (Read 1051 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
CP-specific commands and conditionals.
« on: October 15, 2018, 07:12:05 AM »
CP-specific commands and conditionals are a new way to interact with the environment in PB games, they are commands and conditionals that only works in specific cps in the software due of how they work. Normally, these use the word "this"
For example:

Code: [Select]
kill this enemyThis only will work in enemy CPs and will kill specifically the enemy who prompted the command.
Code: [Select]
destroy this blockThis will do the block prompting the command to destroy
Code: [Select]
if this block uses = 2This conditional will check the number of uses the block still has.
Code: [Select]
this enemy health = 1Set the enemy health to 1, useful for making the last hit of an enemy impossible to kill the enemy if you put it on a kill command prompt!

And a large etc.
Possibilities are endless!
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: CP-specific commands and conditionals.
« Reply #1 on: October 15, 2018, 06:03:57 PM »
I got the enemy hp increase, but the rest didn't make much sense.