[RESOLVED] Aesthetic request for TONS

Started by yuhikaru, March 21, 2010, 02:29:37 pm

Previous topic - Next topic

yuhikaru

March 21, 2010, 02:29:37 pm Last Edit: March 22, 2010, 10:04:11 am by yuhikaru
Hi there. I'm not sure where I should post this.... Oh well.... xD

It's just a (hopefully) simple request, actually two.... I'm using TONS' equap skills, and now skill separation, also.

The first problem is that even if a skill is not equap, I mean, it's not in equap database, when I turn 'skill separation' ON it starts showing the AP as (0/0), which I think doesn't look nice. I would like to know how to hide that.

And second, I read somewhere on this forum (I tried searching for it, but wasn't sucessful >.>) how to hide the SP cost of a skill when it's 0. I did that, and worked fine until I turned the 'skill separation' ON. Then, it (the 0) started showing again =/ I just want to hide the zero.

Kind of silly.... I guess I could just turn the thing off, but I thought of asking first xD

Thanks in advance <3

Blizzard

In Tons a piece of code is overwritten a few times and that is the part to display the SP cost. You simply have to find Window_Skill#draw_item in Tons and change it everywhere so it doesn't draw the SP cost if it's 0.
I might have forgotten to remove the EQUAP AP when it's 0/0 in the other rewrites. I'll put it on my to-do list and fix it when I find some time.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

yuhikaru

March 21, 2010, 05:14:27 pm #2 Last Edit: March 21, 2010, 05:19:34 pm by yuhikaru
Thank you <3 Thanks to your tip I started looking for the window_skill draw_item thing (Which was found and taken care of, by the way), and I acidently found this line

 if aps > 0
         text += " (#{@actor.ap(skill.id)}/#{aps})"
       elsif DISPLAY_AP_ZERO
         text += ' (0/0) '
       end

I thought at first 'Noooo, it can't be that easy....'. But it worked, aparently xD I'm so happy!
I should start learning some ruby.....

But before write [RESOLVED] I just wanna ask....
I know it's just text, but are there any side effects to this change? If there aren't, you can cross that out your to-do list xD

Anyway, thanks again <3

Blizzard

Oh, lol! I just remembered that you have the DISPLAY_AP_ZERO option. xD I totally forgot about that one.
There shouldn't be any side effects, except that you might need to add the same edit/mod in other scripts that change the Window_Skill#draw_item method if you add such a script.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

yuhikaru


Tyril132

Nice. I've considered using EQUAPS myself, and was wondering if there was an easier way to do that. Thanks for the tip!
Lv. 7 Writer | Lv. 7 Composer | Lv. 7 Mapper | Lv. 4 Eventer | Lv. 0 Scripter | Lv. 1 Spriter
DSC Project Soundtrack
Personality Index:: ShowHide

Feildmaster

the easiest way to do that is to go into the configuration and say...

DISPLAY_AP_ZERO = true/false

Or were you asking for SP?
Pokemon Neon Characters: ShowHide