Function in a function

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

glowgrew

Active Member
Jan 26, 2017
99
7
0
Perm, Russia
Hello. I've got two extra questions how to place a function in a function
code_language.skript:
one("sometext", two("sometext")")
and how to use a variable in event
code_language.skript:
every %{example}% parsed as integer times seconds:
?
[doublepost=1497798445,1497798051][/doublepost]Question №1 - Solved.
 
You can't use variables in event declarations, everything in the event must be known when the script is being parsed.

For your first question, yes, but remove the quote at the very end.
 
He means without adding "parsed as"

Yeah ik. you can do this:
code_language.skript:
set {example} to 1
then use it as an integer even though there's no "parsed as".

You would only need to add "parsed as" if it was a text like this:
code_language.skript:
set {example} to "1" parsed as an integer
 
Status
Not open for further replies.