View Single Post
Old July 17th, 2013 (6:33 AM).
BlackWaltz3's Avatar
BlackWaltz3 BlackWaltz3 is offline
    Join Date: Jul 2009
    Gender: Male
    Posts: 188
    Okay so this is a huge necropost. Sorry if that's a problem. I've gone back to my Starter Selection screen, and rewritten it from the ground up in order to be able to accept parameters such that it can be initialised with any three Pokémon as specified in the method call.

    What I've built seems more or less structurally sound, but I've come to realise the variables passed into the method call have no way of reaching their target destinations. The code compiles, but throws an exception when called due to the "missing" variable values.

    As far as I've seen, the only self-contained way I can pass those variables all the way down to the required code is to pass them through each and every method along the way. It's pretty safe to say that with several variables this becomes quite lengthy and unpleasant to read. Is there an easier way by which I might pass these variables though to their intended code?

    I've included the code below for your convenience.

    # Pokémon Starter Selection module Version 1.1
    # This is a script to display and handle a basic starter selection scene. It #
    # displays three Pokeballs, their corresponding Pokemon, and their basic data. #
    # The player may use the arrow keys to select a Pokemon, and the C input to #
    # confirm their selection. #
    # #
    # The method can be called by using a script command in an event containing #
    # the string, "pbShowStarterSelection(, , , )", where , and #
    # are the species one wishes to display as starters, and where
    Reply With Quote