Skip to main content

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

Good day Ramza,

I'm sorry for troubling you once more but I do have clarifications regarding this aspect that you mentioned:

"As for your time question, there are advanced plugin parameters for each recipe, a 'run after', script, which runs after every craft of that item, and a second one that also runs after every craft. You can use those parameters to call the function from your time plugin to advance time, either by a specific amount per craft using the first one, or by a set amount for all crafts, regardless of what the item actually was via the second one."

From the quote, my understanding was:

1. For each recipe, there is a unique 'run after' script available only for that particular recipe.

2. Another script will be run after any craft is made.

The only plugin parameter that I found from your plugin that runs after the craft is the "Run once on completion". I can't find any that runs after a craft (any craft) is made.

When you said that quote, did you mean I had to modify your js file to do what I wanted, or is it doable through the game plugin manager?

Wilderi

It does look like I got a bit confused there.

The run once per recipe is only the first time the recipe is crafted. Line 4011 of the CS_Core plugin is the line where it disables the run once functionality, so if you comment out that line it'd run every time for all crafts, though.

$gameParty._craftingRunOnce[Ramza.CSParams.resultItem.indexOf(result[1])] = true

I had confused it with the level up common event, which can call a common event, but also runs a block of code before it calls the common event as well. It only happens on level up of the crafting type you're doing though. Modifying the line I mentioned above is probably your best bet.