Search found 99 matches
- Tue Apr 10, 2018 8:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: NameError: name not defined?
- Replies: 2
- Views: 981
Re: NameError: name not defined?
Define in this case means to create a variable. You only need to do that once, and it's probably a good idea to do so with default statement instead of define. As for the error, it's because you're trying to set date to a variable called jacob, but since that variable hasn't been created, it throws ...
- Mon Apr 09, 2018 8:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: About Atom editor and Ren'Py
- Replies: 10
- Views: 5345
Re: About Atom editor and Ren'Py
Thank you everyone for your input, I didn't know Editra was discontinued and Sublime's random pop ups (I'm still using trial version) are indeed a little annoying, so I decided to give Atom a try, there are a few things that I'll have to get used to (like the color schemes until I find how to change...
- Fri Apr 06, 2018 8:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: About Atom editor and Ren'Py
- Replies: 10
- Views: 5345
About Atom editor and Ren'Py
So now there's a new option to download the Atom script editor with Ren'Py support, I've used Atom some time ago and it is quite nice, however I've noticed that the one in the Renpy website it is a 132 mb download, and I remember the old Atom I had was a lot smaller (like 30-50mb maybe). I'm rather ...
- Thu Apr 05, 2018 1:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Storing several variables (Making titles via leveling)
- Replies: 9
- Views: 1243
Re: [Solved] Storing several variables (Making titles via leveling)
I'm sorry my code didn't work, strangely it did when I tested it, anyway I'm glad Remix gave a much better solution, honestly I didn't know about @property so I'll have to take a look soon.
- Wed Apr 04, 2018 9:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: Set different dialogue colours for different characters?
- Replies: 2
- Views: 215
Re: Set different dialogue colours for different characters?
Can be done easily using styling prefixes, specifically what_color.
More on that here, under Styling Text and Windows.
Code: Select all
define e = Character("Eileen", what_color="#8c8")
label start:
e "Hey, my text is green!"
- Wed Apr 04, 2018 9:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Storing several variables (Making titles via leveling)
- Replies: 9
- Views: 1243
Re: Storing several variables (Making titles via leveling)
What are you doing to actually change the player's level? Each time the level variable is updated, the lv check should be run afterwards so the rank is also changed, than means that if statement must be repeated many times. You have to make it so every time the player gains a level, the game checks ...
- Tue Apr 03, 2018 8:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Strange AF bug
- Replies: 9
- Views: 683
Re: Strange AF bug
It may be a bug in most recent prerelease, I'm still in 6.99.14.1, my current project uses a lot of lists and I haven't experienced any strange behavior. I used this to test (and it's an example of some simple ways to use list in Ren'Py): default ls = [0,5,"Test",True,None] screen test(): frame: has...
- Mon Apr 02, 2018 8:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Nested Screens / Screen refreshing
- Replies: 2
- Views: 1415
Re: Nested Screens / Screen refreshing
You could try changing the variable directly in the screen by using SetDict or maybe SetField, I'm not sure in this case since I don't know the rest of your code, but assuming that character.action is a dictionary, you can do something like this in your choose_action screen: for option in action_opt...
- Mon Mar 26, 2018 1:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "brightness pulse" when a character starts talking?
- Replies: 16
- Views: 5062
Re: "brightness pulse" when a character starts talking?
To use im.matrix.brightness you have to create a new image object. Something like this: image eileen bright = im.MatrixColor("eileen.png",im.matrix.brightness(.2)) To have it just blink for a few seconds, you could make the image an ATL block: image eileen pulse: "eileen.png" pause .2 im.MatrixColor...
- Mon Mar 26, 2018 10:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to put a button on top of an image
- Replies: 3
- Views: 497
Re: How to put a button on top of an image
activate_sound is a button property, although it does call a function, it's not a function itself. TC used it correctly. The problem seems to be that arguments in both screens are mixed up. In the first screen you are making the list from an unexisting options variable, that I suppose is the argume...
- Thu Mar 22, 2018 3:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Hide textbox, character images while inventory/stat screen is shown
- Replies: 4
- Views: 560
Re: Hide textbox, character images while inventory/stat screen is shown
There are possibly other ways to do this, but you can use two screens, one to show the phone button, and different screens to show the stats and other menus, that can be invoked by that button with the ShowMenu screen action. screen phone_button(): textbutton "My Stats" action ShowMenu('phone_menu')...
- Thu Mar 22, 2018 1:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Imagemap - Selecting more than one
- Replies: 2
- Views: 469
Re: Imagemap - Selecting more than one
Using imagebutton, did you try setting the focus_mask property to True? Doing so make its so only non-transparent areas of the button are clickable, if that was the problem you had with imagebutton.
- Thu Mar 22, 2018 12:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Python function not changing variable's value, but works with renpy functions
- Replies: 3
- Views: 2142
Re: Python function not changing variable's value, but works with renpy functions
Oops, sorry, that's why I wrote that last line about being careful with the arguments as they cannot be the same as the variable you're accessing, and I forgot to edit my code.
- Thu Mar 22, 2018 10:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: [FIXED]How make multiple "if" statements for choices (and other promblems)
- Replies: 11
- Views: 4576
Re: [STILL NOT FIXED]How make multiple "if" statements for choices (and other promblems)
default is a special word used in Renpy for creating variables, you only need to use it once, and it is only used to set variables to an initial, 'default' value, that means, not to add or substract, only to set. If you want to do those operations, in the script, that's when you use the $ sign. Take...
- Thu Mar 22, 2018 9:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: Python function not changing variable's value, but works with renpy functions
- Replies: 3
- Views: 2142
Re: Python function not changing variable's value, but works with renpy functions
In the function code as you have it, the last line is creating a local variable and setting it to None. If you want to modify an external variable (declared with default) you must use global statement: default selected_item = None #default declaration init python: def discardItem(inventory): global ...