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
153
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
587
Reaction score
243
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
153
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
587
Reaction score
243
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
153
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 Profile Posts

My computer broke yesterday, so no RPG maker for at least a week until I can get it repaired. :(
Just wanted to share how my game won 1st place in a game jam for itch.io. Everyone else used Unreal, Unity, GMS2, Godot, etc but I used RPG Maker 2003 :guffaw: It just shows that you can create a good game and it doesn't matter which engine you use
Working on cutscenes~

if your game is the first (or ONLY) in a series and still has a colon in its title, you are a bad person and I hate you...... jk.

who could ever hate BETWEEN: TWO SOULS?

Forum statistics

Threads
107,404
Messages
1,029,443
Members
139,502
Latest member
FLXYM
Top