Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
So I'm getting a weird error when I run Lint. I do not get an error within the game though and everything is running as expected so I'm not sure why it's acting this way?
default lucy = Character("Lucy")
default sam = Character("Sam")
default axel = Character("Axel")
and within the game their names pop up when they're supposed to so I'm not sure why Lint is going crazy flagging them all? Is this a weird bug or should I define the characters vs using default? (I like to check Lint to look at my word count as I write which is why I'm running it.)
Last edited by Scribbles on Wed Jul 19, 2017 9:43 am, edited 1 time in total.
I am aware of using define, I just thought it was supposed to be inferior to default? Is that only for other variables maybe? It's strange that it isn't crashing the game, and it's still using the name tags in the textbox but pops up in lint... *sigh* I will never get the hang of coding
Milkymalk wrote:I can't really see why one works and the other one doesn't, at least not from that description alone.
"define" sets a variable at init time.
"default" sets a variable when the game starts.
Both happens before any "say" statements.
I'm not sure either, but using define did stop the lint error, maybe it's a specific issue with lint (since the game ran fine and it still picked up on the names)