Executing function in 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.

PanHack

Active Member
Dec 18, 2019
143
8
18
24
Sounds weird, but im trying to execute next function by using format slot ... [<functioname> player] created in function. But it doesnt want to work
 
Code:
function Test1(p: player):
  Test2({_p})

function Test2(p: player):
  #do stuff
im trying to execute function IN FORMAT SLOT, but it doesnt work. Just nothing happens, wait 5 ticks doenst help too
[doublepost=1603910114,1603909157][/doublepost]Example code:
Code:
command /test123:
    trigger:
        test1(player)

function test1(p: player):
    wait 3 ticks
    open chest with 3 rows named "test" to {_p}
    format slot 1 of {_p} with stone to close then run [test2({_p})]

function test2(p: player):
    wait 5 ticks
    send "test" to {_p}
command is executes test1 function but test1 is not executing test2
Edit: figured out when im formatting slot and that is not executing function how do i fix it
 
Code:
command /test123:
    trigger:
        test1(player)

function test1(p: player):
    wait 3 ticks
    open chest with 3 rows named "test" to {_p}
    format slot 1 of {_p} with stone to close:
      test2({_p})

function test2(p: player):
    wait 5 ticks
    send "test" to {_p}
 
Code:
command /test123:
    trigger:
        test1(player)

function test1(p: player):
    wait 3 ticks
    open chest with 3 rows named "test" to {_p}
    format slot 1 of {_p} with stone to close:
      test2({_p})

function test2(p: player):
    wait 5 ticks
    send "test" to {_p}
can't understand this condition: 'format slot 1 of {_p} with stone to close'
 
Status
Not open for further replies.