I'm currently learning .Js right now and tried to modify menu right now
straight to the problem : lets say , in drawActorSimpleStatus , its a function that draw all the status the actor has (name, level , class , hpbar , mpbar) in the default menu
let's say I wanted to make the menu didnt draw any hpbar or mpbar , so I'm aliasing drawActorSimpleStatus and write all the code before except for hpbar and mpbar , thus the game wont show hpbar on mpbar.
but the problem is , drawActorSimpleStatus is used everywhere , not just menu. let's say in healing skill target from menu. I wanted the hpbar and mpbar are shown when doing targeting but not shown in menu, but then again they are using same function, so what is an effective way into this kind of problem? (also for other function, mostly the basic funciton)
also people said that modifying direct script like this is bad because it will affect a lot of other , its like you complete 1 task but ruining other 3 tasks. what is the good approach for this kind of problem? creating another function that mostly do the same? or ?
straight to the problem : lets say , in drawActorSimpleStatus , its a function that draw all the status the actor has (name, level , class , hpbar , mpbar) in the default menu
let's say I wanted to make the menu didnt draw any hpbar or mpbar , so I'm aliasing drawActorSimpleStatus and write all the code before except for hpbar and mpbar , thus the game wont show hpbar on mpbar.
but the problem is , drawActorSimpleStatus is used everywhere , not just menu. let's say in healing skill target from menu. I wanted the hpbar and mpbar are shown when doing targeting but not shown in menu, but then again they are using same function, so what is an effective way into this kind of problem? (also for other function, mostly the basic funciton)
also people said that modifying direct script like this is bad because it will affect a lot of other , its like you complete 1 task but ruining other 3 tasks. what is the good approach for this kind of problem? creating another function that mostly do the same? or ?