Search found 446 matches
- Sat Feb 01, 2014 11:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can't save after a certain point [solved]
- Replies: 5
- Views: 632
Re: Can't save after a certain point
I don't think jumping from a menu is a good idea. Since menus have their own context and it doesn't look like you ever leave that context again. It would be better to use a call screen statement for the item creation screen and then change the subscreens either with show statements or with condition...
- Sat Feb 01, 2014 10:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
How about this? class SortList(Action): def __init__(self, pList): self.list = pList def __call__(self): self.list.sort() return True It sorts the list in place, so it doesn't change any references. As a plus point it also works for lists that aren't directly referenced from the store. Like lists th...
- Sat Feb 01, 2014 7:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
True, it doesn't refer to the old list, but it would still not refer to the same list since you assign a new list to it. So if a,b refer to the same list object and you use sort on a once, a and b will not point to the same list any more. If you'd use sort on a again b wouldn't be affected.
- Sat Feb 01, 2014 7:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
That approach has a drawback though.
If the list is referenced by another name, that name will still point to the old list. Of course that will only cause trouble if there is more than one reference to the list, but it's something to keep in mind.
If the list is referenced by another name, that name will still point to the old list. Of course that will only cause trouble if there is more than one reference to the list, but it's something to keep in mind.
- Fri Jan 31, 2014 1:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Best way to sort a list?
- Replies: 19
- Views: 7527
Re: Best way to sort a list?
You can use the [].sort() method that will sort the list in place.
- Thu Jan 30, 2014 7:32 pm
- Forum: Creator Discussion
- Topic: Cars - legality?
- Replies: 17
- Views: 2434
Re: Cars - legality?
Actually this has nothing to do with copyright, you can't copyright names. Trademark law is probably also not applicable since your not naming your novel after the car. (This may be different in different countries, so take it with a spoonful of salt.) The law that could actually cause problems woul...
- Fri Jan 24, 2014 1:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "unsopported operand += 1"
- Replies: 5
- Views: 2765
Re: "unsopported operand += 1"
Unsupported operand means the operand '+=' is not used in python and therefore renpy. Instead you have to write: peristant.ending = peristant.ending + 1 Try that. I'm sorry but that's wrong. If you look at the actual error it becomes quite evident what the problem is: TypeError : unsupported operan...
- Fri Jan 24, 2014 7:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: "unsopported operand += 1"
- Replies: 5
- Views: 2765
Re: "unsopported operand += 1"
Put this under the start label:
Code: Select all
if not persistent.ending:
$persistent.ending = 0
- Thu Jan 23, 2014 7:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Help with User Choices regarding character's gender
- Replies: 12
- Views: 3050
Re: Help with User Choices regarding character's gender
It has to be like this: menu: "I'm a boy": $ gender = "boy" "I'm a girl": $ gender = "girl" e "So your a %(gender)s? Nice to know!" e "Can you tell me your first name?" You can learn more about indention and logic flow here
- Thu Jan 23, 2014 3:56 pm
- Forum: Creator Discussion
- Topic: Episodic VNs: Is it possible to code a game in episodes?
- Replies: 20
- Views: 4319
Re: Episodic VNs: Is it possible to code a game in episodes?
The process works like this: User downloads episode 1 User extracts episode 1 User starts episode 1 User plays episode 1 User finished episode 1 Game saves variables into the multi persistent object User downloads episode 2 User extracts episode 2 User starts episode 2 Game loads variables from the ...
- Thu Jan 23, 2014 11:41 am
- Forum: Creator Discussion
- Topic: Episodic VNs: Is it possible to code a game in episodes?
- Replies: 20
- Views: 4319
Re: Episodic VNs: Is it possible to code a game in episodes?
Oh! I see! So in order to add the new DLC, is it just that they have to save it inside the renpy folder manually or... how does the user actually add it to their game file? It wouldn't be an ad in like an expansion, instead each episode would be it's own game and they can share data trough the mult...
- Thu Jan 23, 2014 5:19 am
- Forum: Creator Discussion
- Topic: Episodic VNs: Is it possible to code a game in episodes?
- Replies: 20
- Views: 4319
Re: Episodic VNs: Is it possible to code a game in episodes?
You can share data between Ren'Py games with multi-persistence. That's pretty much all you need for an episodic game.
- Sat Jan 18, 2014 5:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How do I continue after an "if" isn't satisfied? (Solved)
- Replies: 2
- Views: 475
Re: How do I continue after an "if" that isn't satisfied?
Your indention is wrong. The correct way is this:
Code: Select all
label spam:
"Text"
if eggs:
"Only if eggs is True"
"Will display even if eggs is False"
- Thu Jan 16, 2014 7:04 am
- Forum: General Discussion
- Topic: List (or filter) of visual novels by quality?(DIWIC?)
- Replies: 82
- Views: 12083
Re: List (or filter) of visual novels by quality?(DIWIC?)
Agreed. And I'm thinking of gearing towards a reviewer system rather than a ranking system. But I think we could still rank the visual novels according to the number of times they were downloaded, and make appropriate rewards pertaining to such. What do you think? How would you get the download num...
- Wed Jan 15, 2014 9:15 am
- Forum: Development of Ren'Py
- Topic: "string indices must be integers, not tuple" [solved]
- Replies: 2
- Views: 2519
Re: "string indices must be integers, not tuple"
imagebutton idle "mark_ground.png" hover "mark_hover.png" Keyword! [mark_all_read, SetVariable("new_messages",0)] Here is a keyword missing. General pointer, when a traceback gives you the line number where things go wrong, you should mark the line in the posts, so peo...