- Oct 23, 2015
- Reaction score
- First Language
I'm treating my TP meter in my game like a battery charge, so I would love to have a % next to all TP numbers in my game. Is there a way/plugin to do this?
this.drawText('%', x, y, 64, 'right');
Ops... I wasn't sure where the symbol would go, I'm half asleep, sorry.Well, I want it to be like "21%"
this.drawText(actor.tp, x + width - 44, y, 44); this.drawText('%', x + width - 64, y, 64, 'right');
this.drawText(actor.tp + '%', x + width - 64, y, 64, 'right');
But what if something in the function gets changed in an update?@WhiteW @Ichida za Zeal
Editing the core files is a VERY BAD idea. Whenever a project gets updated to a new version those core files are overwritten, removing all changes.
And MV is still in support, so you can expect further updates beyond the current 1.6.2
Those updates are not automatic exactly because there are cases where people need to stay at older versions (for plugin compatibility for example), but artificially blocking yourself from updates is not a good idea.
All you need to do is to take the original function you want to modify and overwrite it with a plugin that contains such changes and no matter how the core files get updated the change would stay.
At a surface level you are correct, only 1 line of code is changed, but it's a slippery slope. You'll think - what's another few lines - more times and then all of a sudden your core files are 20+ lines different than everyone else's, which might be significant.I get your point, although I'm not sure if it's really worth it for a change of only 6 extra characters that can be easily readded in case of update...