Save-Point
MVX Rank System - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker VX Code (https://www.save-point.org/forum-101.html)
+----- Thread: MVX Rank System (/thread-7047.html)



MVX Rank System - Leon Blade - 03-04-2008

Leon Blade's Ranking System

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:
Hello everyone, It's been a long time since I've been on Creation Asylum. But this has been my favorite site for RPG Maker so I'm gunna post my Rank System here.

What it does:
The ranking system is like a Level System. Basically you use it like you were in a group of soldiers and you had Ranks
Right now this script can do the following things:
  • Add Hero to Ranks
  • Remove Hero From Ranks
  • Change Hero's Rank
  • Display Hero's Rank in the Message
Adding Hero:
To add a hero you type in the following:
Code:
$game_rank.AddSoldier(id,rank)
This will add the Hero of the ID to the Ranking system and give them the Rank

Removing Hero:
To remove a hero you type the following:
Code:
$game_rank.RemoveSoldier(id)
This will remove the Hero of the ID from the Ranking system

Changing Heroes:
To change the hero's rank type the following:
Code:
$game_rank.ChangeSoldier(id, rank)
You enter in the ID of what Hero you want to change, then pass in there new Rank

Displaying In Messages:
To display the rank of any hero in a message type this in your message:
Code:
\sr[id]
SR stands for Soldier Rank then just put in your ID you want to get the rank for

Checking Ranks:
To check if your rank is over, under, equal, or not equal to a rank do the following:
  • In your event, create an Conditional Branch
  • Choose script
  • Type in the following:
Code:
$game_rank.ranks[hero_id] [b]CONDITION[/b] rank

Replace CONDITION with one of the following:
  • Greater Than: >
  • Greater Than or Equal To: >=
  • Less Than: <
  • Less Than or Equal To: <=
  • Equal To: ==
  • Not Equal To: <>
Example:
Code:
$game_rank.ranks[3] == 5
NOTE: You MUST have a rank enabled before you use the condition or your game will get an error and die.
I'm working on that.

Future Features:
Here are some new features that will be added soon:
  • EXP System
  • Menu Display
  • Improved Variable Storage

The Script:
So if any of this sounds interesting to you, just copy this script into your project
Here is the demo:
.zip   Soldier_Rank_Demo.zip (Size: 243.07 KB / Downloads: 0)

"Ranking System Script"

I hope you enjoy this script!
--Leon Blade