Item change different variables per actor

Discussion in 'RPG Maker VX Ace' started by Topdod, Dec 31, 2018.

  1. Topdod

    Topdod Villager Member

    Messages:
    8
    Likes Received:
    0
    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.
     
    #1
  2. Shiro-chan

    Shiro-chan Veteran Veteran

    Messages:
    69
    Likes Received:
    13
    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:
    [​IMG]
    [​IMG]
    [​IMG]
     
    #2
    Topdod likes this.
  3. Tiamat-86

    Tiamat-86 old jrpg gamer Veteran

    Messages:
    253
    Likes Received:
    103
    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
     
    #3
    Topdod likes this.
  4. Shiro-chan

    Shiro-chan Veteran Veteran

    Messages:
    69
    Likes Received:
    13
    First Language:
    German
    Primarily Uses:
    RMVXA
    If you add it to user, you can't give it to an ally during battle.
     
    #4
  5. Topdod

    Topdod Villager Member

    Messages:
    8
    Likes Received:
    0
    And now it all works.
    Thanks!
     
    #5
  6. Tiamat-86

    Tiamat-86 old jrpg gamer Veteran

    Messages:
    253
    Likes Received:
    103
    First Language:
    english
    Primarily Uses:
    RMMV
    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.
     
    #6
  7. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    476
    Likes Received:
    339
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    @Tiamat-86 That's for MV. For VX Ace, you want a.add_state(ID) to add the state to the user.
     
    #7
    Shiro-chan likes this.
  8. Shiro-chan

    Shiro-chan Veteran Veteran

    Messages:
    69
    Likes Received:
    13
    First Language:
    German
    Primarily Uses:
    RMVXA
    Ok, I re-read the request and you're right. Good call.
     
    #8

Share This Page