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.

[Resolved]Code for checking actor class?

Status
Not open for further replies.
I require the code to check an actor's class. I'm using the conditional branch in an event, and since I can't see where it checks if an actor is a certain class, I am sure I would want to use the Script item in the 4th tab. You would have my gratitude if you could provide me with this information.
 
You can use it in the Conditional branch script line, too.
$data_classes[<actor>.class_id].name == 'Fighter'
<actor> is an instance of Game_Actor ($game_actors[id] or $game_party.actors[id])
 
This topic has been resolved. If Twar3Draconis or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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