Search found 132 matches

by Exiscoming
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

haha, thank you all for the help. I 'think' I get it now. And it seems to be working. :) I'll probably come up with more questions in the future, but for now thanks!
by Exiscoming
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

Oh that's it! But wait, doesn't <= mean less or equal to? Example: if <= 10 Variable <= 20 "Activate!" Doesn't this read as anything lower or equal to 10 and everything lower or equal to 20 will activate it? Say that the variable is 9. That's lower than 10 and will therefor activate, right?
by Exiscoming
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.&...
by Exiscoming
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!
by Exiscoming
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:

Code: Select all

if variable == (1, 6):
   "Something happeneds."
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. :)
by Exiscoming
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...
by Exiscoming
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

Asceai wrote:You'll need to use 'as' for subsequent images because there can only be one image with a given tag per layer.
It's working exactly how I want it now. Thanks!
by Exiscoming
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...
by Exiscoming
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 ...
by Exiscoming
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...
by Exiscoming
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...
by Exiscoming
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...