Execute string as Skript code

  • 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.

Xander402

Member
Aug 20, 2019
3
0
1
22
Hello, everyone
Came to ask just one simple question. Is it possible to execute a string as Skript code in any way?

Example:
Code:
function("set {_x} to 'hello from the string'")
function("send {_x} to all players")
# or
expression "set {_x} to 'hello from the string'"
expression "send {_x} to all players"
would print:
Code:
hello from the string
on the chat
 
try my recource https://forums.skunity.com/resources/executions.1043/

It can help you check the source or use it
I see. So what you're doing is basically creating a temporary script out of a chat message and executing it right away. Not at all what I expected, but very clever.
Thanks and, by the way, could you please update the documentation with valid images? :emoji_wink: The links that are present in the spoilers take me to the main page of an image hosting service.
 
Last edited:
Oooh, Sorry, They must've expired
[doublepost=1604831968,1604831823][/doublepost]Ok to use it,

Type in chat

\send "blah"

this is for a single line of code

and for multiple lines

\send "blah"|send "bruh"
 
Status
Not open for further replies.