Author Topic: Problem with commands  (Read 1299 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
Problem with commands
« on: July 30, 2019, 11:49:35 AM »
Code: [Select]
if game var power != 1
{
     health - 1
}

This is not working. This should kill you if the power is not the correct. But doesn't kill you, doesn't matter if you have power 1 or not.
I've tried removing the ! from the =, but it doesn't work.

EDIT: If I change my health type to limited, it works. So, this might be a bug?
« Last Edit: July 30, 2019, 11:57:30 AM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Problem with commands
« Reply #1 on: July 30, 2019, 04:21:29 PM »
If you use no health or unlimited health, then health commands will be ignored.
Now that you mention it, I should make a quick fix for this so that you can still kill the character when using no health or unlimited health.

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: Problem with commands
« Reply #2 on: July 30, 2019, 04:23:47 PM »
Yes, please. Thank you :D
Sorry because my English is not very good because I'm Spanish ;) :P