Thank you changing it to def stat_maxhealth(): seems to of fixed itAlex wrote:Give different names to function and to variable to not to confuse Ren'Py.
Search found 30 matches
- Sun Jun 19, 2016 9:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: python script causing Shift+R error
- Replies: 4
- Views: 564
Re: python script causing Shift+R error
- Fri Jun 17, 2016 10:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: python script causing Shift+R error
- Replies: 4
- Views: 564
Re: python script causing Shift+R error
config.python_callbacks.append(maxhp) Should be outside of the maxhp function, so indented one level less. I now have this but I still get the error when I try to reload init python: def maxhp(): try: if store.maxhp < 0: store.maxhp = 0 elif store.maxhp > 400: store.maxhp = 400 except: pass config....
- Fri Jun 17, 2016 11:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: python script causing Shift+R error
- Replies: 4
- Views: 564
python script causing Shift+R error
So using this code causes this error when I try to use Shift+R and I don't know why init python: def maxhp(): try: if store.maxhp < 0: store.maxhp = 0 elif store.maxhp > 100: store.maxhp = 100 except: pass config.python_callbacks.append(maxhp) I'm sorry, but an uncaught exception occurred. While run...
- Mon Jun 13, 2016 9:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: Bar colour
- Replies: 1
- Views: 489
Bar colour
So I was wondering if it is possible to change the colour of my bar from this http://puu.sh/prazX/50795b9223.png to a red colour this is my code so far any help would be great screen Steve_Health: frame: ypos 670 xpos 690 has vbox hbox: label "Steve Health:" xminimum 100 bar range Stevehpm...
- Fri Jun 03, 2016 4:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: I have a question about a sort of menu
- Replies: 3
- Views: 517
Re: I have a question about a sort of menu
Another thing is there any way to give it a second page or would it just be easier making another screen that when you click a button it hides the current and shows another?
- Wed Jun 01, 2016 5:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: I have a question about a sort of menu
- Replies: 3
- Views: 517
Re: I have a question about a sort of menu
Thanks for that m8philat wrote:You don't show how you're keeping track of the number of items in your inventory. In general, however, assuming that it's a variable, you would just add it to the tooltip.
Something along the lines of
hovered tt.Action("K\n[number_of_K]")
- Tue May 31, 2016 5:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: I have a question about a sort of menu
- Replies: 3
- Views: 517
I have a question about a sort of menu
Ok so what I am trying to set up is a menu that shows a image and when you hover over the image it gives a description, but I also want it to show the number of that item you have. This is what I have so far screen inventory_screen: key "w" action Hide("inventory_screen") default...
- Sun Feb 07, 2016 12:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: wardrobe and possessions
- Replies: 1
- Views: 829
wardrobe and possessions
Hi guys so basically what I want to add to my game is some sort of button system show in the video below for a item system as well as a wardrobe system so you can change their clothes and give them items/clothes you buy from the store. I Have little knowledge of ren'py coding I can make a basic talk...
- Tue Dec 22, 2015 8:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: Gui shop menu
- Replies: 3
- Views: 661
Re: Gui shop menu
We've had a bunch of discussions on paging: Like here: http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=32526&hilit=paging Or this is prolly one of the simplest paging codes (this is plain logic, this can be improved with If() screen action and possibly modulo in favor of + for paging i...
- Sat Dec 19, 2015 10:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Gui shop menu
- Replies: 3
- Views: 661
Gui shop menu
Hello I am trying to set up a image map shop in my game where you can click on the item and it will ask if you would like to but the item. I was wondering because I am a beginner at ren'py would it be possible to set it up like a shop catalogue where you can go threw the items page by page, if so ho...
- Wed Dec 02, 2015 1:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: Combining items problem
- Replies: 1
- Views: 1016
Combining items problem
Hello So I was for the last to days I have been trying to get Leon's crafting system to work. I got the fisrt part to work but when I tried the seconed part to remove both items when crafting I get this error I'm sorry, but an uncaught exception occurred. While running game code: File "game/scr...
- Mon Nov 30, 2015 4:24 am
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 103948
Re: Inventory Screen
Hi when I try and click combine it get this error log I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 221, in script s"O hello there" File "renpy/common/00action_other.rpy", line 430, in __call__ rv = self.callable(*s...
- Mon Nov 30, 2015 1:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]TypeError: argument of type 'Recipe' is not iterable
- Replies: 8
- Views: 1910
Re: TypeError: argument of type 'Recipe' is not iterable
Would you be able to post a rar file with you working inventory please?
- Thu Nov 26, 2015 5:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Digital Clock Question
- Replies: 3
- Views: 799
Re: Digital Clock Question
I don't know how to set the clock to 12 hours, but here the way to get your outlines effect. screen date_overlay: $ day = (time_in_minutes / 60 / 24) % 28 $ month = (time_in_minutes / 60/ 24 / 28) % 12 text ("Day%d %d" % (day, month)): pos (667, 60) color "000" outlines [(2, &qu...
- Thu Nov 19, 2015 6:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: Digital Clock Question
- Replies: 3
- Views: 799
Digital Clock Question
Hello I am new to this website and ren'py but I was reading over this post http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=8154 and I was wondering is there any way to change the time from 24 hour to 12 hour with am and pm cycles any help would be greatly appreciated. Also is it possible to...