Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Where do I change the Skill TYPE icons?, The ones shown in battle.
Lato
post Nov 12 2012, 03:56 PM
Post #1


Infantry for life!
Group Icon

Group: Staff
Posts: 1,709
Type: Artist
RM Skill: Skilled
Rev Points: 155




Ok I was updating a few things and in battle I noticed the skill type icons, like whatever you would call magic or sword skill, doesnt have the icons that really goes along with it. I tried looking in the editor for it but it only seems to let you make and delete the skill types not change the icon that is shown in battle with it, so I assume this requires a script edit? If so where?


__________________________
Go to the top of the page
 
+Quote Post
   
ZarroTsu
post Nov 12 2012, 04:24 PM
Post #2


Human
Group Icon

Group: Revolutionary
Posts: 189
Type: Developer
RM Skill: Advanced




Can you post a screenshot of the situation?
Go to the top of the page
 
+Quote Post
   
Lato
post Nov 12 2012, 05:00 PM
Post #3


Infantry for life!
Group Icon

Group: Staff
Posts: 1,709
Type: Artist
RM Skill: Skilled
Rev Points: 155




QUOTE (ZarroTsu @ Nov 12 2012, 05:24 PM) *
Can you post a screenshot of the situation?




Here you can see the char selected is a sword user from the pic, yet when you look at his abilities listed to the right, it shows his skill type icon as a AXE, so where do I change them?


__________________________
Go to the top of the page
 
+Quote Post
   
ZarroTsu
post Nov 12 2012, 07:52 PM
Post #4


Human
Group Icon

Group: Revolutionary
Posts: 189
Type: Developer
RM Skill: Advanced




It seems you're using a custom script (the icons of which are being pulled and used by this script), which means it could be pulling it in any number of ways. If the script you're using happened to be packaged with additional resources, they're likely being pulled from those resource files. However, more likely they're pulling from the iconset manually by script, meaning you're likely going to have to do some spelunking in the script editor to find out where and in what way.

Fortunately, as far as the default works-perfectly-fine-so-why-change-it commands go, "draw_icon" is used to... draw icons. The firstmost object in this functon call is the "index" of the icon used, usually pulled from the skill or item itself. In this case, chances are it's pulling a raw number. But which number?

Fortunately, VXace comes with a neat little cheat I only just now noticed:



Since "draw_icon" is structured in such a way that the index is pulled first, you can simply search through the code for "draw_icon(116" in this case, and it should find at least one result, somewhere. Change the number, "116", to whatever icon you'd like to replace this, which you can reference either by counting icons on the list (topleftmost being 0, and each icon read left-to-right adding 1), or using the little box shown in the above screenshot.

This post has been edited by ZarroTsu: Nov 12 2012, 07:52 PM
Go to the top of the page
 
+Quote Post
   
Lato
post Nov 12 2012, 07:59 PM
Post #5


Infantry for life!
Group Icon

Group: Staff
Posts: 1,709
Type: Artist
RM Skill: Skilled
Rev Points: 155




Eh my scripting knowledge is a little weak, so your saying somewhere in the custom scripts is the line "draw Icon" and whatever #s are in there control what is shown in combat?


__________________________
Go to the top of the page
 
+Quote Post
   
Clord
post Nov 12 2012, 11:23 PM
Post #6


General Bastardo hates your guts!
Group Icon

Group: Revolutionary
Posts: 216
Type: None
RM Skill: Undisclosed




QUOTE (Lato @ Nov 13 2012, 05:59 AM) *
Eh my scripting knowledge is a little weak, so your saying somewhere in the custom scripts is the line "draw Icon" and whatever #s are in there control what is shown in combat?

Yanfly Engine Ace - Command Window Icons

Customizing starts from the line 57.

Just use a matching string and then choose the icon index for that string.

This post has been edited by Clord: Nov 12 2012, 11:24 PM


__________________________
Go to the top of the page
 
+Quote Post
   
Lato
post Nov 13 2012, 12:32 PM
Post #7


Infantry for life!
Group Icon

Group: Staff
Posts: 1,709
Type: Artist
RM Skill: Skilled
Rev Points: 155




Ah thank you guys happy.gif I learned something new today, now the skills look much better.


__________________________
Go to the top of the page
 
+Quote Post
   

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: 18th May 2013 - 04:00 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker