Author Topic: [XP] Revival Point  (Read 5516 times)

Offline tech williams

  • Trained Member
  • *
  • Posts: 29
  • LV: 5
  • Gender: Male
  • Now I'm bored
    • View Profile
[XP] Revival Point
« on: March 21, 2011, 09:35:04 PM »
Revival point
Authors: Tech Williams
Version: 1.1
Type: Game Over Over-ride
Key Term: Title / Save / Load / GameOver Add-on

Introduction
I looked for ages for a script like this, and when I couldn't find it I decided to try my hand at scripting, so may I present to you, my very first script.

1.0- Uploaded
1.1- Moved variable configuration to the top of the script for your convenience.

Features

  • Revival points assigned to variables.
  • Option to go to title or shutdown game.

Screenshots
(click to show/hide)


Demo

I doubt one is needed.

Script
This script replaces the default scene_gameover
(click to show/hide)

Instructions
Make sure you set the variables, I don't know how to make an error check so if you don't have valid points the game will crash.
This script replaces scene_gameover.

Compatibility

Well the only thing I tried it on was the default battle system

Credits and Thanks

  • brewmeister for giving me the 2 commands I couldn't find and ending my insanity :haha:
  • Me for having the patience to not delete it as soon as it didn't work.  :^_^':
  • LittleDrago for helping make my script a little easier to use.

Author's Notes

Im thinking of updates like being able to chose what way they face, an option to skip the game over screen completely and an automatic save when you die.
« Last Edit: March 22, 2011, 07:01:12 PM by tech williams »
How is it ninjas exist when they were meant to be silent killers? Shouldn't they be unknown?<br /><br />Hay you...Check out my deviant art.<br />Click here

Offline The Niche

  • The Hair Man
  • Chaos User
  • ******
  • Posts: 1561
  • LV: -171
  • Gender: Male
  • Marvel at the hair.
    • View Profile
    • Laptops and Tea, the place to go for marketing your creativity!
Re: [XP] Revival Point
« Reply #1 on: March 21, 2011, 09:41:28 PM »
Credits and Thanks

  • brewmeister for giving me the 2 commands I couldn't find and ending my insanity  :haha:
  • Do I have to credit the makers of RPG Maker?


No, you don't, but you should probably credit yourself.
Level me down, I'm trying to become the anti-blizz!
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.

(click to show/hide)
I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Revival Point
« Reply #2 on: March 21, 2011, 09:47:35 PM »
NICE! DOWNLOADING!!!
Koen Lemmen

Information:
(click to show/hide)
(click to show/hide)

Offline Xuroth

  • Awakened Visionist
  • **
  • Posts: 82
  • LV: 6
  • Gender: Male
  • *smite!* oops...
    • View Profile
Re: [XP] Revival Point
« Reply #3 on: March 21, 2011, 10:35:12 PM »
Very nice! Once I decide on a plotline and develop my game a little more, I may use this. Level up!

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Revival Point
« Reply #4 on: March 22, 2011, 06:35:16 AM »
Nice, it's true, there really wasn't a script for this. good job finding something that hadn't been done before. *moves*
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Revival Point
« Reply #5 on: March 22, 2011, 10:28:05 AM »
suggestion
Code: [Select]
    #------------------------------------------------------------------------
    respawn_map_id = $game_variables[X]
    respawn_map_x = $game_variables[X]
    respawn_map_y = $game_variables[X]
    #------------------------------------------------------------------------

I think you should done it like this

Code: [Select]
class Scene_Gameover

  RESPAWN_MAP_VAR = 1
  RESPAWN_X_VAR = 2
  RESPAWN_Y_VAR = 3
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    @transferring = false
    # Make game over graphic
    @sprite = Sprite.new
    bla bla bla
    ....
  end



  def command_respawn
    #------------------------------------------------------------------------
    respawn_map_id = $game_variables[RESPAWN_MAP_VAR]
    respawn_map_x  = $game_variables[RESPAWN_X_VAR]
    respawn_map_y  = $game_variables[RESPAWN_Y_VAR]
    #------------------------------------------------------------------------
    bla bla bla...
  end
end

That will help for configuring your script

Offline brewmeister

  • Trained Member
  • *
  • Posts: 22
  • LV: 2
  • Gender: Male
  • Paste above Main
    • View Profile
    • HBGames.org
Re: [XP] Revival Point
« Reply #6 on: March 22, 2011, 04:19:58 PM »
If the 'respawn' location is fixed throughout the game, the using Constants is neater.

If you want to change the respawn location as you move through the game..  i.e. local respawn locations,
then using game_variables makes it easy to control with events without using "script" commands.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Revival Point
« Reply #7 on: March 22, 2011, 05:46:16 PM »
Code: [Select]
RESPAWN_MAP_VAR = 1
  RESPAWN_X_VAR = 2
  RESPAWN_Y_VAR = 3
Thats what Drago is using is variables. Those constants are the id's of the variables to use. That way people don't have to scroll through half the script to configure it.

Offline tech williams

  • Trained Member
  • *
  • Posts: 29
  • LV: 5
  • Gender: Male
  • Now I'm bored
    • View Profile
Re: [XP] Revival Point
« Reply #8 on: March 22, 2011, 07:04:42 PM »
I updated it. Thanks LittleDrago.
How is it ninjas exist when they were meant to be silent killers? Shouldn't they be unknown?<br /><br />Hay you...Check out my deviant art.<br />Click here