Why skript can't understand this

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

Aidanete

Active Member
Apr 11, 2017
139
10
0
I started recently to use Skript-mirror and I have 2 problems:

[1]
code_language.skript:
effect elevate [the] %player% %number% (meters|blocks):
    trigger:
        teleport the expression-1 expression-2 meters above the location of expression-1
Error log:
code_language.skript:
Can't understand this condition/effect: "teleport the expression-1 expression-2 meters above the location of expression-1"
[2]
code_language.skript:
effect set item in slot %number% of %player% to %itemstack%:
    trigger:
        set {_as} to expression-2's selected hotbar slot
        set expression-2's selected hotbar slot to slot expression-1 of expression-2
        set expression-2's tool to expression-3
        set expression-2's selected hotbar slot to slot {_as} of expression-2
Error logs:
code_language.skript:
the selected hotbar slot of expression 2 can't be set to slots 
expression 1 of expression 2 because the latter is not a number. 
Line 26: set expression-2 selected hotbar slot to slot expression-1 
of expression-2
code_language.skript:
the selected hotbar slot of expression 2 can't be set to 
slots {_as} of expression 2 because the latter is not a number. 
Line 28:  set expression-2's selected hotbar slot to slot {_as} 
of expression-2

Thank you
 
try this
teleport expression-1 to location expression-2 meter above location of player
 
Btw youre using an invalid syntax, every time you have a [] it's [( )]

good: [(the)]
bad: [the]
 
Thank you both, but still having problems with the selected hotbar stuff (The second error)
 
Btw youre using an invalid syntax, every time you have a [] it's [( )]

good: [(the)]
bad: [the]
You don't need the (), that's just if you want to make it support multiple things, for example: [(hello|hi)]
 
You don't need the (), that's just if you want to make it support multiple things, for example: [(hello|hi)]
Oh, sorry for that. I just use it all the time since it's more easy, and I was told that you needed them
 
Status
Not open for further replies.