issues with name color? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: issues with name color? (/thread-7606.html) |
issues with name color? - friskisan - Jan-17-2018 hey! im using renpy if anyones familiar with it to code my game, and i typed in this thread: define m = Character("Mothman”, color=“#3e2a54”). i keep getting the error I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/script.rpy", line 6: is not terminated with a newline. (Check strings and parenthesis.) (Perhaps you left out a " at the end of the first line.) define m = Character("Mothman”, color=“#3e2a54”) What is the issues? Please help! RE: issues with name color? - buran - Jan-17-2018 can you post let's say top 10 lines of your code (assuming this is line#6 as per the traceback)? Also check the line before that one... RE: issues with name color? - friskisan - Jan-17-2018 (Jan-17-2018, 06:49 PM)buran Wrote: can you post let's say top 10 lines of your code (assuming this is line#6 as per the traceback)? Also check the line before that one...the lines above it are simply comments renpy leaves there by default, but here: # The script of the game goes in this file. # Declare characters used by this game. The color argument colorizes the # name of the character. define m = Character("Mothman”, color=“#3e2a54”) define b = Character("Bigfoot”, color=“#856864”) define n = Character("Nessie”, color=“#2f7e68”) # The game starts here. label start: RE: issues with name color? - Gribouillis - Jan-17-2018 The quotes look like curly quotes or slanded quotes. Rewrite them all by hand. Did you copy and paste the code from a pdf file or rich text file? What is your editor? RE: issues with name color? - nilamo - Jan-17-2018 Are you using Word as your text editor? Those aren't quote characters, and python won't understand them. RE: issues with name color? - rayminator - Apr-08-2018 it should look like this define m = Character("Mothman", who_color=[ ("#3e2a54") ])
|