Hi! So, I am making a teams skript like I said in another skript, but it is like factions, but just for pvp, so you can't hit players in your team. So, this is my code I have for creating your team:
Ok, so I need argument 2 (the name of the created team) to be added to a list. Now, I don't know how to make a list of strings. Also, if I had that, how would I order them so it would be like this:
Teams:
1. A team name that has been added to {teams}
2. So forth and so forth
Thanks guys!
[doublepost=1493599980,1493589518][/doublepost]Anybody? Please! I really need this!
[doublepost=1493607516][/doublepost]Please help me!
I really need this done! Thanks 
code_language.skript:
variables:
team = " " parsed as a string
command /team [<text>] [<text>]:
trigger:
if arg 1 is not set:
if arg 2 is not set:
message ""
message "&f&l&m-------------------"
message " &8» &7Teams &8«"
message ""
message " &b/team create <name>"
message " &b/team invite <player>"
message " &b/team join <team>"
message " &b/team mod <player>"
message " &b/team admin <player>"
message " &b/team owner <player>"
message " &b/team demote <player>"
message " &b/team kick <player>"
message " &b/team disband"
message "&f&l&m-------------------"
message ""
if arg 1 is "create":
if arg 2 is set:
if {team.in.%uuid of player%} is true:
message "&c&l!! &7You are already in a team! Type /team leave!"
else:
message "&8[&9Teams&8] &bYou have created a team named %arg-2%!"
set {team.in.%uuid of player%} to true
add arg 2 to {teams}
set {team.leader.%uuid of player%} to true
Ok, so I need argument 2 (the name of the created team) to be added to a list. Now, I don't know how to make a list of strings. Also, if I had that, how would I order them so it would be like this:
Teams:
1. A team name that has been added to {teams}
2. So forth and so forth
Thanks guys!
[doublepost=1493599980,1493589518][/doublepost]Anybody? Please! I really need this!
[doublepost=1493607516][/doublepost]Please help me!