Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 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: Revolutionary
Posts: 1,711
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
   
 
Start new topic
Replies
ZarroTsu
post Nov 12 2012, 07:52 PM
Post #2


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
   



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: 17th June 2013 - 08:41 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker