Search found 16 matches

by wildride
Mon Oct 02, 2017 3:10 pm
Forum: Ren'Py Questions and Announcements
Topic: check if 2 or more variables are the same
Replies: 6
Views: 659

Re: check if 2 or more variables are the same

Thanks, but that didnt work.

Gone with

Code: Select all

$ npcount = 0
    if avaloc == location:
        $ npcount += 1
    if davloc == location:
        $ npcount += 1
        #etc etc
        
"Chat with everyone" if npcount >= 2:
This does the job.
by wildride
Mon Oct 02, 2017 11:59 am
Forum: Ren'Py Questions and Announcements
Topic: check if 2 or more variables are the same
Replies: 6
Views: 659

Re: check if 2 or more variables are the same

It is a way I was considering, just wondered if there was one like that in a one liner ;)
by wildride
Mon Oct 02, 2017 11:22 am
Forum: Ren'Py Questions and Announcements
Topic: check if 2 or more variables are the same
Replies: 6
Views: 659

check if 2 or more variables are the same

I have the following: menu: "Chat with everyone" if avaloc, davloc, dilloc, jonloc, holloc, lilloc or simloc == location: What I want to do is check if at least 2 of those values are == location. I've seen examples of checking if all are the same but that is obviously not what I want. This...
by wildride
Mon Sep 25, 2017 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Combining variable into 1?
Replies: 6
Views: 1387

Re: Combining variable into 1?

Ill give it a try because while I thought I had it down, its not quite working out for clicking the images with what I had. After testing a few options yeah it was brackets, putting a little bug test so others may have an idea to try similar if they get stuck on syntax. Essentially did this to work ...
by wildride
Mon Sep 25, 2017 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Combining variable into 1?
Replies: 6
Views: 1387

Re: Combining variable into 1?

Well sorted it out by changing the Jump("[item[1]]") etc to simply Jump("item1") etc. So looks like label item0: $ invact = "[item[0]]" jump invaction label invaction: "getting to the ifs, item zero is [item[0]]" if invact == "keys": "You jangle...
by wildride
Mon Sep 25, 2017 10:59 am
Forum: Ren'Py Questions and Announcements
Topic: Combining variable into 1?
Replies: 6
Views: 1387

Re: Combining variable into 1?

Thanks, while the globals didnt sort it out (on its own without additional work which I wasnt sure how to proceed from) I did look up lists and dictionaries and sure enough the lists work perfectly. Much better than a string of if/elif statements I had planned for other things (ie days of the week) ...
by wildride
Mon Sep 25, 2017 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: Combining variable into 1?
Replies: 6
Views: 1387

Combining variable into 1?

Ok what Im attempting to do and likely in the worst way possible, is simply an item purchased from a shop to the players inventory. The Inventory code is like this: init: $ itemcount = 1 $ item2 = "" $ item3 = "" $ item4 = "" $ item5 = "" $ item6 = ""...
by wildride
Sat Sep 23, 2017 4:20 am
Forum: Ren'Py Questions and Announcements
Topic: ymaximum in bars
Replies: 2
Views: 422

Re: ymaximum in bars

Thankyou Divona, thats sorted it.
by wildride
Fri Sep 22, 2017 6:54 pm
Forum: Ren'Py Questions and Announcements
Topic: ymaximum in bars
Replies: 2
Views: 422

ymaximum in bars

Im designing a character generator for my game and was wanting to incorporate bars into it. However Im finding a couple of issues, one being the ymaximum setting appears to have no effect, nor does changing the left and right bars sizing on the actual image used. Im using the default code for style/...
by wildride
Sat Jan 21, 2017 6:58 am
Forum: Ren'Py Questions and Announcements
Topic: Movie playback
Replies: 10
Views: 2602

Re: Movie playback

Thanks for your testing, based on that I just tried doing a webm version using xmedia-recode this again worked on PC but crashed android. The video itself plays fine outside of Ren'Py. Well was going to need to make 2 versions of this anyway one for PC one for Android/iOS because of having a "c...
by wildride
Fri Jan 20, 2017 9:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Movie playback
Replies: 10
Views: 2602

Re: Movie playback

Bassically, yes they will play on all media players but in ren'py it does nothing. So for example I have: image assemblymov = Movie(channel="assemblymov", play="/video/Assembly.ogv", pos=(640, 300), anchor=(.5, .5)) label assemblymov: scene assembly show assemblymov "Click t...
by wildride
Fri Jan 20, 2017 6:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Movie playback
Replies: 10
Views: 2602

Movie playback

Im trying to get movie playback to work across all platforms. (PC/iOS/Android) The only format that appears to be available for all is mp4 however this doesnt work for any at least not in any of the mp4 conversions Ive made on any platform. I have tried ogv and at least this will work on PC, but cra...
by wildride
Fri Jan 06, 2017 9:57 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Moving around - help.
Replies: 8
Views: 1653

Re: Moving around - help.

Thankyou, the file you PMed wasnt corrupted. Seems the download was being cut off before finishing from the host as the sizes are all different. 13mb first time, 16mb second attempt (link on forum). Then 28mb from your link, so I dont know what happened as on all occassions chrome says it completed ...
by wildride
Fri Jan 06, 2017 7:31 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Moving around - help.
Replies: 8
Views: 1653

Re: Moving around - help.

The file seems corrupt, downloaded twice and both times gives me an unexpected end to file when trying to unzip. At any rate got the following code which is working fine. screen hall1map: imagemap: ground "hall1map.png" hotspot (540, 260, 100, 100) clicked Jump("hall2") hotspot (...
by wildride
Wed Jan 04, 2017 9:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Moving around - help.
Replies: 8
Views: 1653

Re: Moving around - help.

Thanks Taleweaver for putting it in the correct area. Ive used Enchants method which is working fine for what Im trying to do. Not using the hover or tag parts though. This does still essentially leave me needing 2 images for each location that has more than 1 exit. One with arrows that is shown whe...