Determine user of item

● ARCHIVED · READ-ONLY
Started by Vis_Mage 6 posts View original ↗
  1. I'm trying to make an item that changes the stat of the user of the item via a script call using a common event. Unfortunately, the script call can only be applied to a set actor ID.

    What I am looking for is either a script call or script itself that allows the game to check what actor ID is using the item, and from there set a variable to a set amount. From there, I can have the common event go to the correct script call via conditional branch. 

    For example, lets say I have 3 characters, Merric, True, and Diana. If True uses the bread item, it would set variable X to 1. From there the common event would go...

    IF variable X=0 

    -script call-

    else

    IF variable X=1

    -true's version of script call-

    else

    yada yada yada...

    Could someone help me figure out how to go about this?
  2. Well the items can increase stats without a script. Just set the item scope to "One Ally", then you can add the parameters by clicking the Effects box to the right, go to the Other tab, and pick Growth. From there you can pick any stat you want to increase (to decrease you'll have to do that manually).
  3. Uzuki said:
    Well the items can increase stats without a script. Just set the item scope to "One Ally", then you can add the parameters by clicking the Effects box to the right, go to the Other tab, and pick Growth. From there you can pick any stat you want to increase (to decrease you'll have to do that manually).
    Huh, interesting to know, although not quite what I'm getting at.

    I guess I didn't phrase it all that great, but I'm trying to add a value to an actor via a script (and effort value script), and not just adding defult stats. To be specific, I need to run the fallowing script call:

    ACTOR.param_ev_gain(id,gain)

    The thing is, the script doesn't have an option to change the actor part into an overall user targeting, so I'm looking to have that script call set up for all actors, and the variable set by the process in the first post would then determine which call to run.
  4. Hime has a Common Event's Variables script that I use for most everything of this sort of nature.

    It automatically sets things like the user ID, target ID, skill ID, item ID and more.

    It was also pretty easy for me to use and create my own uses for it.

    ~ Dinhbat
  5. dinhbat3 said:
    Hime has a Common Event's Variables script that I use for most everything of this sort of nature.

    It automatically sets things like the user ID, target ID, skill ID, item ID and more.

    It was also pretty easy for me to use and create my own uses for it.

    ~ Dinhbat
    Thanks a bunch for the link, I got everything working now! :D
  6. There is one alternative if you don't want to use scripts:


    use the damage formula to store the actor ID into a variable of your choice, something like


    v[99]=a.id


    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.