Cupboard open / closed

  • #10, by JorkzThursday, 23. April 2020, 13:26 4 years ago
    Ok ! Thanks... But I also know that, but the problem I'm having is that I don't know where to set this up without going through the script.
    In fact, There is no  window specifically dedicated to values. For example, a place where I would say "at 0 something happens at 1 a thing at 2 another thing ... etc...."

    Newbie

    90 Posts


  • #11, by afrlmeThursday, 23. April 2020, 14:34 4 years ago
    It's in the same place you assign conditions to your scene objects. You can either use conditions or values, but you can't link both at the same time.

    Create a value somewhere. Link it. Job done. Works the same as how conditions work when linked, but it's a lot more flexible due to having the multiple query operator types I listed a couple or so posts back. smile

    Imperator

    7278 Posts

  • #12, by NigecThursday, 23. April 2020, 14:45 4 years ago
    Check out this example:
    the coins you can find in the scenes have a values, as you pick them up the amount increases until you reach 4 in inventory,  you can use them on the drinks machine slot


    edit something seems to have broken with the recent update, the coins no longer show selected from inventory

    Key Killer

    627 Posts

  • #13, by JorkzThursday, 23. April 2020, 19:08 4 years ago
    thank you both.
    I've been fighting for hours to get a convincing result, and unsuccessfully of course...

    I've put a value "cupboard" to 3.

    1)for a area "cupboard close"
    2)for the open (and empty) cupboard
    3)for the box in it which must be taken by the character

    There is no condition, since the two solutions can't be combined.
    I'm trying several links but nothing works.

    Actually, I'll need to pair 2 and 3. In order to get the open thing with the object in it.

    Newbie

    90 Posts

  • #14, by afrlmeThursday, 23. April 2020, 20:50 4 years ago
    You have to think of it as an event & the number should increment according to the order of the event. value "cupboard" = 1 (cupboard closed) value "cupboard" >= 2 (cupboard open) value "cupboard" = 2 (box visible) so when you take the box you would change the value to 3 which would hide the box, but because you used the operator >= 2 for cupboard open, the cupboard would remain open.

    Imperator

    7278 Posts

  • #15, by afrlmeThursday, 23. April 2020, 20:50 4 years ago
    You have to think of it as an event & the number should increment according to the order of the event. value "cupboard" = 1 (cupboard closed) value "cupboard" >= 2 (cupboard open) value "cupboard" = 2 (box visible) so when you take the box you would change the value to 3 which would hide the box, but because you used the operator >= 2 for cupboard open, the cupboard would remain open.

    Imperator

    7278 Posts

  • #16, by afrlmeThursday, 23. April 2020, 20:51 4 years ago
    You have to think of it as an event & the number should increment according to the order of the event. value "cupboard" = 1 (cupboard closed) value "cupboard" >= 2 (cupboard open) value "cupboard" = 2 (box visible) so when you take the box you would change the value to 3 which would hide the box, but because you used the operator >= 2 for cupboard open, the cupboard would remain open.

    Imperator

    7278 Posts

  • #17, by afrlmeThursday, 23. April 2020, 20:51 4 years ago
    You have to think of it as an event & the number should increment according to the order of the event. value "cupboard" = 1 (cupboard closed) value "cupboard" >= 2 (cupboard open) value "cupboard" = 2 (box visible) so when you take the box you would change the value to 3 which would hide the box, but because you used the operator >= 2 for cupboard open, the cupboard would remain open.

    Imperator

    7278 Posts

  • #18, by afrlmeThursday, 23. April 2020, 20:53 4 years ago
    You have to think of it as an event & the number should increment according to the order of the event. value "cupboard" = 1 (cupboard closed) value "cupboard" >= 2 (cupboard open) value "cupboard" = 2 (box visible) so when you take the box you would change the value to 3 which would hide the box, but because you used the operator >= 2 for cupboard open, the cupboard would remain open.

    Imperator

    7278 Posts

  • #19, by JorkzFriday, 24. April 2020, 15:13 4 years ago
    Okay, thank you very much again !...

    After doing several manipulations I understood the principle of values and incrementation... So I meet a lot of poblems with the creation of links because there seems to be more steps than expected (with or without sound, object activated or not, etc etc ...)

    However, I can only make value  adjustments (in properties panel) on 3 things: closed cupboard, open cupboard, and box.

    Indeed, even if I manipulate the settings here and there... my result is: the cupboard is open or closed (yes!), with the box inside (double yes !), but I can't perform a "take" action on the box because it's inactive.

    When (miracle!) I manage as well as I can to activate it, it's the cupboard that is defective, and the box never seems to disappear.

    thanking you

    Newbie

    90 Posts

  • #20, by JorkzFriday, 24. April 2020, 15:19 4 years ago
    Another sorry but... another question : how to access the script to see how the thing is built?

    Maybe this will help me a little more

    Newbie

    90 Posts