Author Topic: Heart Fully Replenished - Help  (Read 219 times)

Tulk

  • Newbie
  • *
  • Posts: 18
    • View Profile
Heart Fully Replenished - Help
« on: June 21, 2017, 11:24:23 pm »
Hello! What would be the command to restore all life when you pick up a heart container? I know the logic but not the command = /
« Last Edit: June 22, 2017, 12:14:00 am by Tulk »

Diarandor

  • Hero Member
  • *****
  • Posts: 781
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Heart Fully Replenished - Help
« Reply #1 on: June 22, 2017, 12:22:53 am »
Hello! What would be the command to restore all life when you pick up a heart container? I know the logic but not the command = /

Ahoy there! There is not a single command to do that.
But if you already know the logic, you can easily do it.

You will find here the tools and commands that you may need:
http://www.solarus-games.org/doc/1.5/lua_api_game.html
The rest is just Lua, but I leave it as a programming exercise for you. ;)

PS: you can also find the code you need in any Solarus game made by Christopho.  :)
« Last Edit: June 22, 2017, 12:24:28 am by Diarandor »

Zefk

  • Sr. Member
  • ****
  • Posts: 492
  • Just helping Solarus
    • View Profile
    • Zelzec Business
« Last Edit: June 23, 2017, 12:11:02 am by Zefk »

Tulk

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Heart Fully Replenished - Help
« Reply #3 on: June 25, 2017, 07:50:22 am »
Thank you guys! \o