Item change different variables per actor

Topdod

Villager
Member
Joined
Jan 2, 2013
Messages
14
Reaction score
0
Primarily Uses
How would I go about having different variables change depending on which actor uses an item?
Actor 1 uses item 1 which changes variable 1 BUT if actor 2 uses item 1 it will change variable 2 instead.

I get the feeling this is simple but I'm just missing something. I tried common events but it would just raise all the variables which isn't what I need.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
107
Reaction score
24
First Language
German
Primarily Uses
RMVXA
You're on the right track with a Common Event. Define a dummy status, have the item do the status on your party, then run the event. In it, the actor who has the status will be the one to execute whatever you want. Like this:


 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
308
Reaction score
121
First Language
english
Primarily Uses
RMMV
almost exactly that. but instead of adding state to target it needs to be added to user. in this case have damage formula
a.addState(x); y
x being the targeted state, y being item formula or 0

then common event check
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
107
Reaction score
24
First Language
German
Primarily Uses
RMVXA
If you add it to user, you can't give it to an ally during battle.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
308
Reaction score
121
First Language
english
Primarily Uses
RMMV
If you add it to user, you can't give it to an ally during battle.
the a.addState() will add the state to the user even when the item is targeting someone else.
everything after ; in the formula and everything in the effects box will be applied to the target.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
107
Reaction score
24
First Language
German
Primarily Uses
RMVXA
the a.addState() will add the state to the user even when the item is targeting someone else.
everything after ; in the formula and everything in the effects box will be applied to the target.
Ok, I re-read the request and you're right. Good call.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

So I cloned an event in MV today.
Just got two custom tracks for my game. Things are shaping up nicely. :)
Remember, life is sh*t. But it will difinitely be less sh*t in the future! Stay happy everyone ^^ ...*continues to die inside*
Why is it that every time I take a short break from here, we get a new moderator?
Stream will be going live early today as I will be working on some music before I transition to art! When I switch to art, I will be focusing on making a new stream avatar~ Feel free to drop by!

Forum statistics

Threads
93,499
Messages
913,044
Members
123,036
Latest member
boredguy851
Top