my code looks like this :
label start:
"Choose your hero"
menu:
"Mike"
jump mike
"Harmony"
jump harmony
"Tyler"
jump tyler
label mike:
there is then a bunch of code after label mike. however, when i go to launch it, an error pops up saying
File"game/script.rpy", line 28:expected menuitem
jump mike
i'm not sure what's wrong. if you need me to show more of the code i can, this is just what i think applies to the problem.
script menu items won't run
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- akemicchi
- Veteran
- Posts: 465
- Joined: Mon Dec 31, 2007 11:22 pm
- Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
- Deviantart: littlebabyshoes
- Contact:
Re: script menu items won't run
You'll want to post any code using the code tag.
[ code ] Code here. [/ code ]
You need a ":" right after all the menu items.
Keep in mind the indentation! :)
[ code ] Code here. [/ code ]
You need a ":" right after all the menu items.
Code: Select all
label start:
"Choose your hero"
menu:
"Mike":
jump mike
"Harmony":
jump harmony
"Tyler":
jump tyler
Re: script menu items won't run
thank i will remember the code tags for future use. that did solve that problem but now a new one has presented itself. it is now saying that choice menuitem expects a non-empty block, what does that mean?
- akemicchi
- Veteran
- Posts: 465
- Joined: Mon Dec 31, 2007 11:22 pm
- Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
- Deviantart: littlebabyshoes
- Contact:
Re: script menu items won't run
It means exactly what it says: you can't have an empty block following a menu item. I think you might just be having trouble with indentation; I don't know unless you post your code. xD
General format for menus are as follows:
You can't do something like: You need something following the choice, whether it's a normal say statement, a jump, call, variable changes... anything.
General format for menus are as follows:
Code: Select all
menu:
"Choice.": # Make sure to follow with a ":" and observe the indentation!
"Text." # Make sure to be four spaces in after following anything that ends with ":"!
"2nd Choice.": # This line is on the same line as the other choice because it is also a choice for the menu.
"Text."
Code: Select all
menu:
"Choice.":
"2nd Choice.":
Re: script menu items won't run
yeah it did seem to be the idents. i reread your post last night and fixed it up a bit. the errors never seem to end though, you fix one and you get another, i might just have to doodle around with the program more and figure it out
Who is online
Users browsing this forum: Ahrefs [Bot]