Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue Jun 18, 2013 10:32 pm

All times are UTC - 5 hours [ DST ]


Search found 250 matches
Search these results:

Author Message

 Forum: Ren'Py Questions and Announcements   Topic: Altering UI elements at Runtime [SOLVED]

Posted: Mon Jun 17, 2013 10:29 pm 

Replies: 12
Views: 101


Scope. The variables inside the function are not the same as the variables in the label. Either pass as parameter or use globals.

 Forum: Ren'Py Questions and Announcements   Topic: 'Name not defined' - probably a really obvious answer

Posted: Sun Jun 02, 2013 6:32 am 

Replies: 7
Views: 84


You're welcome, though you didn't really test my patience at all.

 Forum: Ren'Py Questions and Announcements   Topic: 'Name not defined' - probably a really obvious answer

Posted: Sat Jun 01, 2013 9:37 pm 

Replies: 7
Views: 84


That's the definition of the classes. A class is like a mould, you use it to create objects of that class. In a program we usually (There are exceptions but for now we can ignore them.) work with objects. This: $ my_spellbook = Spellbook() creates a new object of the Spellbook class and assigns it t...

 Forum: Ren'Py Questions and Announcements   Topic: 'Name not defined' - probably a really obvious answer

Posted: Sat Jun 01, 2013 9:14 pm 

Replies: 7
Views: 84


I'd have to see the part where you actually define items.

 Forum: Ren'Py Questions and Announcements   Topic: 'Name not defined' - probably a really obvious answer

Posted: Sat Jun 01, 2013 8:59 pm 

Replies: 7
Views: 84


It's a scope issue. You need to create an instance of Spellbook and then use append on the spells attribute. $ my_spellbook = Spellbook() $ my_spellbook.spells.append(Spell1) This can be problematic if unchecked since you can add multiple copies of the same spell into the spellbook. It would be bett...

 Forum: Ren'Py Questions and Announcements   Topic: [SOLVED] DSE Special event if statement error blank screen.

Posted: Tue May 21, 2013 4:09 pm 

Replies: 6
Views: 88


The = operator is an assignment. The value on the right side is assigned to the name on the left side. If you want to test for equality you use ==. (That's probably the most common mistake in any programming introduction course.) The >= operator will return True if the value on the left side is equa...

 Forum: Ren'Py Questions and Announcements   Topic: Legality of using character

Posted: Tue May 14, 2013 10:49 am 

Replies: 13
Views: 360


We just had a thread about cover songs. Fanfic is illegal under most jurisdictions, but the copyrights holders often do not persecute the fanfic authors. Still that does not mean that you can't get a cease and desist for it. I also read about using a character/song is legal as long as we put the res...

 Forum: Ren'Py Questions and Announcements   Topic: Legality of using character

Posted: Tue May 14, 2013 10:21 am 

Replies: 13
Views: 360


This depends on your jurisdiction and I'm not a lawyer. This is no legal advice, just what I know about copyright laws. If you want to be sure get an appointment at your local lawyer. 1) No it's not. But it's often tolerated. Characters are protected by copyright, even outside of the context of the ...

 Forum: Ren'Py Questions and Announcements   Topic: Multiple flags

 Post subject: Re: Multiple flags
Posted: Tue May 07, 2013 12:12 pm 

Replies: 2
Views: 95


You can chain Truth values together with and.
So for example this:
Code:
if answer1 and answer2:
    "Aren't you smart!"

will only show the dialogue if both variables are True.

 Forum: Ren'Py Questions and Announcements   Topic: updated - how to call a screen from a screen?

Posted: Mon May 06, 2013 2:19 pm 

Replies: 3
Views: 75


def upd_hired_list(): hired_list = [] for n in staff_list: if n.hired == True: hired_list.append(n) return hired_list label start: ###This returns empty list### $ alice.hired = True $ beth.hired = True $ hired_list = upd_hired_list() The problem has to do with namespaces. hired_list inside a functi...

 Forum: Asset Creation: Writing   Topic: Software for drafting plot branches (or general tips)?

Posted: Sun May 05, 2013 6:59 am 

Replies: 11
Views: 384


For general diagram drawing you can use Dia. It's mostly used in the technical field but can be used for general flowcharts as well.

 Forum: Ren'Py Questions and Announcements   Topic: NameError: name is not defined?

Posted: Mon Apr 01, 2013 1:36 pm 

Replies: 2
Views: 77


Image path declaration must be strings.
So like this:
Code:
image bg room = "StartRoom.jpg"

 Forum: Ren'Py Questions and Announcements   Topic: store.object class variable doesn't save

Posted: Sat Mar 30, 2013 4:02 pm 

Replies: 2
Views: 74


Class variables are initiated at class definition time, not during the call. So they are probably not defined in a label. Is there a reason why you have to use class instead of instance variables?

 Forum: Ren'Py Questions and Announcements   Topic: 'finding' an item type of code

Posted: Tue Feb 05, 2013 2:21 am 

Replies: 4
Views: 90


label start: $ items = [] menu: "A": $ items.append("A") "B": $ items.append("B") if "A" in items: "What do you think of A?" "End"

 Forum: Ren'Py Questions and Announcements   Topic: 'finding' an item type of code

Posted: Tue Feb 05, 2013 12:24 am 

Replies: 4
Views: 90


Code:
$ items = []
$ items.append("Itemname")
if "Itemname" in items:


Make sure the indentions are correct. It would be more elegant to put the extra conversation in a separate label and call the label in the if case.
Sort by:  
Page 1 of 17 [ Search found 250 matches ]


All times are UTC - 5 hours [ DST ]


Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group