Solved About "wait" ?

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

KrswtkhrSK

Member
Jan 28, 2017
27
2
1
Skript Version: Bensku's fork dev29

I want to wait the number of variables.
Why is this an error?
code_language.skript:
command /test:
    trigger:
        set {_time} to random number between 1 and 3
        wait {_time} seconds
        message "test"

code_language.skript:
[Server thread/ERROR]: Can't understand this condition/effect: wait {_speed} seconds (dump.sk, line 159: wait {_time} seconds')


I did not work with parse.
code_language.skript:
set {_time} to {_time} parsed as integer

thanks.
 
Skript Version: Bensku's fork dev29

I want to wait the number of variables.
Why is this an error?
code_language.skript:
command /test:
    trigger:
        set {_time} to random number between 1 and 3
        wait {_time} seconds
        message "test"

code_language.skript:
[Server thread/ERROR]: Can't understand this condition/effect: wait {_speed} seconds (dump.sk, line 159: wait {_time} seconds')


I did not work with parse.
code_language.skript:
set {_time} to {_time} parsed as integer

thanks.

This is becouse for example 1 second is THE whole effect And can't be a variable To fix this use this instead.

code_language.skript:
Set {_time} To a random integer between 1 And 3
Set {_end} To "%{_time}% seconds" parsed as a time span
Wait {_end}
 
Skript Version: Bensku's fork dev29

I want to wait the number of variables.
Why is this an error?
code_language.skript:
command /test:
    trigger:
        set {_time} to random number between 1 and 3
        wait {_time} seconds
        message "test"

code_language.skript:
[Server thread/ERROR]: Can't understand this condition/effect: wait {_speed} seconds (dump.sk, line 159: wait {_time} seconds')


I did not work with parse.
code_language.skript:
set {_time} to {_time} parsed as integer

thanks.
That will not work cause wait {var} seconds will not work. You can use this for a replacement

code_language.skript:
command /test:
    trigger:
        set {_time} to "%random number between 1 and 3% seconds" parsed as timespan
        wait {_time}
        message "test"
 
That will not work cause wait {var} seconds will not work. You can use this for a replacement

code_language.skript:
command /test:
    trigger:
        set {_time} to "%random number between 1 and 3% seconds" parsed as timespan
        wait {_time}
        message "test"
I POSTED BEFORE U Xd
 
Status
Not open for further replies.