Skip to main content

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

Attempting to work this with Fomar0153's Passive Skills

A topic by Excidiar created 11 days ago Views: 21 Replies: 4
Viewing posts 1 to 2

I am trying to make a stat that will grant extra points for equipping passives. Call it xtrasat as an abbreviation for Extra Saturation. Problem is, when I raise this stat, no matter whether I configure it as HP or not, I get the message "cannot get isHP of undefined". So far I've implemented two other stats correctly, but this one is proving to be a challenge. Now, it seems like Fomar has gone MIA, but you are still active. So, I am requesting for your help. 

Developer

Hi there!

First thing is, when that error happens, press F12 or F8, a browser window will open. Then, go to the CONSOLE tab, and send me a screenshot of what is in there.

Now, if you manage to make other stats to work correctly, then it is not a compatibility problem I guess. So, send me a screenshot of that specific stat that is causing the trouble and also a screenshot of how are you trying to raise/change the value of that stat.

then we see what we can do about that :)

First, let me clarify. I made other stats work correctly, but not to interact with this particular plugin correctly.


Second, I copied the error:

TypeError: Cannot read property 'isHp' of undefined

    at Object.isHpType (EliMZ_CustomParameters.js:360)

    at Game_Actor.Game_BattlerBase.addCParam (EliMZ_CustomParameters.js:994)

    at Game_Action.itemEffectGrowC (EliMZ_CustomParameters.js:716)

    at Game_Action.applyItemEffectC (EliMZ_CustomParameters.js:683)

    at Game_Action.applyItemEffect (EliMZ_CustomParameters.js:649)

    at Game_Action.apply (rmmz_objects.js:1926)

    at Game_Action.apply (CGMZ_ExtraStats.js:966)

    at Scene_ItemBase.applyItem (rmmz_scenes.js:1636)

    at Scene_ItemBase.useItem (rmmz_scenes.js:1597)

    at Scene_Item.useItem (rmmz_scenes.js:1746)

SceneManager.catchNormalError @ rmmz_managers.js:2036

SceneManager.catchException @ rmmz_managers.js:2024

SceneManager.update @ rmmz_managers.js:1945

Graphics._onTick @ rmmz_core.js:811

TickerListener.emit @ pixi.js:9093

Ticker.update @ pixi.js:9548

Ticker._tick @ pixi.js:9298

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

requestAnimationFrame (async)

Ticker._tick @ pixi.js:9301

(1 edit)

Aand i detected the error by myself. 

For anyone else needing this particular interaction to work for themselves. In the formula box for passive points, the value for the stat is called "this.x"; Make sure to replace x with the short name of your custom stat. And also make sure to spell the short name of your custom stat in the notetag. Here i somehow assumed that, because the index number of normal stats end on 7, then the third custom stat would have an index number of 10. By replacing <GrowC:10:1 > with <GrowC:xtrasat:1 > (where xtrasat is the short name of my custom stat) i managed to make it work.

Developer

Nice! Have fun!