Search found 6 matches

by JustaHelpfulLurker
Mon Dec 20, 2021 1:08 am
Forum: Ren'Py Cookbook
Topic: Adding Stats to Characters ... easily
Replies: 33
Views: 32903

Re: Adding Stats to Characters ... easily

So for the inventory system, how do I actually get the quantity of an item? I'd like to be able to use it in expressions, but something like char.item['amount'] doesn't work at all.
by JustaHelpfulLurker
Tue Aug 10, 2021 1:51 am
Forum: Ren'Py Cookbook
Topic: Adding Stats to Characters ... easily
Replies: 33
Views: 32903

Re: Adding Stats to Characters ... easily

EDIT: Nevermind.
by JustaHelpfulLurker
Sun Jan 12, 2020 8:54 pm
Forum: Ren'Py Cookbook
Topic: Adding Stats to Characters ... easily
Replies: 33
Views: 32903

Re: Adding Stats to Characters ... easily

Okay, so after some tinkering, would this code still work? (Sorry, I'd test it myself, but don't own a computer anymore. All I have left is a tablet.) init python: class CharacterStats(BaseStatsObject): STAT_DEFAULTS = { 'gender' : 'f', 'age' : 22, 'affection' : 1 } @property def color(self): return...
by JustaHelpfulLurker
Tue Nov 26, 2019 12:43 am
Forum: Ren'Py Cookbook
Topic: Adding Stats to Characters ... easily
Replies: 33
Views: 32903

Re: Adding Stats to Characters ... easily

Would it be possible to show a character's name with their color/who_affixes included? ( i.e. The way they would be styled in a say statement. ) For example: define character.a = Character("Amber", color="#F9A", who_prefix="Miss ") default a = CharData("a") label test: "Expected: {color=#F9A}Miss Am...
by JustaHelpfulLurker
Mon Jan 15, 2018 2:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Displaying consecutive notifications
Replies: 3
Views: 870

Re: Displaying consecutive notifications

Try this (not tested): screen my_notify(messages): for n, i in enumerate(messages): timer n*4 action Notify(i) label start: show my_notify(["This is the first message", "This is the second Message", "This is the third message"]) pause Thank you! It worked after a couple changes. This is what it loo...
by JustaHelpfulLurker
Mon Jan 15, 2018 12:31 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Displaying consecutive notifications
Replies: 3
Views: 870

[Solved] Displaying consecutive notifications

I’m trying to display several notifications consecutively, without using renpy.pause (since that delays everything , not just notifications). This is the code I have now: $ renpy.notify("Message 1") $ ui.timer(3.25, Notify("Message 2")) Unfortunately, it seems clicking interrupts the timer, preventi...