I'm currently creating a mechanic where a character gives another character the necessary needs to change their appearance. I've created a special catalog for these items. It generally works, but only on one item. My goal is for a special scene to trigger after giving a fourth item. Do I need to create a separate action list for each item? If so, where should I place it?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
When it comes to running the same - or similar - Actions repeatedly, there are a couple of features to bear in mind:
Firstly, you can break up your Actions in to multiple ActionLists, and chain them together with the ActionList: Run Action. For example, your last three Actions (7, 8, 9) could be moved to a separate ActionList. If you ended up making separate ActionLists for the first part (i.e. handling the Inventory), each one could then run this ending ActionList to handle the special scene-triggering.
Secondly, you can recycle Actions using parameters. Parameters let you re-run Actions while changing their field values. You could parameterise your shared ActionList with e.g. different speech lines, different ActionList references etc depending on which item is being dealt with.
A tutorial on their usage can be found here.
Sorry for the late reply, but I've been very busy. I tried following the guide, but only one item still works. Below are screenshots. I don't understand how the parameters work yet.
https://fileport.io/S3uaZE8YJxt9
If you're looking for Action 3 to remove the Inventory item you're checking for in Action 2, then you can check the P icon beside the Item to remove field and set it to "2: item" - i.e. the same parameter assigned next to the Inventory item ID field.
To be clear: the use of parameters isn't to allow for multiple items to be processed at the same time. Rather, that the parameters can take different values each time the ActionList is run.
If the process itself is intended to affect a single Inventory item (check for it's presence, and then remove it), then you only need a single Inventory Item parameter.
To have this process then run for multiple items, you'd then run the ActionList itself multiple times - each time with different a parameter value set.
The parameter values you assign in the ActionList: Run Action can also themselves be set from parameters.