Johnson Posted December 19, 2023 Posted December 19, 2023 (edited) Good day! I'm having trouble on this warning and dunno in what part on the script made the error. Appreciate any help. Thanks a lot! Item_db_usable.yml Spoiler - Id: 70000 Script: | callfunc("menuskills"); menuskills.txt Spoiler function script menuskills { OnDo: sc_end SC_MENUSKILLS; goto(main_menu); end; main_menu: .@menu$ = "[Skills Menu]"; mes .@menu$; .@main_menu = select("Start Skills","Stop Skills","Cancel"); if( .@main_menu == 1 ){ menuskills_item; message strcharinfo(0),"Skill Active"; } if( .@main_menu == 2 ) goto(OnDo2); close; OnDo2: sc_end SC_MENUSKILLS; message strcharinfo(0),"Skills Deactivated"; end; } Console log: Edited December 19, 2023 by khouuming21 Quote
0 Rynbef Posted January 12, 2024 Posted January 12, 2024 The function starts from top of the script when called. I don't know what u want to do with this script but. U need the right syntax und commands. rA Scripts are complete different to classic programming languages and it's more a script language. U can take a look at doc/script_commands.txt and the example scripts to learn it. I've changed it and removed unnecessary thinks. But don't understand the usage for the script. What u want to do is not clear for me. menuskills.txt Rynbef~ Quote
0 Johnson Posted January 12, 2024 Author Posted January 12, 2024 5 hours ago, Rynbef said: The function starts from top of the script when called. I don't know what u want to do with this script but. U need the right syntax und commands. rA Scripts are complete different to classic programming languages and it's more a script language. U can take a look at doc/script_commands.txt and the example scripts to learn it. I've changed it and removed unnecessary thinks. But don't understand the usage for the script. What u want to do is not clear for me. menuskills.txt 408 B · 0 downloads Rynbef~ Hi Rynbef, I have managed to fix double continuation I was messing with my script and managed to fix it. Thx Quote
Question
Johnson
Good day! I'm having trouble on this warning and dunno in what part on the script made the error. Appreciate any help. Thanks a lot!
menuskills.txt
Console log:
Edited by khouuming212 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.