Johnson Posted December 19, 2023 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 08/22/18 Last Seen: 8 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 12, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 944 Reputation: 125 Joined: 05/23/12 Last Seen: Friday at 06:23 PM Share 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 Link to comment Share on other sites More sharing options...
0 Johnson Posted January 12, 2024 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 08/22/18 Last Seen: 8 hours ago Author Share 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 Link to comment Share on other sites More sharing options...
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 khouuming21Link to comment
Share on other sites
2 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.