Hiding actors parameters with a string?

So I came across this post by Tsukihime, but what really grabbed my attention was this:

5iX8Rfn.png


Someone in the comments asked him how it was done, but he only said that he used a script to do so.
Is there a way to do that to all the parameters, but only for one specific actor?

I'm also using Yanfly Status Menu alongside a BlackMorning addon, so I'm not sure if editing the default will affect the status menu
one way I can think of, is overwriting the creation routine of that section, instead of going for (all actors in the party) go for [actorX, actorY, actorZ, actorN, etc.]
and then, call the actor that needs to be covered, to your own creation function.

or, grab the whole lot, pop the actor in question, do the modified lot, and then the actor, instead of manually creating the lot.
I'm sorry, I don't have any script knowledge... Where can I edit how it is displayed?
I tried editing Window_Base in a clean project but it didn't change anything

BGiAFxP.png
because actor_id was never been defined. Try this condition (a kinda weird syntax, but it should work)
Code:
actor.actor.id
Code:
def draw_actor_level(actor,x,y)
change_color(xxx)
draw_text(xxxx)
change_color(xxxx)
 case actor.actor_id
  when 1
    draw_text(variant)
  else
   draw_text(regular)
 end
end

I was actually referring to the function calling that one, the parent one, where you'd loop through each actor and call this function.
this solution would always work like this, even in situations where you don't want it.
you should try altering the menu that contains the call to this function, not this function itself.
It worked for the main menu, but when I tried editing the text in both YEA Status and BM Status Addon it gives off this error:
GCEpY83.png


d5fbf5f.png


The main menu I'm using is also BlackMorning's, so I think the problem is mostly in the Status main script, not in the addon...
Code:
@actor.actor_id
not
Code:
actor.actor.id

@variable, means a global variable, defined elsewhere, that all separate functions can access.
in this case, THE actor that the main loop is working with, which is pulled from the party.
do read the help files, for information on how to work with variables.
I thought that since the main menu didn't need the @, the status wouldn't need it too. Guess I was wrong :dizzy:

Thanks for the help!
@gstv - actually @ means its an instance variable of that class.. You can normally only access them inside the class and its children, and holds its value per instance of the class. Unless ofc you make a method inside that class that returns their value or use the general instance variable method of the object Class.

Global variables are the ones with $ in their names...

@Ebanyle - it didn't use an @ on the menu base method because the method takes a parameter called "actor".

Code:
 def draw_actor_level(actor,x,y)

Your other method on the other hand didnt have that parameter because it already has the actor saved in the @actor variable.
I don't remember the structure right now, but I believe the "actor" in the menu responds to a local function named "actor" that itself returns an actor from the party.
@actor, is a variable named actor, that is altered locally or externally.

always use the search and global search tool, when you don't know what a variable name is referring to.
it might refer to a parent object's function that is not visible in the local script, but is declared elsewhere, and the local script can access by inheritance.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/hiding-actors-parameters-with-a-string.108385/