Search found 96 matches

by UselessCoder
Tue Mar 08, 2016 8:42 am
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

Anyway I've found out the solution to my problem on my own: [stats[ENE]] . That's was what all the fuzz was about. I post it here for anyone who might have issues with it, or showing symptoms of "lacking of understanding" and because that's what I believe a forum spirit should be like . Be...
by UselessCoder
Tue Mar 08, 2016 6:30 am
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

What seems to be lacking is your understanding of ground level basics Well Mobychan, I followed xela suggestion and, according to the solutions given in the topics, some of the authors shown pretty much the same "lacking of understanding". But other than that, I couldn't find anything rel...
by UselessCoder
Mon Mar 07, 2016 4:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

hbox: spacing 10 xpos 1145 ypos 78 $ s = stat["KNO"] text "{color=#FFFFFF}{size=-6}[s]/[max_kno]{/size}{/color}" May I suggest at this point that you take some time to go through the documentation and read a couple of post on the subject? There are posts and docs covering interp...
by UselessCoder
Mon Mar 07, 2016 2:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

Nothing...it seems like I cannot call the stats from the statement. I know it is just me but it's kinda getting frustrating now. lol tried this: hbox: spacing 10 xpos 1145 ypos 78 text "{color=#FFFFFF}{size=-6} $ stats[KNO]/[max_kno]{/size}{/color}" and multiple variations of that...but no...
by UselessCoder
Mon Mar 07, 2016 1:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

If you're checking values use two equal signs and no need for the $: if stats ["ENE"] == 0: "No can do. I'm too tired, I need some sleep..." jump home elif stats ["ENE"] >= 0: "You've earned 100 euros!" Thanks! it perfectly worked like this: "test stats ...
by UselessCoder
Mon Mar 07, 2016 10:23 am
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

1) $ stats["ENE"] += 10 2) I understand what you're asking but don't understand why you're having problems, bars are nothing special, you can put texts with name and values at any position near or even right on top of them using the normal positioning rules... Thanks Xela...So I was right...
by UselessCoder
Mon Mar 07, 2016 8:02 am
Forum: Ren'Py Questions and Announcements
Topic: Energy bars and Stat menus question
Replies: 15
Views: 2522

Re: Energy bars and Stat menus question

screen meow(): vbox: align (1.0, 0) spacing 10 bar: xsize 200 value stats["HP"] range 100 frame: xsize 200 has vbox for stat in sorted(stats.keys()): fixed: xysize (180, 20) text "[stat]:" xalign 0 $ stat = stats[stat] text "[stat]" xalign 1.0 label start: $ stats = {&...
by UselessCoder
Sun Mar 06, 2016 10:02 am
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Re: Money displaying "K" for thousands and "M" for millions

Simpler/More convenient version: This has been of great help, indeed! :D And tbh, I think that alone would do just right. OT: That's because I'm at the Omega stage of my project and all I'm doing now is figuring out how to partially prevent users from exploiting some game dynamics and screwing the ...
by UselessCoder
Sun Mar 06, 2016 6:26 am
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Re: Money displaying "K" for thousands and "M" for millions

Don't worry. What you need to do is to normally update the money variable. Like this: $ money +=25 Then call again the function. $ mymoney=human_format(money) Money is the actual value, mymoney how is represented on the screen. Omg yes...I totally forgot to add the formatting string, how was it sup...
by UselessCoder
Sun Mar 06, 2016 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: Always displaying Imagebuttons...
Replies: 5
Views: 655

Re: Always displaying Imagebuttons...

You prolly want to increase the zorder of your stats screen. Also: imagebutton: # MONEY. xpos 1200 ypos 45 focus_mask None xanchor "center" yanchor "center" idle "icons/money.png" Doesn't really need to be a button: add "icons/money.png" pos 1200, 45 anchor ....
by UselessCoder
Sat Mar 05, 2016 7:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Re: Money displaying "K" for thousands and "M" for millions

Well, indeed it's easy. And the only way to do it without errors. Put this function somewhere, like at the end of the options.rpy file. init python: def human_format (num): magnitude = 0 while abs(num) >= 1000: # until the absolute value is greater than 1000... magnitude += 1 #...increase the magni...
by UselessCoder
Sat Mar 05, 2016 6:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Always displaying Imagebuttons...
Replies: 5
Views: 655

Re: Always displaying Imagebuttons...

I've changed something and it doesn't work anymore.

I've found out that the ground.jpg image of the imagemap covers the stats screen.

How can I set the stats screen to be displayed on the overlay layer? :(
by UselessCoder
Sat Mar 05, 2016 1:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Re: Money displaying "K" for thousands and "M" for millions

Hi Gas and thanks for looking into this.

Wow. That looks pretty much like rocket science to me, but I'll try to look into that...Thanks a lot tho! :)
by UselessCoder
Sat Mar 05, 2016 1:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Re: Money displaying "K" for thousands and "M" for millions

Can you not just do something like this? if money < 1000: text "[money]" if money >= 1000 and money < 1000000: text "([money]/1000) K" if money >= 1000000: text "([money]/1000000) M" Hi SundownKid and thanks for looking into this! I got good and bad news about your cod...
by UselessCoder
Sat Mar 05, 2016 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: Money displaying "K" for thousands and "M" for millions
Replies: 11
Views: 1289

Money displaying "K" for thousands and "M" for millions

Hi everybody! I'm trying to tweak my money displayable but what I have in mind didn't work so far. :lol: Let me first tell you how my money variable works, it's pretty basic: in scripts.rpy: init: $ money = 99999 label start: show screen money in screens.rpy screen money: imagebutton: # MONEY. xpos ...