Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

6 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Law's Custom Equipment Screen, First script submission to RRR!
The Law G14
post Aug 10 2009, 06:17 AM
Post #1


Scripter FTW
Group Icon

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.


Script

Attached File  Law_Custom_Equipment_1_1.txt ( 19.33K ) Number of downloads: 392


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.

Screenshots
[Show/Hide] Screenshots






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

SHistory
Version 1.0: Attached File  Custom_Equipment_Screen.txt ( 19.21K ) Number of downloads: 87


This post has been edited by Night_Runner: May 7 2010, 05:23 AM


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Holder
post Aug 10 2009, 06:42 AM
Post #2


Spoilers.
Group Icon

Group: Revolutionary
Posts: 4,204
Type: Developer
RM Skill: Advanced
Rev Points: 250




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 tongue.gif ) it's like your a natural, parts have been commented on, indented parts.

Keep 'em coming smile.gif

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 wink.gif


__________________________

 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.

Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 10 2009, 06:53 AM
Post #3


Scripter FTW
Group Icon

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 smile.gif


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Xach-Crisis
post Aug 11 2009, 01:37 AM
Post #4


"In a world called Tenebrae..."
Group Icon

Group: Revolutionary
Posts: 566
Type: Developer
RM Skill: Skilled




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!"
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 11 2009, 05:00 AM
Post #5


Scripter FTW
Group Icon

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.


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Xach-Crisis
post Aug 12 2009, 02:01 AM
Post #6


"In a world called Tenebrae..."
Group Icon

Group: Revolutionary
Posts: 566
Type: Developer
RM Skill: Skilled




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!"
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 12 2009, 04:21 AM
Post #7


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Thanks Sicon smile.gif And yeah, I do mean Luster. I hope you find this script useful for your game smile.gif


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Tenshino
post Aug 13 2009, 09:05 AM
Post #8



Group Icon

Group: Member
Posts: 1
Type: Writer
RM Skill: Advanced




Thanks man, good stuff smile.gif
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 13 2009, 01:38 PM
Post #9


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Glad you like it smile.gif If you find any bugs, errors, or just have a question, don't hesitate to tell me smile.gif 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.


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Icalasari
post Aug 13 2009, 04:43 PM
Post #10


Level 5
Group Icon

Group: Member
Posts: 73
Type: Artist
RM Skill: Intermediate




This script looks genius. I'll have to use it in my game

>.> I wish I could script, period. At this rate, half of the credits will be dedicated to script makers XD


__________________________
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 13 2009, 07:00 PM
Post #11


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Thankyou very much smile.gif Your comments mean alot to me. And like I said before, if you find any bugs, errors, ect. report away smile.gif


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Icalasari
post Aug 13 2009, 07:30 PM
Post #12


Level 5
Group Icon

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


__________________________
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 14 2009, 04:27 AM
Post #13


Scripter FTW
Group Icon

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.


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Icalasari
post Aug 14 2009, 08:22 AM
Post #14


Level 5
Group Icon

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?


__________________________
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 14 2009, 08:39 AM
Post #15


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




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 smile.gif


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Icalasari
post Aug 14 2009, 10:19 AM
Post #16


Level 5
Group Icon

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 smile.gif


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


__________________________
Go to the top of the page
 
+Quote Post
   
Redd
post Aug 14 2009, 12:56 PM
Post #17


:<
Group Icon

Group: Revolutionary
Posts: 2,313
Type: Developer
RM Skill: Advanced




Will definitely use this (unless I find a better one)
Nice job wink.gif


__________________________
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 14 2009, 01:23 PM
Post #18


Scripter FTW
Group Icon

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


Thanks smile.gif Glad you like it.


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Icalasari
post Aug 14 2009, 02:03 PM
Post #19


Level 5
Group Icon

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


__________________________
Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 15 2009, 08:16 AM
Post #20


Scripter FTW
Group Icon

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.


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"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

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   

6 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 06:12 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker