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.

Action in menu help

ok so I need help... this time my problem concerns scripting...
see.. I wanted that when you go to skill on the main menu it runs a common event instead of the skill
script... so what I wanted to know was if there is a way to call on a common event in a script..
hofully this is possible.. thanks to whoever responds....
 
You can add this script in a new page, above main.
Code:
class Interpreter

  attr_accessor   :parameters

end

class Game_System

 def call_common_event(id)

   if $game_system.map_interpreter.parameters.nil?

     $game_system.map_interpreter.parameters = [0,0]

   end

   old = $game_system.map_interpreter.parameters[0]

   $game_system.map_interpreter.parameters[0] = id

   $game_system.map_interpreter.command_117

   $game_system.map_interpreter.parameters[0] = old

 end

end
Then, you can use:
$game_system.call_common_event(x)
Note, that your event may not start until the menu is closed. Try adding the line $scene = Scene_Map.new after you call the common event.
 
Why not just make the skill do nothing, except call the common event?

Just set the power to 0, Hit rate to 100, Variance to 0, Scope: None, Occasion: Only from the menu,
and all of the factors (*-F) to 0. The skill itself will have no effect.
But it will show up in the menu, and act as a trigger to call the Common Event.

Be Well
 
thanks a lot to both of you!

thanks brewmeister but Im gonna go with what silver wind gave me

silver wind- thanks for the cript and everything

thanks guys
edit- I will give credit if I ever finish what I got planned
2nd edit - It works! :D thanks so much
 

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