Skip to main content

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

Hi there!

Well I can't answer for the visu stuff... but taking a look into the information you sent:

1) On the JS Pre Apply, it seems to me that you are taking the value of the custom parameter id 0 and storing it into Stack. And then, you are raising the stack and applying the Stack value into the parameter id 0. On my way of seing things, what are you doing is just increasing the custom parameter id 0 value to +10, right? And that happens when you apply the state.

2) Don't know what slip dagame is, but it seems that when the state expires or erases, you are setting the custom parameter id 0 value to 0.

3) I don't know if this is a problem, but avoid using the shortname as the template name. Put something different on the template name.

4) Unexpected identifier is kinda like a javascript formula error. You wrote down something that is not valid javascript. For your screenshot, I presume it would be that part:

if Burning = false
{
Use.setCustomParam(0,0)
}

I guess what are you trying to do is:

if(Burning === false){
User.setCustomParam(0,0)
}

if statements need to be around parenthesis. And to compare values you must use == or ===. Just one =, means an assignment, not a comparison. I suggest you taking a look here:

https://www.w3schools.com/jsref/jsref_if.asp

5) Now I see that said that the main problem is that you are not being able to reset the custom parameter to 0. As far as I can see, your formulas should work regarding using my plugin. Here is a screenshot of me doing something like you did. I guess maybe the problem is something on the visustella note tags flow.


Let me know if I understood you properly.

Either way, you may have better luck using my Dynamic Parameter plugin to change the custom parameter value:

Hakuen Studio Dynamic Parameters for RPG Maker MZ by Hakuen Studio

You can just add a note tag into a state that will change the custom parameter value when the battler is with the state. And will automatically remove when the battler loses that state. Just by using this note tag on the state:

<DynCParam dot>
return 10
</DynCParam>

From your setup, I guess you just need to keep the `JS HP Slip Damage`. The other note tags from visu you won't need, if you use the Dynamic Parameter plugin like the above.

let me know the results!

 Sorry for the late response. I was able to get a solution working that doesn't require your plugin although I'll keep it in mind if it case it's needed later. 

The intention behind that the skill and status effect is that statuses have a duration and a potency.for example burn has its duration go down by 1 each turn and deals damage at the end of turn equal to its potency. I wanted it so that how much potency is added can vary depending on the skill and additional strategy can form around that.

I'm not much of a programmer and I'm new to working with JavaScript specifically so that explains any weird programming things you saw what you suggested did actually work before someone else gave me another solution that worked a bit better. 

So yeah thanks to you I can work with JavaScript a bit better now and I've been able to make a few other statuses work as intended. thank you

It's ok friend!  Glad you find a solution to your problem. Have fun :)