Forum rules - please read before posting.

Variable check not working with item interactions

I have been trying to set something up so using an item while a variable is set to true allows certain dialogue to play, but for whatever reason when I insert a variable check in the use: item action list nothing ends up happening, neither the false condition nor the true condition actions. This only happens with the item interaction, if I insert the variable check before a hotspot interaction it works just fine. The item interaction also plays the dialogue just fine when there isn't a variable check inserted before it, so I'm not sure what I'm doing wrong

Comments

  • Is the Variable being checked Global or Local?

    As Inventory interactions rely on ActionList assets, you'll need to rely on a Global variable to be able to reliably access it all times.

    If this is the case, share your AC/Unity versions as well as screenshots of the Variable's definition and ActionList its being used in.

    You can check if a particular Action is being run by enabling comments for it via the cog-menu to the top-right of it in the ActionList Editor. This comment can then be set to display in the Console when the Action is run by setting the Settings Manager's Action comment logging field at the bottom to Always.

    If you enable comments for your Variable: Check Action, and the first Action of both output chains, which ones show up when the ActionList is run?

  • oh yeah, sorry, I didn't know inventory actions relied only on global variables. setting it to a global variable did solve the problem. thank you for the help, ill try doing more of my own troubleshooting next time i run into something

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.