RPG Maker XP
Pokemon-like badge system
Introduction
This script shows badge images and details depending if they have been obtained or not
The Code
License Terms
Attribution 3.0 Unported - You must attribute the work in the manner specified by the author or licensor. Commerical use allowed.
Instructions
To call the script use this script call
$scene = Scene_Badges.new
To add badges to your possession use this script call
$game_system.badge_array.push(BADGE_ID)
Or you can push multiple like so
$game_system.badge_array.push(BADGE_ID, BADGE_ID, BADGE_ID)
Add the graphics of the badge to the pictures directory and call it "badge’BADGE_ID’". So for example I add badge 1 : "badge1.png"
If for any reason you need to remove a badge from your possesion you use this script call :
$game_system.badge_array.delete(BADGE_ID)
If you want to have a conditional branch inside an event to condition to a badge been in possesion use this script call
$game_system.badge_array.include?(BADGE_ID)
See in-script for all other related configuration.
Note this script only supports 8 badges like pokemon games, adding more details/images for other values than specified will simply be ignored. Also note that badge images should be 32×32 sized images.