Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lives System
#1
Lives System
by Constance
Version: 1.0
Aug 10 2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Introduction

A quick script I made before I forgot the idea. Just a simple lives system shown on your map. You can add lives and remove lives. Once it gets to 0, game over. You can even call the gameover command from an event, and the process will still be the same.

Features
  • Add Lives (multiple if you like)
  • Remove Lives (multiple if you like)
  • Call Gameover Command and process is still the same
  • After Battle process is still the same
  • Once you reach 0 lives, all looping will break itself, and therefore any commands you press will be invalid.
  • Set Default number of lives
  • Set "Gameover Level" (0 by default)
  • Show on map at all times
  • Have negative lives (don't know why you would want it though)


Script


The Script


Instructions

To install, simply copy and paste this above your Main Script. Be sure you also have the SDK latest version (1.5), as it is needed.

Adding Lives

To add a life, simply use this code in an event's script editor.

Code:
$game_party.add_lives(1)

or:


Code:
$game_party.lives += 1



Whichever one works for you.

You can change that number to whatever amount of lives you want to give a character.

Removing Lives

To remove a life you can use either one in an event's script editor.


Code:
$game_party.remove_lives(1)

or:


Code:
$game_party.lives -= 1




Replace the 1 with the number of lives you want removed.

You can also remove as an extra bonus use the Gameover command, and it will in fact remove 1 life for you.

Be sure when your calling a battle to make it a win/lose condition so that you may remove 1 life (if you want) in that battle.

FAQ

How do you increase the default lives?

At line 39. You can change it there.

How can I change the number my gameover screen will appear?

At lines 154 and 155 you will see this:


Code:
case $game_party.lives
when 0



Replace the 0 with the number you want to be the "gameover level".

Compatibility

SDK. That's it for now.

Credits and Thanks

My brain...I finally got the time to do a script. First one in a long time. But it was a spare of the moment before I forgot.

Author's Notes

More and better releases of this will be coming soon. Just sit tight. Enjoy.

~Constance
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Caldaron's Time System Caldaron 0 2,706 11-05-2006, 01:00 PM
Last Post: Caldaron
  Level Up system Jimmie 0 2,241 07-24-2006, 01:00 PM
Last Post: Jimmie
  Equipment Scrolling System Legacy 0 2,095 05-12-2006, 01:00 PM
Last Post: Legacy
  Inn & Savepoint System SephirothSpawn 0 2,045 03-08-2006, 01:00 PM
Last Post: SephirothSpawn
  New Battle System V1.5 (Added Side View) Guedez 0 2,427 01-12-2006, 01:00 PM
Last Post: Guedez
  Slipknot Advance Message System Sheol 0 2,270 01-02-2006, 01:00 PM
Last Post: Sheol
  Guedez's Atrubutes Select System V2.1 Guedez 0 2,430 12-09-2005, 01:00 PM
Last Post: Guedez
  My own Message System Sheol 0 2,260 11-22-2005, 01:00 PM
Last Post: Sheol
  ToP food system Jimmie 0 2,092 10-04-2005, 01:00 PM
Last Post: Jimmie
  The options system Sheol 0 1,920 09-26-2005, 01:00 PM
Last Post: Sheol



Users browsing this thread: