Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Law's Custom Equipment Screen
Version 1.1 By The Law G14 8/10/09 ~ 05/07/10
Introduction Wow, the day has finally come. My first script that I'm releasing to RRR! It took quite some time to make plus the fact that I planned on making it exclusive to my game, but I decided that it would be alright to release it to the public. This script is a Custom Equipment Screen that I hope you guys find useful for your game. Many more of my scripts will come in the future.
Features Color system, just like in VX, so that if the new stat is stronger than the old stat, it turns green, and if it’s weaker, it turns red. The face graphic of the party member is now shown, or any picture that you would like to use to represent the character. A new user friendly layout of the equipment screen.
Compatibility There may be some compatibility issues with some CMS’s or scripts that mess with the equipment screen. If you encounter any problems, I would be more than happy to help you solve your problem.
Instructions There is something very important that you must do to make the script work and that revolves around displaying the face graphics. To do this, you have to import your face into the pictures section of your recourse manager and name the face graphic '1' for the first actor in the actors tab of your databse, '2' for second, '3' for the third and so on.
FAQ Question 1: How do you make it so that you don’t have to name your actor with the actual name of the character? In my game, the character doesn’t have a set name.
Answer: On line 29, change this:
CODE
bitmap = RPG::Cache.picture(actor.name)
to this:
CODE
bitmap = RPG::Cache.picture(actor.id.to_s)
All you have to do is name the face graphic '1' if it's the first person in the database, '2' if it's the second, and so on.
Terms and Conditions All I ask for is proper credit where it is due.
Also, if you plan on hosting this script in other sites PLEASE TELL ME.
Special Thanks Special Thanks to Charlie Lee for helping me with the color system. Special Thanks to Ty for helping me learn RGSS. Edited by Night_Runner
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Wonderful Law, brilliant to see your first script here.
From looking at the 'presentation' of the code (As the code itself means nothing to me ) it's like your a natural, parts have been commented on, indented parts.
Keep 'em coming
There's some ideas that can be done, I noticed that VX scripts were simply duplicates of XP ones. Since it's easier to script in VX there's now possibly more VX ones, why not check through the RGSS2 section for ideas for more XP scripts
__________________________
I'm running the Great North Run in September in aid of NACC. A condition my wife has in it's severe form. Please sponsor me with whatever you can, thank you. If you'd like to help spread the word please share the image and link to my fundraising page.
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Wow, thank you Dark Holder! I've already started working on my next scripts which inlcudes more custom menu scripts and a quicksave script. Oh, and thanks for that idea you gave me, I'll be sure to look through the RGSS2 forum
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Congrats Law this looks decent and very well made, i cant belive this is your first script very nice work and you have my support all the way lol, i wish you luck on your next upload and i hope more people comment on this beacuse it looks very nice and i wouldnt be suprised if it was used in a game once
__________________________
Title: Final Fantasy V.2 Ascension Engine: RPG Maker XP Original Story and Concept by Xach-Crisis
"Graphical Beast Xach-Crisis working on Gai's Hunter with Vision Studios, check it out!"
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Haha, thanks Sicon. Actually, I plan on using it in my game. And yeah, I hope more people can give me some comments because I was wondering what I could add to the script to make it better.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
By your game you do mean Luster right? lol, im just wondering, i might use it in my side project aswell and add you in the credits, haha love it awesome work once again Law,
__________________________
Title: Final Fantasy V.2 Ascension Engine: RPG Maker XP Original Story and Concept by Xach-Crisis
"Graphical Beast Xach-Crisis working on Gai's Hunter with Vision Studios, check it out!"
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Glad you like it If you find any bugs, errors, or just have a question, don't hesitate to tell me Also, I'm thinking about adding another feature in which you have the ability to either equip your equipment freely or have the option to optimize your equipment, so that the game gives you the best choice of equipment to have.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 73
Type: Artist
RM Skill: Intermediate
Found a bug. When drawing the face graphic, it takes away the right most column of pixels in the picture
I found this out when the right line from the frame I made for the face graphic vanished. I even tried adding another row, but it also gets rid of that one
Essentially, instead of drawing, say, a 50x50 square, it will draw a 49x50 square. Even if one makes a 51x50 square, it will still draw a 49x50 square
EDIT: BIG bug
This script doesn't work with the ability to name the actors. For example, in my game, you can name the main character. As such, it causes a few issues, such as crashing the name if I so much as look at the main character's equip screen unless I make sure not to change the name
This post has been edited by Icalasari: Aug 13 2009, 08:48 PM
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
QUOTE
Found a bug. When drawing the face graphic, it takes away the right most column of pixels in the picture
I found this out when the right line from the frame I made for the face graphic vanished. I even tried adding another row, but it also gets rid of that one
Essentially, instead of drawing, say, a 50x50 square, it will draw a 49x50 square. Even if one makes a 51x50 square, it will still draw a 49x50 square
So what you mean is that you found out the maximum space for a picture is a 49x50 square? Thats a problem, I'm gonna try to work that out.
QUOTE
This script doesn't work with the ability to name the actors. For example, in my game, you can name the main character. As such, it causes a few issues, such as crashing the name if I so much as look at the main character's equip screen unless I make sure not to change the name
Actually, what the script does, is find the party member's name in the database. So, what name did you give your main charcter in the database? I'm nnot sure if finding this out will help, but its a try.
EDIT: For the 49x50 square thing, I'm thinking its because in order to initialize the window, I have to take off 32 pixels from the width and height of the actual window which holds the face graphic. This is probably not allowing the picture to get much bigger then 49x50 pixels.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 73
Type: Artist
RM Skill: Intermediate
QUOTE (The Law G14 @ Aug 14 2009, 04:27 AM)
So what you mean is that you found out the maximum space for a picture is a 49x50 square? Thats a problem, I'm gonna try to work that out.
Yeah, that's essentially the issue. I'm not sure of the exact size it chooses, but it does make the width one less than the height
QUOTE
Actually, what the script does, is find the party member's name in the database. So, what name did you give your main charcter in the database? I'm nnot sure if finding this out will help, but its a try.
I did try that. It still crashes because the hero's name changes. Maybe having it match up pictures with the same name as the actor ID (e.g. 001) instead of the name would help?
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 73
Type: Artist
RM Skill: Intermediate
QUOTE (The Law G14 @ Aug 14 2009, 08:39 AM)
Alright! I got it to work! On line 29, change this:
CODE
bitmap = RPG::Cache.picture(actor.name)
to this:
CODE
bitmap = RPG::Cache.picture(actor.id.to_s)
All you have to do is name the face graphic '1' if it's the first person in the database, '2' if it's the second, and so on. Hope that helped
Ah, that fixed the issue with name changing perfectly! Works like a charm now!
EDIT: The pixel being cut off glitch is worse than I thought. I tried doing a quick fix by reducing the face graphic from 102x102 to 101x102, and it still cuts off pixels. I found out the exact maximum width it allows. 99. Yet it seems to not limit the height of the face graphic, which leads to some confusion =/
This post has been edited by Icalasari: Aug 14 2009, 10:26 AM
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
QUOTE
The pixel being cut off glitch is worse than I thought. I tried doing a quick fix by reducing the face graphic from 102x102 to 101x102, and it still cuts off pixels. I found out the exact maximum width it allows. 99. Yet it seems to not limit the height of the face graphic, which leads to some confusion =/
Do you mind me having the face graphic or picture you're using. Let me try to see what I can do with it and the code.
QUOTE
Will definitely use this (unless I find a better one) Nice job
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 73
Type: Artist
RM Skill: Intermediate
QUOTE (The Law G14 @ Aug 14 2009, 02:23 PM)
QUOTE
The pixel being cut off glitch is worse than I thought. I tried doing a quick fix by reducing the face graphic from 102x102 to 101x102, and it still cuts off pixels. I found out the exact maximum width it allows. 99. Yet it seems to not limit the height of the face graphic, which leads to some confusion =/
Do you mind me having the face graphic or picture you're using. Let me try to see what I can do with it and the code.
I know it sucks. It was a placeholder graphic until I had made something better. I had to shrink it down before it fit in the programs (seemingly random) 99+x99 limit
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
I tested it out and I don't think I found anything wrong. I also checked how big it was and it was 102x102 pixels. No pixels were cut off, also, I have a screenshot of what I see:
Unless I'm misunerstanding what you're saying, everything works fine for me.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One