Item change different variables per actor

Topdod

Villager
Member
Joined
Jan 2, 2013
Messages
15
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
151
Reaction score
42
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
555
Reaction score
230
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
151
Reaction score
42
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
555
Reaction score
230
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
151
Reaction score
42
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

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,238
Members
137,608
Latest member
Arm9
Top