i want to make an item with a common event that says the name of the actor who used it, but i'm not sure how to do that
i know how to do this but with the actor's id instead but that's not what i want
BattleManager._subject.name()
Store that in a variable and then show the variable in show text with: \V[X]
EDIT: Since it's unclear if you want the user or the target, you'll need to edit that script if you want the target.
In tye damage formula, you can put v[1] = a.actorId; in front of the formula.
Normallybyou would use \n[1] to get the name of actor 1.
Now you can do \n[\v[1]] to get the name of the caster.
(Untested)
Hmmm, what I wrote above works for me. I tested it.
EDIT: You should show a screen shot how you did it.
So do you want the user of the item or the one who the item was used upon, in the menu screen? I think the user is automatically selected based on pharmacology (maybe only healing items, don't know). If you want the one the item was used upon in the menu, you can put it in a variable with:
$gameActors.actor($gameParty._targetActorId).name()
Then make a conditional in the common event:
IF $gameParty.inBattle()
-> the script for the battle from earlier
ELSE
-> the script from this message
But yeah, if you need the id of the one who used the item outside of battle, someone else is going to have to help you.
EDIT: And if you do want the target, you'll need to edit the battle script too.
Yeah well, wasn't your question how to get the name? Of course they won't kill your actor. You'll need to put that in as well.
And if you go the damage formula route, replace 'a' with 'b', so you'll get the target's name.
Oh I forgot the ().
\n[\v[1]] should work, if variable 1 contains the ID of the actor
To be sure, that last piece does not go in the battle formula, but in wherever you want to show that name.