If I am making an item or whatever that increases an actor's parameters, is there some way to do it without specifying the actor? That way I can use it with party members as well, I haven't been able to think of a very good way to effect them too without a jumbled eventing mess. Plus, there's no way I can guarantee it only works on whoever it effects.
Change Parameters without specifying actor
RPG Maker VXAce Supportjust make it an usable item?
of course, you can select the user as the item effect.
that is the base function of the item after all.
if you made your effects using a common event and the event commands - that is the bad way to do it and it should only be done for effects that are more complex than simply adding a few points.
but basically you would have to do the same, with a few additional effects and commands:
switch the item to user
give the item a state-affect that is invisible and does nothing but identifying the target
in the common event, check all actors as to who has the target state and then give the effects to that actor.
that is the base function of the item after all.
if you made your effects using a common event and the event commands - that is the bad way to do it and it should only be done for effects that are more complex than simply adding a few points.
but basically you would have to do the same, with a few additional effects and commands:
switch the item to user
give the item a state-affect that is invisible and does nothing but identifying the target
in the common event, check all actors as to who has the target state and then give the effects to that actor.
I've done this with JP points and other script points. I've never tried with parameters. You can try what I've done using the damage formula.
Set the item to hp damage, physical.
Add in gain tp 0% in the features
Set damage variation to 0.
Then you just need to specify a method from Game Actor.
If you need to make one then go ahead and write it up. As an example look at yanfly's JP Manager gain_jp method.
The damage formula would look something like this
b.gain_jp(50); 0
It only affects the actor you selected, and will push the data you set in the brackets to the method. Then do whatever you want with it.
That works, even though it's still clunky. Thanks!
you never said why you are using the common event at all instead of simply using the grow-effect to increase values
Because the items I am making randomly increase a parameter on whatever actor it's used on instead of increasing a specific one.
Original thread: https://forums.rpgmakerweb.com/threads/change-parameters-without-specifying-actor.146484/