Heart Fully Replenished - Help

Started by Tulk, June 21, 2017, 11:24:23 PM

Previous topic - Next topic
June 21, 2017, 11:24:23 PM Last Edit: June 22, 2017, 12:14:00 AM by Tulk
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 = /

June 22, 2017, 12:22:53 AM #1 Last Edit: June 22, 2017, 12:24:28 AM by Diarandor
Quote from: Tulk 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 = /

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.  :)
"If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you."