Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Sthrattoff on July 01, 2008, 12:46:26 pm

Title: [XP] Victory Points - Script Mode
Post by: Sthrattoff on July 01, 2008, 12:46:26 pm
Victory Points - Script Mode
Authors: Sthrattoff
Version: 1.0
Type: Victory Counter
Key Term: Misc Add-on



Introduction

This script keeps track of battles you have won by placing them in $game_system.victory_pts


Features




Screenshots

NA



Demo

NA



Script

<REQUIRED OR DEMO, ALSO POST WHERE TO PUT YOUR SCRIPT>
Spoiler: ShowHide
#==============================================================================
# Victory Points
#------------------------------------------------------------------------------
# ** Version 2.0
# ** Original by Sthrattoff
#==============================================================================

class Game_System
 
 attr_accessor :victory_pts
 
 alias before_vp_initialize initialize
 def initialize
   before_vp_initialize
   @victory_pts = 0
 end
 
end


class Scene_Battle
 
 alias before_vp_phase5 start_phase5
 def start_phase5
   before_vp_phase5
   $game_system.victory_pts += 1
 end
 
end




Instructions

the victories are stored in
$game_system.victory_pts
you can display the variable in game by assigning a game variable to the value right before displaying it like so
$game_variables[ID] = $game_system.victory_pts


then you can display variable ID is a text box.

alternately you can write a script and use it there, ie. display it in the menu.



Compatibility

No issues know



Credits and Thanks




Author's Notes

The script version of my Victory Points system: Take a look!

as you my notice this member has had their account deleted, getting help form them is impossible here.


"I would like to thank Ryex for properly applying the template" or at least that is what I would say ~ Ryex

Title: Re: [XP] Victory Points - Script Mode
Post by: Blizzard on July 01, 2008, 01:23:43 pm
Would be nice if you applied the template to your topic. xD

http://forum.chaos-project.com/index.php?topic=17.0
Title: Re: [XP] Victory Points - Script Mode
Post by: Starrodkirby86 on July 03, 2008, 06:53:39 pm
So is the only thing I really have to do is Plug-and-Play (Above Main obviously) and I'm all set to go? A global variable doing my dirty work of Victories obtained? I like that...

My question is though, how does the second part work, when I insert that in Call Script?
Title: Re: [XP] Victory Points - Script Mode
Post by: magic2345 on July 04, 2008, 01:56:02 am
Victory Points huh? Why does that sound familiar?
Is it from GameStation Saga?
Title: Re: [XP] Victory Points - Script Mode
Post by: Blizzard on July 05, 2008, 06:59:12 am
You can use

$game_variables[ID] = $game_system.victory_pts


to put the value into a variable and mess around with it.