Search found 4 matches

by Hurrdurr
Fri Oct 14, 2016 10:33 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Changing renpy varible within a python codeblock
Replies: 4
Views: 630

Re: Changing renpy varible within a python codeblock

Thank you so much.

I will mark the post as resolved.
by Hurrdurr
Fri Oct 14, 2016 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: Bug Replications
Replies: 35
Views: 77390

Re: Bug Replications

Does renpy have support for unit testing? If so you could set up testcases Test driven development is awesome, its a bit of a headache to set up but once its done you can refactor the code as much as you want and you get instant feedback on what doesnt work and why.
by Hurrdurr
Fri Oct 14, 2016 10:25 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Changing renpy varible within a python codeblock
Replies: 4
Views: 630

Re: Changing renpy varible within a python codeblock

script.rpy init: used_item = "test1" inventory.rpy init -1 python: def item_use(): used_item = "test2" screen inventory_screen: some irrelevant code imagebutton xpos x ypos y action [item_use()] label.rpy examplechar "[used_item]" expected that it should print "tes...
by Hurrdurr
Fri Oct 14, 2016 10:04 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Changing renpy varible within a python codeblock
Replies: 4
Views: 630

[Solved]Changing renpy varible within a python codeblock

Alright so i'm working on this project, and I have created an inventory system. I am however having some issues with modifying renpy vars within a python codeblock. It's not giving me any errors it just does not seem to modify the var. If i have a renpy var and give it the name item_used and within ...