Error in Ren'py help!{solved!}

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.
Post Reply
Message
Author
User avatar
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Error in Ren'py help!{solved!}

#1 Post by MioSegami » Fri Nov 16, 2012 9:05 pm

I kept getting this error and it's starting to annoy me, I don't know what i did wrong. I'm tying to set up the ending, each guy has 3 different endings, and in total 14 endings total. I'm not sure if i'm doing this right T^T.... I'm not a person who is good at computer codings and such...so yeah sorry...well any clue?

Code: Select all

if mom_points > max(shou_points, hitoriki_points, ryohei_points, mochiku_points):
        jump momlove

    elif (max(kind of array of points) == ryohei_points) and (ryohei_points > 6):
        jump ryoheiendinglove
    elif (max(kind of array of points) == 6 == ryohei_points) :
        jump rilikeyou
    elif max(kind of array of points) == ryohei_points :
        jump justbefriends

    elif (max(kind of array of points) == hitoriki_points) and (hitoriki_points > 6):
        jump hitorikiendinglove
    elif (max(kind of array of points) == 6 == hitoriki_points):
        jump hilikeyou
    elif max(kind of array of points) == hitoriki_points:
        jump onlyfriends
        

    elif (max(kind of array of points) == mochiku_points) and (mochiku_points > 6):
        jump mochikuendinglove
    elif (max(kind of array of points) == 6 == mochiku_points):
        jump milikeyou
    elif max(kind of array of points) == mochiku_points:
        jump sorry

    elif (max(kind of array of points) == shou_points) and (shou_points > 6):
        jump  shouendinglove
    elif (max(kind of array of points) == 6 == shou_points):
        jump silikeyou
    elif max(kind of array of points) == shou_points:
        jump friendzone
    else:
        jump aloneending

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game\script.rpy", line 349, in script
SyntaxError: invalid syntax (script.rpy, line 352)

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\MioSegami\Downloads\renpy-6.14.1-sdk\renpy\execution.py", line 266, in run
  File "C:\Users\MioSegami\Downloads\renpy-6.14.1-sdk\renpy\ast.py", line 1394, in execute
  File "C:\Users\MioSegami\Downloads\renpy-6.14.1-sdk\renpy\python.py", line 1206, in py_eval
  File "C:\Users\MioSegami\Downloads\renpy-6.14.1-sdk\renpy\python.py", line 413, in py_compile
SyntaxError: invalid syntax (script.rpy, line 352)

Windows-7-6.1.7600
Ren'Py 6.14.1.366
A Ren'Py Game 0.0
Last edited by MioSegami on Sat Nov 17, 2012 12:19 am, edited 1 time in total.

Levrex
Veteran
Posts: 280
Joined: Mon Jun 18, 2012 12:16 pm
Contact:

Re: Error in Ren'py help!

#2 Post by Levrex » Sat Nov 17, 2012 12:18 am

I didn't mean "kind of an array" literally. What i meant is "ryohei_points, hitoriki_points, mochiku_points, shou_points". Just like in "mom's love" condition.
If your question is solved, please add [Solved] to theme's name by editing its first post, so that the helpful guys out there wouldn't mistakenly think the problem is still unanswered and waste their time.

User avatar
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Re: Error in Ren'py help!

#3 Post by MioSegami » Sat Nov 17, 2012 12:19 am

Levrex wrote:I didn't mean "kind of an array" literally. What i meant is "ryohei_points, hitoriki_points, mochiku_points, shou_points". Just like in "mom's love" condition.
Why thank you! XDD I feel utterly dumb xD -bows!-
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

Post Reply

Who is online

Users browsing this forum: Alex, Google [Bot]