get the Id of an actor by the value of a variable

● ARCHIVED · READ-ONLY
Started by Brrt 5 posts View original ↗
  1. Hello! What's up?
    I need to know if I can get the Id of an actor by the value of a variable that is constantly changing.

    for example: $ game_actors [here put the id of the variable so that the value is found]

    I think if there is a method, to do that. I think I saw it in a tuto or something like that a while back, but I'm not sure anymore. If someone could help me. thank you very much in advance
  2. *disregard. Ace, not MV. Sorry XD
  3. $game_actors[$game_variables[Id]]
  4. Rinobi said:
    $game_actors[$game_variables[Id]]

    thanks very much, It has served me.
  5. @Brrt If this has answered your query to your satisfaction, please Report your opening post and ask for the thread to be closed. Mods might not see an individual post, but will see a Report.
    Thanks.