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.

If actor.name then... Problem... :D

Toshi

Member

I want to make a lil cheat for my game, so I've got a problem:
Can somebody tell me how to check the actors name?
Something like:
"if actor.name = Oburi then
print "Hello world"
end if"

Thanks 4 reading and helping.
 
it depends on where you're calling it from. it could be
actor.name
@actor.name
actors[0].name
etc...

If you're calling it from an event, it would be
$game_actors[n].name # n is the database actor id
or
$game_party.actors[n].name # n is the position in the party starting with 0
 

Toshi

Member

Thanks everybody!
I've got it working! :D
Can someone maybe tell me decent rgss tutorials and class-/method overviews?
I'm normaly a vb.net coder, just doing my first steps in rgss and it's a lil bit hard to figure out all the little differences... :D
 

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