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
148
Reaction score
39
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
417
Reaction score
165
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
148
Reaction score
39
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
417
Reaction score
165
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
148
Reaction score
39
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 Profile Posts

I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.
We start in 5 minutes!

Forum statistics

Threads
102,935
Messages
996,073
Members
134,387
Latest member
Odys123
Top