Ambrosia Garden Archive
    • Restricted inventory space


      Hi. I wonder how to make a Restricted number of items that can be in your inventory at once. I believe that I can make it with globals, but I cant get how 😛

      If anyone knows how to do it, please tell me!!!

      ------------------
      (url="http://"http://www.ledorax.da.ru")www.ledorax.da.ru(/url)

    • Quote

      Originally posted by Ledorax:
      **Hi. I wonder how to make a Restricted number of items that can be in your inventory at once. I believe that I can make it with globals, but I cant get how 😛

      If anyone knows how to do it, please tell me!!!

      **

      I do not believe it is possible unless you do not mind not haveing shops in your game. If you do not have shops in your game, you need 2 globals 1 being the maximum amount of items you want in your inventory (I'll call it gb_ItemMax and 2 being the amount you currently have in your inventory(I'll call it gb_ItemCurrent. For every item you set the event link in the display menu to add 1(or however much space you want the item to take up in your inventory) to gb_ItemCurrent. Then set the conditional to gb_ItemMax > gb_ItemCurrent.Then set the drop event link to subtract 1(or whatever you have for the amount of space the item took up) from gb_ItemCurrent.

      ------------------
      Thanks,
      GrahamVH
      graham@warcraftcentral.com
      Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

    • Quote

      Originally posted by GrahamVH:
      **I do not believe it is possible unless you do not mind not haveing shops in your game.
      **

      I think there might be a way to put shops in though it might not work and your player wouldn't be able to sell stuff when their item space is full
      Try giving a dialog to all shop keepers which asks if the player wants to buy something. Then add a conditional on the yes choice checking if your current item variable is less than your max item. If it is true make it go to the shop. If not then make it go to another dialog saying the player must drop some items.

      ------------------
      Pilky
      (url="http://"http://www.mcubed.cjb.net")M cubed homepage(/url)
      Cheesiest film line of all time "Flash I love you but we only have 14 hours to save the earth" from Flash Gorden

    • :frown: ok, thanks :frown:

      ------------------
      (url="http://"http://www.ledorax.da.ru")www.ledorax.da.ru(/url)

    • Quote

      Originally posted by Pilky:
      Then add a conditional on the yes choice checking if your current item variable is less than your max item. If it is true make it go to the shop.

      Even if the player has only one item less than the maximum, once he gets into the shop, there's nothing stopping him from buying 200 items more. I'm not sure how you'd work around that.

      ------------------
      'You can either be on the stage, just a performer, just going through the lines...or you can be outside it, and know how the script works, where the scenery hangs, and where the trapdoors are. Isn't that better?'
      -- T. Pratchett

    • You would have to make a new shop.

      A map location with shelves and counters covered in item graphics that call up a "This is a X, and it costs X, would you like to buy it?" dialogue that checks the player's current inventory space would work.

      Or a main location with a picture of your items all laid out with event links on each item that pull up a similiar dialogue.

      For selling, I think you can set up a shop location with no items for the player to switch to his inventory and sell whatever he wants to sell.

      Maybe also include a guy who asks if you would like to refill your ammo. Then check how much more ammo you can carry and quote a price.

      We've been trying to restrict inventory space too, you see. It's kind of a pain.

      myshkyn

      ------------------
      "I'll give the fans just what they want, and nothing else at all."