Add String

  • 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 community!

    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.

MusicManSK

Active Member
Nov 30, 2017
230
11
18
Hello!
is there some way to add %string% to %string% ?
like:
code_language.skript:
set {_string} to "test1"
add ", test2" to {_string}
and returning {_string} will return "test1, test2"
 
If you're doing this to non-list variables, then it would be
code_language.skript:
set {_string} to "%{_string}%, test2"
EDIT: Donut was quick :emoji_stuck_out_tongue:

However, I wouldn't recommend doing this because list variables can do it better (for looping and outputting values). For example,
code_language.skript:
add "test1" and "test2" to {_strings::*}
 
Thanks guys for fast reply!
Good idea!
Sometimes codding have to be stupid :emoji_grinning: :emoji_grinning: :emoji_grinning:
code_language.skript:
set_user_health(playerid, (get_user_health(playerid) + 500))
Thanks!
 
Status
Not open for further replies.