Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[SOLVED] Incorrect scriptcall in the help document? Locked

A topic by Theresnobodyhereagain created 8 days ago Views: 27 Replies: 3
This topic was locked by Hakuen Studio 7 days ago
Viewing posts 1 to 3
(1 edit)

In the help document linked, it says:

This one, instead of adding or removing a value, it will set a value for the custom parameter.

$gameParty.members()[0].addCParam(paramId/shortName, value)

-But, when I use that scriptcall it actually ADDS a value to the existing parameter value.

So, i think some of the scriptcall commands might be mixed up!

How do i SET a value for the custom parameter, I wonder?

Developer (1 edit)

Hi there!

Yeah, I think I made some mistake on the help file, and described the .addCParam wrong. Will fix it now. 

But you can already get the right script call, is the one above it: .setCustomParam or setCustomHpParam

[EDIT] You can also use the Plugin Command: Add/Remove/Set (Change Parameter)

(+1)

Wonderful news!

So, to Set the parameter, I use: .setCustomParam

to Add/Remove to a parameter, I use: .addCParam

Thanks a lot!!

Developer

Nice! Have fun!

Developer locked this topic