any scritps?
I need a script for my horror game where it displays 3 hearts in the corner of the screen and when a
RGSS3 Script RequestsJust wrote up a simple script like this. You can find it here: http://www.rpgmakervxace.net/topic/24138-gambit-arcade-lives/
Just set StartingLives to 3 and have an event use the script call lives(-1) to take away a heart whenever it touches you.
Just set StartingLives to 3 and have an event use the script call lives(-1) to take away a heart whenever it touches you.
I'd do it without scripts.
Use a variable to keep track of how many lives, update that when an event touches you, then have it call a common event. In the common event, do conditional branches based on the variable's value to determine which image to use in a Show Picture command.
Use a variable to keep track of how many lives, update that when an event touches you, then have it call a common event. In the common event, do conditional branches based on the variable's value to determine which image to use in a Show Picture command.
What Shaz said -- you don't need scripts for this at all, and I really don't think that this trend of "which script can I use" is good for the community as a whole. Eventing can be pretty powerful, so learn how to do it.
Original thread: https://forums.rpgmakerweb.com/threads/i-need-a-script-for-my-horror-game-where-it-displays-3-hearts-in-the-corner-of-the-screen-and-when-a.27264/