Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey, there! I just purchased this awesome plugin and it works fine up until a completed collection is meant to affect the party's stats? When I set the Target Actors (1, 2, 3, etc...) in the plugin manager it returns an error that says; 

TypeError

collection.targetActors.inludes is not a function

And if I set Target Actors to 0 nothing happens at all. (No error but also no stat boosts are applied.) 

Darn, the error image is really small. Please let me know if there's another way I could send it to you, I didn't mean for it to shrink so badly.

When targeting actors, make sure to wrap the actor id(s) in brackets like so:

[1,2,3] 
or
[1]

Or simply put 0 (without the brackets) to target all actors. Did you double check the template item and made sure it has stats?

(1 edit)

Ohhh okay, I was missing the brackets! Thank you for that. As far as the template item, yes it has stats both in my 'official' game and in the blank test project. :) I can get it to work fine in the blank project, up until I added the VisuStella Core plugin? After that the stat boosts stop being applied.

Oh, another question I had...is there a script call the dev can use in events to check if a collection has been completed or not? 

(1 edit)

There is a 'Switch On Complete' field which you can use when defining a collection. That switch will be set to 'ON' if it's completed.

You can also use the following script calls:

$gameCollection["collectionIdHere"].isCompleted
or
$gameCollection.collectionIdHere.isCompleted

Both return the same thing.

Okay, thank you! Is there any chance of this plugin working with VS's core script? (In terms of applying the stat modifications.) I know VS ' programming is obfuscated, so if the issue is on their end, it's likely a lost cause. Just thought I'd ask! :)

I discourage the use of obfuscated plugins, so I have no intention of updating my plugins to work with theirs if there happened to be an incompatibility between the two. I can still do a compatibility patch , but it'll be a commissioned work.

You can reach me here for commissions.