fixed it by using this instead:
default quest_whats_up_with_mom = Quest("Talk to mom", "% been upset lately. Maybe we should watch a movie in the evening?" % ml, True)
Search found 14 matches
- Sat Mar 23, 2024 9:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variable value not showing in quest text.
- Replies: 2
- Views: 813
- Sat Mar 23, 2024 8:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Variable value not showing in quest text.
- Replies: 2
- Views: 813
Variable value not showing in quest text.
Hey guys, I have a quest system and quest hud/screen in my game. The quest code seems to be working fine, except when I open up the quest log, a name variable E.G. [ml] would show up as [ml] and not as their name/value. Everything else works, but adding variables in the text doesn't seem to work. Do...
- Thu Jan 04, 2024 10:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Closing a custom screen chooses a menu item.
- Replies: 4
- Views: 40246
Re: Closing a custom screen chooses a menu item.
Calling a label terminates current statement (in your case a menu statement) by default. I am pretty surprised it actually chose anything instead of skipping menu entirely. Baiscally, don't call stuff if you are not done with stuff on the screen. Thanks for the response. Do you have any idea how I ...
- Thu Jan 04, 2024 6:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Closing a custom screen chooses a menu item.
- Replies: 4
- Views: 40246
Re: Closing a custom screen chooses a menu item.
Ok, I think it has something to do with the returning. When I replace "Return" with "Jump Bedroom" on the function that closes the phone screen, it seems to work fine.
- Thu Jan 04, 2024 6:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: Closing a custom screen chooses a menu item.
- Replies: 4
- Views: 40246
Closing a custom screen chooses a menu item.
Hey guys, I have a phone UI in my game. Whenever I open this UI in a zone with a menu, the last item in the menu is selected. Does anyone have any idea why this might be happening? Here's a video of the bug in action. https://youtu.be/hz1tgVsYOB0 This is the MC's bedroom, where menus are present. la...
- Mon Jan 01, 2024 2:54 am
- Forum: Development of Ren'Py
- Topic: SOLVED: AttributeError: 'int' object has no attribute 'say_label'
- Replies: 1
- Views: 584
Re: AttributeError: 'int' object has no attribute 'say_label'
I had a variable called "style" which messed around with a base renpy variable. Changing that variable fixed everything.
I found this with the "Check Script (Lint) action from the main renpy menu. I didn't even know that existed!
I found this with the "Check Script (Lint) action from the main renpy menu. I didn't even know that existed!
- Mon Jan 01, 2024 1:06 am
- Forum: Development of Ren'Py
- Topic: SOLVED: AttributeError: 'int' object has no attribute 'say_label'
- Replies: 1
- Views: 584
SOLVED: AttributeError: 'int' object has no attribute 'say_label'
Hey guys, This error starting showing up seemingly at random whenever I load a save or scroll the mousewheel to rollback. I've tried troubleshooting for the past hour or two but as im no veteran I just can't figure it out. Here's the ful traceback: I'm sorry, but an uncaught exception occurred. Whil...
- Thu Jun 09, 2022 5:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help with time system
- Replies: 8
- Views: 1123
Re: Need help with time system
It seems like you must have a copy error somewhere? Could you post a copy of *your* version, starting from the 'init python' line? Time's advancing rather weirdly now. I'm not too sure exactly what's causing this (time & day are at the top left): https://www.youtube.com/watch?v=a8vMhi4lNfU&...
- Thu Jun 09, 2022 4:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help with time system
- Replies: 8
- Views: 1123
- Thu Jun 09, 2022 4:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help with time system
- Replies: 8
- Views: 1123
Re: Need help with time system
D'oh. It should be: init python: class day_time: def __init__(self, start_time=0): I'm getting this now O.o I'm sorry, but an uncaught exception occurred. While running game code: File "renpy/common/00start.rpy", line 189, in script python: File "renpy/common/00start.rpy", line ...
- Thu Jun 09, 2022 3:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help with time system
- Replies: 8
- Views: 1123
Re: Need help with time system
Untested, but you might find it easier to work with something like this: ... Keeping time as a constantly-increasing integer, and then computing hours and days and whatever from it as necessary, is how your computer operating system does it. Cheers for this, I'm getting an error though. File "...
- Sun Jun 05, 2022 2:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Need help with time system
- Replies: 8
- Views: 1123
Need help with time system
Hi, So I found this code online and wanted to edit it slightly (I'm quite new to Python): init python: class day_time(object): def __init__(self): self.day = 1 # set this to whatever starting day is self.weekdays = ["Monday","Tuesday","Wednesday","Thursday",&q...
- Wed May 25, 2022 1:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Conditional Menu Items
- Replies: 3
- Views: 547
Re: Conditional Menu Items
Your syntax with the clock.time is wrong, where did you get that from? :D menu: "Casey" if caseyAlive == 1 and clock.time in ["8AM", "9AM", "10AM", "5PM", "6PM", "7PM", "8PM"]: jump Casey "not casey": pass I'm...
- Wed May 25, 2022 12:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Conditional Menu Items
- Replies: 3
- Views: 547
Conditional Menu Items
Hi, I have a menu that hides certain options based on clock.time and whether or not that person is alive: menu: "Casey" if caseyAlive == 1 and clock.time=="8AM", "9AM", "10AM", "5PM", "6PM", "7PM", "8PM": jump Casey &quo...