Change Actor Graphics on Equip patch request

kingkoopa300

Sprite Farmer
Veteran
Joined
Nov 17, 2014
Messages
46
Reaction score
11
First Language
English
Hello, i'm again lost I've tried every Equipment Graphic script out there. This one is Simple and would work best with my battle scripts. There's one problem it's not compatible with my !$ sprites. I would use common event script to change graphics on equipment but i plan on have lot's of playable characters and equipment so 999 is the limit in common events and it will not be enough (I think). It would be nice if there was a way to get Large "!$filename.png" to work with this script.​
 ​
This is the script i'm talking about​
 ​
its' awesome even uses $file's but not !$.​
 ​
Victor Visual Equip is very good to, but it layers on sprites not change them which is not what i need. I could see using this script in my Action RPG project but my heart is set on Turn-Based for now.​
 ​
I know i could water-down my ideas use $ format instead but i already got 60 layers in Photoshop finished using !$ format​
i love the sprites I've created and i don't wanna start from scratch again. And Please forgive me Pro Scriptwriters i know i'm a newbie and this is my first game ever so i got no clue about Ruby yet.​
 ​
 

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 RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Do you NEED the ! in the filename? Do you know what it's for?


! at the start of a file name indicates that the sprite is not to be offset by 4 pixels when drawing (without it, the sprite is moved up 4 pixels from the standard grid). It's usually only used for non-moving things that you want to align perfectly with the grid - like doors. It has nothing to do with how large your spritesheet is or how many characters it contains.


However, try changing this line:

Code:
GRAPHIC_EQUIP = /<ge[:]?\s*(\d+)\s*[,]?\s*([$]*\w+)?\s*[,]?\s*(\d+)\s*>/i
to this:
Code:
GRAPHIC_EQUIP = /<ge[:]?\s*(\d+)\s*[,]?\s*([!$]*\w+)?\s*[,]?\s*(\d+)\s*>/i
 
Last edited by a moderator:

kingkoopa300

Sprite Farmer
Veteran
Joined
Nov 17, 2014
Messages
46
Reaction score
11
First Language
English
Sorry doesn't work... I wish i could figure it out
 

kingkoopa300

Sprite Farmer
Veteran
Joined
Nov 17, 2014
Messages
46
Reaction score
11
First Language
English
Well this script here fit's my needs might fill up my common events but beggars can be choosers ;) Thanks anyways Shaz

Hime's Equip Event
 
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 know i could water-down my ideas use $ format instead but i already got 60 layers in Photoshop finished using !$ format
I agree with Shaz here, there shouldn't really be a difference between using $ and $! as the ! part is just for adjusting the 4 pixel offset.

Do you NEED the ! in the filename? Do you know what it's for?


! at the start of a file name indicates that the sprite is not to be offset by 4 pixels when drawing (without it, the sprite is moved up 4 pixels from the standard grid). It's usually only used for non-moving things that you want to align perfectly with the grid - like doors. It has nothing to do with how large your spritesheet is or how many characters it contains.
 
Last edited by a moderator:

kingkoopa300

Sprite Farmer
Veteran
Joined
Nov 17, 2014
Messages
46
Reaction score
11
First Language
English
!

I agree with Shaz here, there shouldn't really be a difference between using $ and $! as the ! part is just for adjusting the 4 pixel offset.
 
Still doesn't work with my custom sprites, my characters are 238x428 pixels. i think that's why this won't work. Good to know about the difference between !$ and $ thanks Shaz and Engr.  $files work fine just the one's i've created don't work, weird :(  i'll stick with Hime's Equip event for now... i'll try to IM Jeneeus Guruman maybe he can shed some light on what i am doing wrong, but right now i don't feel like searching for away to chat with him. Thanks again for your help
 
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
maybe his script doesn't support anything larger than the default or something (I didn't take a look at it). Anyway, since you're changing the sprites rather than add to it then I guess Hime's script would be sufficient. You could possibly use a single common event for it, though it will be very long :)
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

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.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top