ID card

I'm sure you know what an ID card is. If you don't, it's a little card you carry with you that has your picture and a bunch of other personal stuff on it.

I'm wondering if there is some sort of script that allows you to access a card that lists things such as

-Hometown (in game obviously)
-Gold
-A picture of your character sprite

-Time played

-Time

Please help!
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


You need to provide more details. How is the data to get onto the card? How is the card to be displayed? Via the menu, an event call? Who has these cards - each actor? NPCs?


Creating a class to contain the information is simple. Figuring out how to populate and display it is the hard part, and the bit you haven't included 🙂
You could use a picture for it and a common event to show it on demand, unless you plan on changing the info in the middle of the game.
I'm not sure if any of you have played Pokemon, but in the game, a player has a license.

The player can go into the menu and choose the "Trainer Card (ID Card/License)" option, and look at everything he's acomplished in game. On the card shows:

-Name
-A picture of your actor (not the face)
-Your play time
-How much money you have
-And the time

Trainer_Card_by_EspioGirl.jpg

There's an example ^ Obviously I wouldn't want something like "Pokedex" or "ID number" on mine, but

this is an example.

The card would update throughout the game yes. You earn 5Gold? You'll see it in your ID card!

I want the player to be able to access it from the Menu. Only the player. The card should either full the whole screen or blur out the background and appear in the middle.

Thanks!

Trainer_Card_by_EspioGirl.jpg
Will your game be a one player game? Or should the card be shown for every Group Member?

*edit*

Ok the question above is stupid.

But I want to know which name the card needs to display?

The name of the first party member? Or the name of a specific actor from the db?

And what to you mean with : "and the time"

Should the current time be displayed or the time when the new game was started?

Last question is:

How big the picture will be you want to use?
There's an example ^ Obviously I wouldn't want something like "Pokedex" or "ID number" on mine, but


this is an example.
You should just draw a mock-up of what you want, unless you want the exact same format except with a few fields removed.
Will your game be a one player game? Or should the card be shown for every Group Member?

*edit*

Ok the question above is stupid.

But I want to know which name the card needs to display?

The name of the first party member? Or the name of a specific actor from the db?

And what to you mean with : "and the time"

Should the current time be displayed or the time when the new game was started?

Last question is:

How big the picture will be you want to use?
The picture would fill the whole screen, 1080x1920.

The card would only be for the player, this game is one player, so it's not needed for other players.

Probably best to have one for Actor 1 and 2 considering those are the "Boy" and "Girl" players in the game.

By time, I mean the amount of hours, minutes, and days you have invested in the game.

