Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Wing Ayalamon

Calling Dynamic Events in Scripting

Recommended Posts

I'm kinda new to RGSS. I'm picking it up quickly, but I was wondering how to use event info based on the event calling the script. That probably doesn't make much sense so here's the code version:

 

$game_variables[9] = $game_map.events.values[2].x

 

this will give me the x value of the second event in the map... but I don't want the second event, I want to use the x value of the event that is calling the script.

 

Any help is appreciated.

Share this post


Link to post
Share on other sites

Use a variable. That is a hint. Instead of the number '2', use a variable to call up the event's ID. If you need mroe syntaxes related to variables, use the RGSS Library in the Help file.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...