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.
-
fukairi
- Newbie
- Posts: 18
- Joined: Sun Nov 05, 2017 1:30 pm
- Projects: NSE crap, Shadow Wolf project.
- Tumblr: Marinut
- Deviantart: Fukairi
-
Contact:
#1
Post
by fukairi » Mon Nov 06, 2017 5:32 pm
Trying to check if player's points equals or is larger than four.
^I've tried different variations of this, but I can't get it to work. I'm sorry and ashamed to be asking this

I could get around it by just doing elif and copypaste the exact event for both, but that seems like a really dumb way to go about it.
Last edited by
fukairi on Mon Nov 06, 2017 5:42 pm, edited 1 time in total.
Bap.
-
Dovahkitteh
- Veteran
- Posts: 229
- Joined: Wed Sep 02, 2015 4:51 pm
- Completed: YDD, RE, CoB, Req
- Projects: Red Embrace: Hollywood, The Black Hand
- Organization: Argent Games
- Tumblr: argentgames
- Skype: Dovahkitteh
- itch: argent-games
-
Contact:
#2
Post
by Dovahkitteh » Mon Nov 06, 2017 5:38 pm
No need to be ashamed! Python can be confusing and even less complicated statements are often difficult to remember, considering how many there are.
The one you're looking for is:
And conversely, less than or equal to would be:
You can also answer a lot of questions of this nature by just searching up "how to do X in Python" or on Stack Overflow, which is a godsend for many amateur programmers (including myself).
-
fukairi
- Newbie
- Posts: 18
- Joined: Sun Nov 05, 2017 1:30 pm
- Projects: NSE crap, Shadow Wolf project.
- Tumblr: Marinut
- Deviantart: Fukairi
-
Contact:
#3
Post
by fukairi » Mon Nov 06, 2017 5:41 pm
Dovahkitteh wrote: ↑Mon Nov 06, 2017 5:38 pm
No need to be ashamed! Python can be confusing and even less complicated statements are often difficult to remember, considering how many there are.
The one you're looking for is:
And conversely, less than or equal to would be:
You can also answer a lot of questions of this nature by just searching up "how to do X in Python" or on Stack Overflow, which is a godsend for many amateur programmers (including myself).
Oh my goooooooooooooood I didn't even think about putting it before the equal sign??? I feel like such a jackass. I swear I did try to google it, but my search terms were probably bad. Thank you so much for your help though <3
Bap.
Users browsing this forum: No registered users