Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How would I use 'this' to reference the holder of a weapon with dynamic params? I am trying to do it so the weapon will calculate the bonuses based off of custom params of the holder. So something like:

0.00005*$gameActors.actor(1).cparam(0)+0.00001*$gameActors.actor(1).cparam(1)

but instead of hard-coding $gameActors.actor(1) I want it to be dynamic. I dont have a full mastery of 'this', but that paired with how rpg maker calls events and objects makes me lost

Hi there! :D

It is very simple, in the example you showed to me, you just have to do this:

0.00005*this.cparam(0)+0.00001*this.cparam(1)

Just replace the $gameActors.actor(1) with this

Hope it helps!

<3 thank you!