Announcement

Collapse
No announcement yet.

Help with script branching and variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with script branching and variables

    I'm trying to make a script that would allow the player to trade one item for another.

    I know how to use a script branch with my own variable. What I can't figure out is how to set up a script branch that would only activate when the player had a certain item.

    The other question I have is how do you use the button variable.

    I would like to have it so the player would push a button and the NPC Say would you like to trade that apple for my pear?

    #2
    Re: Help with script branching and variables

    Originally posted by Whataface2 View Post
    I'm trying to make a script that would allow the player to trade one item for another.

    I know how to use a script branch with my own variable. What I can't figure out is how to set up a script branch that would only activate when the player had a certain item.
    well... hm. im not sure if you can make a script branch condition like that (i turned on my game and messed around a bit, but all i could find was the internal variables involving item possession, #117 and around there), but one way is to add a second page in your event. there is a specific option to set an activating condition to the player possessing a certain item.
    Last edited by Manji; 12-18-2007, 01:51 PM.

    Comment


      #3
      Re: Help with script branching and variables

      Thanks I'll have to give it a try later. Work is crazy right now.

      It is done by selecting item in the condition section of the event, right?

      Comment


        #4
        Re: Help with script branching and variables

        yep. thats it.

        Comment


          #5
          Re: Help with script branching and variables

          duh.

          [wrong forum]
          Last edited by Ωbright; 12-19-2007, 07:59 PM.

          Comment


            #6
            Re: Help with script branching and variables

            If this is in the correct forum, then couldn't you just make the item non-droppable/sellable and change a flag when the player aquires the item?
            Final Exams are not a good time to attempt to get back into a site. ^_^;

            Comment


              #7
              Re: Help with script branching and variables

              D'OHH!! I'm stupid. Sorry, wrong forum.

              Comment


                #8
                Re: Help with script branching and variables

                Originally posted by Hikari no Kaze View Post
                If this is in the correct forum, then couldn't you just make the item non-droppable/sellable and change a flag when the player aquires the item?
                I never thought of doing that. I'll have to give it a try.

                Originally posted by Obright View Post
                D'OHH!! I'm stupid. Sorry, wrong forum.
                Sorry, if I posted this in the wrong forum. I thought this was were you posted if you needed help with something in your game.

                Comment


                  #9
                  Re: Help with script branching and variables

                  Originally posted by Whataface2 View Post
                  Sorry, if I posted this in the wrong forum. I thought this was were you posted if you needed help with something in your game.
                  You're fine, I was the one who goofed.

                  Comment


                    #10
                    Re: Help with script branching and variables

                    Originally posted by Obright View Post
                    You're fine, I was the one who goofed.
                    cool

                    Thanks for all of your help. I finally got the event to work. I decided to set it as a talk event rather then a button push. I decided to use a variable to work the event. This way I can add different items to trade later on.

                    Comment

                    Working...
                    X