Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Victory point

Started by Sthrattoff, October 29, 2006, 07:56:57 PM

0 Members and 1 Guest are viewing this topic.

Sthrattoff

I have post it before...
Before this forum crashed.

I'll repost this tuts.

My idea about Victory Points is a point given to the party when they're winning a battle.
This point then can be used for any purpose, like a requirement for entering arena, bargaining an amazing stuff, used for Training Points like on Digimon World 3, or anything in your mind.

So, what you need is an RMXP.
Let's get started! ;)

First, on the beginning of your game, activate a SWITCH, just call it SW1
Now, on the Common Event tab, create 2 events, called Counter and Operand.

On counter, enter these command, and set the trigger to SW1 ---> Parallel Process
<>Comment : Create 2 Variables
<>Var01 = Mainchara's EXP
<>Var02 = Var01

On Operand, enter these command and set the trigger to SW2 ---> Parallel Process
<>Comment : Defining
<>Var01 = Mainchara's EXP
<>If Var01 > Var02
<>Var01 - Var02
<>Comment : Implementing EXP Sharing System. This is OPTIONAL!
<>If 2ndChara is on party
  <>
<>Else
  <>Change 2ndChara EXP + Var01
<>Comment : Victory Points! It will random between 1~10
<>Var03 + Random Between 1~10
<>end if
<>SW1 = ON
<>SW2 = OFF

Now go to monster party  tab.
Add this command to every party, set the event trigger to Turn 0
<>SW2 = ON
<>SW1 = OFF

Phew, a lot of words...
Hope it works well with you... ^-^
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Sthrattoff

Guess we just have to remove it...

It's a secret anyway...................
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Blizzard

What?! No! You won't remove that! :=:
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Sthrattoff

#3
Just kidding...
Can you move it to tut database?
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Blizzard

*moves* Oops. >.< I thought I already did.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Demonic Blade

Nice! Could you like try updating it so it's more advanced? I think of these victory points as experience points, and if you could make 3 different types of victory points, all changed on how much you use different aspects of attacks (eg. you use magic skills, you get magic exp. points, you attack with a weapon, you get strength exp. points. With bow, you get Skill/Ranged exp. points and so on)? But I'm dreaming... It's cool, I might use it! :D
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Sthrattoff

Just make another variables and put it on Operand common events.
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Demonic Blade

Hey, that does make sense. Hmm, I'll try it out, thx
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Sthrattoff

Hey, lately I found a way to make this thing into script, so things will be simpler...

I'll post when it finished!
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Demonic Blade

Thanks! Even though I don't understand them, I clearly like scripts better. Events are just long, and unless there's a demo attached, it can take ages to put it in... ;)
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Kokowam

Lol, you don't need an actual full script. You just need to have two lines of code. Maybe even one. Just one lines makes a random number and the other lines adds the random number to a global variable. Then you can use whatever variable you want as the holder of Victory Points. This should go in the place where you get your EXP and stuff.

Demonic Blade

A script is a script, that's all there is to say. And a 2-line-script can still be a full script. But not bad, I might try it out meself, it'd be decent practise (for someone who's never scripted before at least...)!
But if some1 could do it, then that'd be really great!
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Kokowam

I'll try it a little later, lol. You could also probably alias the method into there. Which would be a script for those who are willing to take the initiative so that the people using scripts won't need to look for it. I'll try this some other time.

Demonic Blade

I'm not even going to try to understand that. Darn, RPG's tuts really weren't that useful I guess....
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Sthrattoff

Ssshh...
The script's done!

But I did not make the window to show how much VP you have. You have to make it yourself (because I don't know where you will put it).
The variable used is: $game_system.victory_pts

#==============================================================================
# Victory Points
#------------------------------------------------------------------------------
# ** Version 2.0
# ** Original by Sthrattoff
#==============================================================================

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


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


Something that you need to know that I'm not test it yet. I just run it and no problem so far. Maybe when you saving your game, you'll find something.
Maybe...

Please test it for me.
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%