Using two inventories from different characters at once

  • #10, by OrlixWednesday, 08. June 2016, 14:30 6 years ago
    Right, thank you Sebastian.
    Now i figure how to do that wink

    Newbie

    20 Posts


  • #11, by afrlmeWednesday, 08. June 2016, 14:49 6 years ago
    Development is all about conditions (boolean) & values (integer / float), which you use to determine the state of all the content in your game / app.

    Let's say you have a glass on a shelf & you want to take the glass & place it on your kitchen unit...

    1. we create a condition (preferably in the scene conditions tab) & name it something like "glass_taken" & we set the default value to false.

    2. create an object in the scene, name it as "itm_glass" & add an image to it of the glass, then create an object area around the glass (this is the interaction polygon), then assign the condition you created to the properties tab & tick the "negate" option (negate is false value) at the side of it. What this will do is only show the object if the value of the condition returns false.

    3. inside of the actions tab create an executed command on scene object action & link it to one of your commands "take" or whatever your default command is, if you are using a single click (broken sword style command interface) & inside of this add a add item "glass" action & then a set condition "glass_taken" to true action.

    Now when you interact with the glass, it should be added to your inventory & hidden from the scene.

    4. create another object in which you will add the glass image & position it so it's on the kitchen unit. Create a new condition called "glass_placed", set it as false by default & assign it to the properties tab of the object you've just created.

    5. Create an object for the kitchen unit (table) & create an item dropped (dragged items) or command executed with item selected action (depending on how you are handling items) & inside of this add a remove "glass" from inventory action & then a set condition "glass_placed" to true.

    This should remove the glass from your inventory & make it appear on the kitchen unit (table).

    Hopefully you'll be able to make heads & tails out of what I've just written. See the P.S below as to why I can't currently provide screenshots / examples.

    P.S: sorry, I don't currently have photoshop installed as I did a fresh install of windows the other day & haven't re-installed all my programs yet, so I'm not able to mock-up a quick example.

    Imperator

    7138 Posts

  • #12, by OrlixWednesday, 08. June 2016, 15:03 6 years ago
    Hey AFRLme,

    Nice detailed description. You should publish this exactly text as a tutorial to simple drag and drop items between scenes using the inventory, very good very good.

    I am very grateful for your help, thank you.

    Newbie

    20 Posts

  • #13, by afrlmeWednesday, 08. June 2016, 15:15 6 years ago
    I will be making some tutorials soon (currently waiting on a mic), although most will probably be Lua script based as it's what I tend to focus on more.

    By the way, have you checked out the wiki? There are various text/image & video tutorials available on there already which have been made by myself & various other members. wink

    Imperator

    7138 Posts

  • #14, by OrlixWednesday, 08. June 2016, 15:39 6 years ago
    Yes, i´ve been checking in the wiki and some of those tutorials proved to be very useful for myself.

    More Lua based tutorials probably is the right direction, from my own experience with Visionaire, and once i´m mostly a scripting guy, more lua examples would be very welcome.

    Newbie

    20 Posts

  • #15, by afrlmeWednesday, 08. June 2016, 16:15 6 years ago
    Hopefully the upcoming new editor will be a lot more flexible than the current one so that people will be able to get more things done without having to resort to scripting. Personally I prefer scripting as I find it faster, even for things that can be done in-editor with the pre-made actions / action parts alone.

    Imperator

    7138 Posts

  • #16, by sebastianWednesday, 08. June 2016, 18:51 6 years ago
    Lets hope the new interface in 4.3 makes the workflow much easier smile

    Thread Captain

    2346 Posts