Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Action If Character Has Item In Inventory

  • #20, by esmeralda 8 years ago Zitieren
    "called by another action" means this if query where you change the outfit is only executed when it is called (like by the action part: call action)

    In your case I would recommend calling the action you allready created in the actions tab of your character when picking up one of the 3 items. You can give the action a different name so you can identify it better. (double-click on name)
    (Or you could create if queries in every pick-up-action of the 3 items, but that would be more work)

    pick up item - action:
      - add item to inventory
       - call action "your action in character tab"

    your action in character tab:
      if character has item1
        if character has item 2
          if character has item 3
            change outfit
          end if
        end if
       end if


    Edit:
    just to be clear: the pick-up-action should be in the actions of the scene-object your are picking up. But I guess this part is working for you, is it?
    The other action that you are calling can be in the characters actions or in the scene or where you like.

  • #21, by minds_ 8 years ago Zitieren
    Thank You very much. I used call action in object and it worked well. I appreciate your help smile

    Sorry to bother again, but im new in Visionaire. How to end game in this case -  my character picks up 3 items, so his outfit changes and i want game to end like that. How to do that?

    Thanks
  • #22, by esmeralda 8 years ago Zitieren
    There is an action part called "quit game" found in miscellaneous.
  • #23, by minds_ 8 years ago Zitieren
    Oh, just simple as that. Thank you esmeralda for help. Glad i wrote here smile
  • #24, by esmeralda 8 years ago Zitieren
    You are welcome. :-)