Announcement

Collapse
No announcement yet.

Two quick questions.

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

    Two quick questions.

    Hey all, got a pair of fairly simple questions.

    First off, am I correct in assuming that the only difference between shared and internal variables is the name? I've coded in several languages and so have a firm understanding of what variables "do", but the differences between Shared and Internal allude me...if they exist.

    Secondly, does anyone know off the top of their heads what the coding for having members leave the party does about items? For instance, if a character up and ditched the others, would the items in their inventory be lost forever? And if the items are given to the others, what if it all doesn't fit in your inventory? If no one knows I can certainly test it myself, but I thought I'd take a stab at saving myself ten minutes.

    Thanks all!
    Just call me judge, jury, and a cab.

    Current Project: We The Brave

    Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

    #2
    Re: Two quick questions.

    First off welcome to the pav.

    Yeah, there really isn't a difference between the variables. They do the same thing so you really don't need to worry about it.

    You lose the items, but if that character ever decides to rejoin the party they'll still have them in their inventory.

    Comment


      #3
      Re: Two quick questions.

      Ah. Okay...I suppose I may have to cumbersomely prompt the player to remove that person's items..."Oh hey, that dude you just stripped down to nothing is leaving. Surprise!"
      Just call me judge, jury, and a cab.

      Current Project: We The Brave

      Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

      Comment


        #4
        Re: Two quick questions.

        Yeah, the difference between shared and internal is only a name. Generally speaking, use shared for something that will affect the entire game, and internal for things that will affect only a particular area, item, person, etc. If I remember correctly, though, this is not a hard and fast rule, as you CAN change an internal variable on an NPC (as an example) even if you are not in the same town/area/etc as that NPC is. I think it's more for convenience's sake.


        As for transferring items from characters that leave the party, Lausen is correct that all their items will leave with them, and if they rejoin the party later, they will still have those items. In case you've not read on these forums, the character that leaves the party will "return" to the spot where they joined (assuming they were not in the party at the game's start and you added them along the way). So if you do not wish to be able to see that character again if you plan to let the party return to the area where he or she joined, you'll have to turn that character's display off.


        You will, however, want to test out the capability to transfer items to someone leaving the party, because sometimes if a member of the party receives an item and their inventory is already full, the game just does not give you that item, and at other times, if memory serves, it prompts you to either drop a currently held item or refuse the item the game is giving you. I've not played with the software in some time, so I cannot remember if a person gives items to you vs getting them from an event which way is which. Better to make a test with a character's inventory full, and then make the code to transfer items and see if it prompts for dropping currently-held ones.

        Comment


          #5
          Re: Two quick questions.

          Yeah, that was what I expected; unfortunate, yes, but I believe I can work around it.

          Pretty weird with the variables though. I guess since every event has internals you, the designer, have almost unlimited variables to work with, or at least far more than you will ever need.
          Just call me judge, jury, and a cab.

          Current Project: We The Brave

          Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

          Comment


            #6
            Re: Two quick questions.

            I hate to double post, but I'm not sure if editing my last post would flag this topic as 'new' and I don't want to clutter up the parent topic with another thread.

            I have another question; Is it possible to give the player more than one copy of the same treasure item? I read somewhere on here that it is not, but I want to double check and a search of "treasure items" was...a bit too wide
            Just call me judge, jury, and a cab.

            Current Project: We The Brave

            Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

            Comment


              #7
              Re: Two quick questions.

              Nope, editing your post doesn't mark it as "new", so I'm not one who complains about instances of double-posting like this.

              Anyway, as far as I'm aware, it's true that you can't collect more than one of a treasure item. But don't take my word for it. Try it yourself.
              "What if like...there was an exact copy of you somewhere, except they're the opposite gender, like you guys could literally have a freaky friday moment and nothing would change. Imagine the best friendship that could be found there."

              Comment


                #8
                Re: Two quick questions.

                Let's say that you create a treasure called
                "Orb 1"

                If you want to have the player carry two "Orb 1"s, you'll have to actually make a second treasure by the same name.

                If you do that, though, when it comes to removing "Orb 1" from the treasure area, you'll have to know which "Orb 1" it is you want to remove because the game recognizes them as two different treasures.

                I hope that makes sense.
                " I am the way, the truth, and the life. No one comes to the Father but by me. " - Jesus

                Comment


                  #9
                  Re: Two quick questions.

                  If you track the number of treasures with a variable, you can have anywhere from 0 to 99,999 of them. You'll only ever show 1 in your treasure inventory, but in game mechanics you can have a whole lot of the same treasure.

                  Comment


                    #10
                    Re: Two quick questions.

                    Okay, thanks guys!
                    Just call me judge, jury, and a cab.

                    Current Project: We The Brave

                    Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

                    Comment

                    Working...
                    X