Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to get the state name if you know the state ID .

A J

Member

:D I know it's a one line short code but I can't seem to know it lol

so help me out guys :D

Edit:
What I was trying to say in the title
How to get the state name if you know the state ID .
 
Slipknot you were right,

but if you don't know the id the code is:
Code:
for i in $game_party.actors[actor_id].states
  if $data_states[i].rating >= 1
    state = $data_states[i].name
  end
end
**If state = nil then its normal
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top