Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!

TrollandToad.com
Closed Thread
 
Thread Tools
  #1    
Old September 1st, 2012 (8:25 PM).
shadowriver shadowriver is offline
     
    Join Date: Sep 2007
    Gender:
    Posts: 49
    sorry if this is in the wrong section.

    at the moment im only able to edit scripts so my knowledge in scripting is limited, im wanting to learn how to script from scratch i found some tutorials on other sites which have been useful, but little confusing for the tutorials is either for editing the menu screen or making a class selection screen which has helped a little with what i want to do.

    the thing i want to start with is to learn how to make a simple selection screen with say ten options that if you have enough points gained (which would be added via script call.) the option chosen would increase a specific variable.

    for example my hero just completed a quest, as a reward the hero receives 1 point via script call the hero can then accesses the menu that distributes the points so in the menu would be for example

    Cooking
    Thievery
    smithing
    Chemistry

    Then if i have enough points the hero can choose a option that will increase a variable predetermined to that option.

    ( just to be clear i don’t want this script done for me what i would like however is to know were to look/begin or a little mentoring. so it is more specific to what i want to be able to do rather than being confused over a tutorial teaching me how to make a class selection screen which is kind of helpful but confusing since im not too sure what parts are relevant and what are not)

    sorry if this is to vague or to much. im just not really to sure were to start.
    __________________
    V8 Essentials with Ultimate BW Pack and pokemon follow ready to go.
    (I had nothing to do with its creation just put it together for genarl use) http://www.mediafire.com/?rtrco39udskdb81
    Credits go to
    p-Sign
    Clowcardruler
    Maruno
    Venom12
    FL .
    Help-14
    zingzag
    rick1234

    Relevant Advertising!

      #2    
    Old September 2nd, 2012 (12:03 PM).
    ☆Rei☆'s Avatar
    ☆Rei☆ ☆Rei☆ is offline
    • Platinum Tier
     
    Join Date: Aug 2009
    Location: Nearby my feet.
    Age: 20
    Gender: Female
    Nature: Calm
    Posts: 1,748
    Quote:
    Originally Posted by shadowriver View Post
    sorry if this is in the wrong section.

    at the moment im only able to edit scripts so my knowledge in scripting is limited, im wanting to learn how to script from scratch i found some tutorials on other sites which have been useful, but little confusing for the tutorials is either for editing the menu screen or making a class selection screen which has helped a little with what i want to do.

    the thing i want to start with is to learn how to make a simple selection screen with say ten options that if you have enough points gained (which would be added via script call.) the option chosen would increase a specific variable.

    for example my hero just completed a quest, as a reward the hero receives 1 point via script call the hero can then accesses the menu that distributes the points so in the menu would be for example

    Cooking
    Thievery
    smithing
    Chemistry

    Then if i have enough points the hero can choose a option that will increase a variable predetermined to that option.

    ( just to be clear i don’t want this script done for me what i would like however is to know were to look/begin or a little mentoring. so it is more specific to what i want to be able to do rather than being confused over a tutorial teaching me how to make a class selection screen which is kind of helpful but confusing since im not too sure what parts are relevant and what are not)

    sorry if this is to vague or to much. im just not really to sure were to start.
    Like This:

    Code:
    def getMenu()
      default=1
      cmdwin=pbListWindow([],200)
      commands= ["Button 1", "Button 2"]
      ret=pbCommands2(cmdwin,commands,-1,default-1,true) 
      cmdwin.dispose
      if ret >= 0
        return commands[ret]
      end
      return -1
    end
    
    def function()
      chosen = getMenu()
      if (chosen == 1)
        # button 1 commands
      elsif (chosen == 2)
        # button 2 commands
      end
    end
    I might got the 1 and 2 wrong (might be 0 and 1)
      #3    
    Old September 4th, 2012 (3:09 PM).
    shadowriver shadowriver is offline
       
      Join Date: Sep 2007
      Gender:
      Posts: 49
      thank you for that, but looking at that im a little confused what does that bit of script do,my gess is that its just the options buttens but im not sure.
      __________________
      V8 Essentials with Ultimate BW Pack and pokemon follow ready to go.
      (I had nothing to do with its creation just put it together for genarl use) http://www.mediafire.com/?rtrco39udskdb81
      Credits go to
      p-Sign
      Clowcardruler
      Maruno
      Venom12
      FL .
      Help-14
      zingzag
      rick1234
        #4    
      Old September 5th, 2012 (6:50 PM).
      Cilerba Cilerba is offline
      the hearts of lonely people
      • Silver Tier
       
      Join Date: Feb 2010
      Location: Massachusetts
      Age: 21
      Gender: Male
      Nature: Quiet
      Posts: 1,171
      This isn't a tutorial or a resource so I'm going to have to lock this. Post in the Essentials section or the main Game Development section if you need help.
      __________________
      Closed Thread

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      Sponsored Links
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 7:11 AM.