[Solved]Changing renpy varible within a python codeblock
Posted: Fri Oct 14, 2016 10:04 am
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 a python block i refer to a var named item_used and modify the varible. It simply wont change the var.
My theory is that the renpy and python vars even though same name are 2 different vars. Is there a work around for this?
Best regards
// Hurrdurr
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 a python block i refer to a var named item_used and modify the varible. It simply wont change the var.
My theory is that the renpy and python vars even though same name are 2 different vars. Is there a work around for this?
Best regards
// Hurrdurr