ID card

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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 :)
 

♥SOURCE♥

Too sexy for your party.
Veteran
Joined
Mar 14, 2012
Messages
693
Reaction score
411
Primarily Uses
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.
 

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
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?
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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.
 
Last edited by a moderator:

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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. 
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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)
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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)?
 
Last edited by a moderator:

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
are you using any menu scripts? btw, what's the difference between time played and time?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I'm almost finished, just need to figure how to write the time... Btw, it's up to you to make the background... XD
 

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
Woah thanks a lot! I'm fine with making the thing anyways :D
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Your game will only have 1 actor at a time?

#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
 
Last edited by a moderator:

ChaoticShadow24

The Most Chaotic
Veteran
Joined
Dec 15, 2013
Messages
186
Reaction score
6
First Language
English
Primarily Uses
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. 
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Then I guess that should do it. Try it :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top