You should just draw a mock-up of what you want, unless you want the exact same format except with a few fields removed.
I'd like the same format, with some of the fields removed. 
are you using the resolution breaker script to have a 1080x1920 screen? (w8, shouldn't it be 1920x1080?) or are you using the script that simply stretches the FS mode correctly so it works on widescreens?


coz if it's the second, then I guess making the picture as that size will actually cause clipping since the screen size of your game is still actually the smaller one (544x416 or maybe 640x480 if you used that)
Whoops, it is 1920x1080. Wow lol

Here's the script I'm using http://forums.rpgmakerweb.com/index.php?/topic/19981-full-screen-20/ 

I'm pretty sure it does the second thing you said.

Although I really don't mind if it's small. 
then I do think it needs to be the default size of your game window and not your full screen size since the script will simply stretch out everything to fill the screen without really changing the "resolution"...


but of course you can always use a higher resolution picture then stretch_blt to a lower resolution though it might be pointless to do that as you'll just have a higher file-size...
I don't mind if it's stretched, maybe it should be designed in an old school pixelated way. I don't see what people have against the giant pixels when you stretch the game, it looks fine to me! 

That being said, the next RPG maker should put the dang option to make the screen bigger anyways. Lol

So.. Stretch away I guess, I don't mind
You have no choice actually, it will be stretched once you go FS mode (that's what FS mode (for most if not all programs) is all about anyways)...


so it's basically a scene that shows the ID card right? And how many party members will you have? I guess just 1 (either boy or girl)?
Perfect then! And yes.

You go into the menu, push the "ID Card" option, and then it will show your ID card. Perhaps the ability to change the option name within the script would be useful. My future self will probably find a better name than ID card
are you using any menu scripts? btw, what's the difference between time played and time?
Don't worry about "time". I don't need that anymore. Time Played is the amount of time the player has invested in the game.(Day-Hours-Minutes)

I am using a Menu Script yes. It's this! http://www.rpgmakervxace.net/topic/2535-xs-icon-menu/ 😀
I'm almost finished, just need to figure how to write the time... Btw, it's up to you to make the background... XD
Woah thanks a lot! I'm fine with making the thing anyways 😀
Your game will only have 1 actor at a time?

Spoiler
#Trainer Card by Adiktuzmikomodule ADIK module TCARD #Title of the card TITLE = "ID Card" #X position of the title TITLE_X = 0 #Y position of the title TITLE_Y = 0 #Hometown is set per actor #Actor0, Actor1 and so on HOMETOWN = [nil,"RMWeb","RMWEB"] #X position of the hometown HOMETOWN_X = 96 #Y position of the hometown HOMETOWN_Y = 64 #Hometown title HOMETOWN_T = "Hometown:" #X of hometown title HOMETOWN_T_X = 0 #Y of hometown title HOMETOWN_T_Y = 64 #Gold title GOLD_T = "Gold:" #X of gold title GOLD_T_X = 0 #Y of gold title GOLD_T_Y = 128 #X of gold GOLD_X = 96 #Y of gold GOLD_Y = 128 #Time played title TPLAYED_T = "Time Played:" #X of time played title TPLAYED_T_X = 0 #Y of time played title TPLAYED_T_Y = 350 #X of time played TPLAYED_X = 400 #Y of time played TPLAYED_Y = 350 #Graphic settings for actors #Use actor sprite? #USE_SPRITE = [Actor0,Actor1,Actor2 and so on] USE_SPRITE = [false,true,true] #All custom graphics (aside from sprites) should be #placed in Graphics\System #Sprites will remain on the Characters folder #Name of graphics file to use if USE_SPRITE is false #Actual filename will be GRAPHICS + Id of actor #So Actor1 would be TCActor1 GRAPHICS = "TCActor" #X of actor graphic GRAPHICS_X = 100 + (Graphics.width/2) #Y of actor graphic GRAPHICS_Y = (Graphics.height/2) - 100 #Background graphics #Set to nil if no background BACKGROUND = "Clouds" #Windowskin #set to nil for no windowskin WINDOW = nil end endclass Scene_Trainer_Card < Scene_Base def start super @tc_window = Window_Trainer_Card.new end def terminate @tc_window.dispose super end def return_scene SceneManager.return end def update super if Input.trigger?🙂 or Input.trigger?🙂A) return_scene end end endclass Window_Trainer_Card < Window_Selectable def initialize super(0,0,width,height) self.windowskin = ADIK::TCARD::WINDOW @index = 0 refresh end def width return Graphics.width end def height return Graphics.height end def refresh contents.clear settings = ADIK::TCARD if not settings::BACKGROUND.nil? bit = Cache.picture(settings::BACKGROUND) contents.blt(0,0,bit,Rect.new(0,0,bit.width,bit.height)) end contents.draw_text(settings::TITLE_X,settings::TITLE_Y,544,32,settings::TITLE) actor = $game_party.leader contents.draw_text(settings::HOMETOWN_T_X,settings::HOMETOWN_T_Y,544,32,settings::HOMETOWN_T) contents.draw_text(settings::HOMETOWN_X,settings::HOMETOWN_Y,544,32,settings::HOMETOWN[actor.id]) contents.draw_text(settings::GOLD_T_X,settings::GOLD_T_Y,544,32,settings::GOLD_T) contents.draw_text(settings::GOLD_X,settings::GOLD_Y,544,32,$game_party.gold.to_s) contents.draw_text(settings::TPLAYED_T_X,settings::TPLAYED_T_Y,544,32,settings::TPLAYED_T) contents.draw_text(settings::TPLAYED_X,settings::TPLAYED_Y,544,32,$game_system.playtime_s) if settings::USE_SPRITE[actor.id] char = $game_player.character_name index = $game_player.character_index bit = Cache.character(char) if char.include?("$") w = bit.width/3 h = bit.height/4 contents.blt(settings::GRAPHICS_X,settings::GRAPHICS_Y,bit,Rect.new(w,0,w,h)) else w = bit.width/12 h = bit.height/8 x = (index % 4 * 3 + 2) * w y = (index / 4 * 4 + (2 - 2) / 2) * h contents.blt(settings::GRAPHICS_X,settings::GRAPHICS_Y,bit,Rect.new(x,y,w,h)) end else bit = Cache.picture(settings::GRAPHICS + actor.id.to_s) contents.blt(settings::GRAPHICS_X,settings::GRAPHICS_Y,bit,Rect.new(0,0,bit.width,bit.height)) end end #So that there is no cursor def update_cursor end endclass Scene_Menu #You can use this as the handler if you're going to #add a command from the menu to open the Trainer Card def command_adik_tcard SceneManager.call(Scene_Trainer_Card) endend
to use it with XAIL, add a new custom command to the menu list which calls Scene_Trainer_Card
There will be party members, that slowly join your party one by one throughout the game, but you only get to play as your character. The only time you play as the others is when you command them during battle. 
Then I guess that should do it. Try it 🙂

Original thread: https://forums.rpgmakerweb.com/threads/id-card.26189/