Search found 132 matches
- Sun Mar 22, 2015 5:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
- Sun Mar 22, 2015 5:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
- Sun Mar 22, 2015 4:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
Re: If statement. Variable between 2 values (Quick question)
Thanks again for the help, but I've stumbled upon another problem. Can I add an if statement inside of an if? Example: if 0 >= morale <= 5: "What?! No way!" elif 6 >= morale <= 10: $morale -= 1 $bobHomework += 1 "Fine I'll do it." if 1 >= bobHomework <= 10: "Bob looks dumb.&...
- Sat Mar 21, 2015 6:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
Re: If statement. Variable between 2 values (Quick question)
Maybe... either way it worked! Much obliged!
- Sat Mar 21, 2015 5:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
Re: If statement. Variable between 2 values (Quick question)
Thank you! Is this the only way to do it though? I seem to have this idea that you could do something like:
Not sure if I just misremember or maybe it's from another code language. It's been a long time since I've tried Ren'py.
Code: Select all
if variable == (1, 6):
"Something happeneds."
- Sat Mar 21, 2015 4:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: If statement. Variable between 2 values (SOLVED)
- Replies: 10
- Views: 1140
If statement. Variable between 2 values (SOLVED)
Hey, quick (hopefully easy) question. How do I make an if statement activate if a variable is between 2 numbers? Example: if variable == 1-5: "Hi, good to see you again!" elif: "Hello, I don't think we've met." I know it's a dumb question, but I've been searching for over an hour...
- Wed Apr 30, 2014 8:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Re: Showing images on my Image Maps
It's working exactly how I want it now. Thanks!Asceai wrote:You'll need to use 'as' for subsequent images because there can only be one image with a given tag per layer.
- Wed Apr 30, 2014 7:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Re: Showing images on my Image Maps
'hide' requires onlayer as well hide spearmini onlayer above_screens Dude, you're awesome. Thanks! Ugh... I'd hate to ask (you've already helped me so much :D) but while I'm at it... right now when I recruit a soldier, it looks like this: http://i.imgur.com/ggvYhyP.png Is there a script I can add t...
- Wed Apr 30, 2014 7:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Re: Showing images on my Image Maps
Add another screen and make that screen just show the spearman. Then give it a high zorder so it appears on top of the other screen. Alright! I don't know how... but somehow I did it! ... seriously it suddenly works and I'm still wondering why... haha. However with that came a new problem. (Thanks ...
- Wed Apr 30, 2014 7:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Re: Showing images on my Image Maps
Alright. I still don't understand exactly what you're doing, but you can create a new layer and show the image on that. init python: config.layers = [ 'master', 'transient', 'screens', 'above_screens', 'overlay' ] show spearman1 onlayer above_screens haha, yeah I feel like I'm jerryrigging this thi...
- Wed Apr 30, 2014 6:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Re: Showing images on my Image Maps
Are you sure it's there? 'call screen' doesn't return control to the caller until a Return action is used (or the screen is returned to in some other way) Try 'show screen' instead. Yes and no haha, okay here's my code: label barracks_1: $ menu_flag = True call screen recruitment #armyManagement.rp...
- Wed Apr 30, 2014 6:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing images on my Image Maps
- Replies: 10
- Views: 837
Showing images on my Image Maps
Right, tricky one for me. In my game you can recruit soldiers and this is done via an Image Map where you can cycle though troops to hire. The Imagemap itself looks like this: http://i.imgur.com/VClqmfJ.png Now I like to have certain images overlay, depending on where you cycle through it. Like this...