Jump to content


Photo

common event activation after exiting menu screen.

common event menu.

  • This topic is locked This topic is locked
3 replies to this topic

#1 BlueStar

BlueStar

    Member

  • Early Adopter
  • 16 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 04 May 2012 - 11:10 PM

I'm making a game and when you change your armor the character's sprite changes as well. but I cant get the sprite to change after exiting your menu screen, I don't Know how to program in RGSS3 or i would make it my self. If it could activate a common event then it could be used for more then just sprite changing.
if any one could help me I would really appreciate it.

#2 Bird Eater

Bird Eater

    Boredom is just another thing you want to avoid

  • Members
  • 146 posts
  • Primarily UsesRMVX Ace
  • First LanguageDutch

Posted 05 May 2012 - 04:03 AM

search for this piece of code, on line 19 of Scene_MenuBase:


def terminate
super
dispose_background
end

replace that with:


def terminate
super
dispose_background
$game_switches[99] = true
end

And edit the 99 to whatever switch you want to use.
Now go to the common event you want to use, and set it to 'autorun' or 'parallel process' with the required switch to the same one you used in the script.

At the end of the common event, be sure to flip the switch back off, for otherwise it'd loop infinitely.

#3 BlueStar

BlueStar

    Member

  • Early Adopter
  • 16 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 05 May 2012 - 07:33 AM

Awsome, thanks for the help. I really appreciate it. Im an ideat when it comes to script which is why I like rpg makers. :)

#4 FenixFyreX

FenixFyreX

    Fire Deity

  • Members
  • 173 posts
  • LocationA Volcano Somewhere
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 09 May 2012 - 10:31 AM

[closed]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users