How To Set {Var} to the name of the item on player's hand?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

zeibo

Member
May 16, 2017
11
0
0
27
Sorry for my bad English!

I want that players could name their empire by a paper.
So fist, I need to set the var. But I don't know how it do.


Can I type something like this?

code_language.skript:
command /aoecreatee:
    trigger:
        set {empires.%player%} to the name of the paper on player's hand
        send "&rYour Empire's name is %{empires.%player%}%." to player
 
Status
Not open for further replies.