Search found 40 matches

by nhguy03276
Sat Mar 24, 2018 2:08 am
Forum: Ren'Py Questions and Announcements
Topic: Help in deleting the contents of an array at the end of a conversation.
Replies: 3
Views: 218

Re: Help in deleting the contents of an array at the end of a conversation.

Thank you. That appears to work. It is funny how sometimes your mind gets stuck, and I just didn't see a solution... Also, this is the second programming language in the last 2 months I've encountered without a For each loop... I can't fathom why... For each loops can be so useful at times.
by nhguy03276
Fri Mar 23, 2018 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Help in deleting the contents of an array at the end of a conversation.
Replies: 3
Views: 218

Help in deleting the contents of an array at the end of a conversation.

I'm probably just being dense again, but the lack of a Foreach loop in the main program has really gotten stumped. Essentially, I want to reset my vendors inventory after the conversation is done. I normally would use something like: Foreach item in vendor.items[]: vendor.drop[item] but of course, i...
by nhguy03276
Sun Mar 18, 2018 8:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Variable issue. I'm hoping this has a simple solution.
Replies: 1
Views: 212

Re: Python Variable issue. I'm hoping this has a simple solution.

Ok, Found the solution... at least for this issue....

inventory.add (equiparmor.items[0])

Took me far longer to figure out than it should have... But it works now.
by nhguy03276
Sun Mar 18, 2018 3:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Variable issue. I'm hoping this has a simple solution.
Replies: 1
Views: 212

Python Variable issue. I'm hoping this has a simple solution.

So I've run into a bit of a snag in my inventory system I am working on. I'm trying to make equippable items panel, and so far it has been working as intended... except when trying to replace the already equipped item... To add a item to inventory I'm using the call: Inventory.Add(LeatherArmor) To d...
by nhguy03276
Thu Nov 05, 2015 3:57 am
Forum: Ren'Py Questions and Announcements
Topic: Splitting A string Variable into multple variables
Replies: 2
Views: 366

Re: Splitting A string Variable into multple variables

I'd suggest using a tuple, but if you really want a string, you could just us python's sequence slicing syntax. (Search "slice" on this page: https://docs.python.org/2/tutorial/introduction.html#strings) $ s = "X23Y10Z4" $ locx = s[1:3] $ locy = s[4:6] $ locz = s[7:] Thanks, that works wonders... I...
by nhguy03276
Wed Nov 04, 2015 1:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Splitting A string Variable into multple variables
Replies: 2
Views: 366

Splitting A string Variable into multple variables

Seems silly I can't find the info myself... I've found pages on config. variables, environmental, global, and all sorts of other variables, yet I simply can't find the docs to basic user variable controls... I'm also almost out of time to search today, gotta head to work soon, so I'll ask where you ...
by nhguy03276
Tue Oct 27, 2015 4:36 am
Forum: Ren'Py Questions and Announcements
Topic: Image button navigation... Am I making a monster?
Replies: 3
Views: 346

Re: Image button navigation... Am I making a monster?

Well, if you're making a 350 section maze, it's inevitable that it will be a lot of code, I guess, but there's got to be a way to code it with less hassle. Have you looked at Wolf's and nyaatrap's 3d dungeon crawler code? http://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=32260 http://lemmasoft....
by nhguy03276
Mon Oct 26, 2015 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Image button navigation... Am I making a monster?
Replies: 3
Views: 346

Image button navigation... Am I making a monster?

My Project: A Choose your Own Adventure merged with a story and a semi-open world. A important location in the story/game is the city's storm drains, a maze of tunnels with several entrance/exit points, designed to confound typical maze solving techniques and confuse/disorientate the player, such as...
by nhguy03276
Sun May 17, 2015 3:58 pm
Forum: Ren'Py Questions and Announcements
Topic: ATL Block code Strip help. mainly Framerate
Replies: 6
Views: 726

Re: ATL Block code Strip help. mainly Framerate

In case anyone needs it for the future, here is a bit of code for some random image display. It's a bit rough, and I'm still not sure of the math that makes the pause/frate/display display properly, but it works. init python: import random import math def PortraitStrip(st, at, image, width, frames, ...
by nhguy03276
Sat May 16, 2015 3:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple DynamicDisplayables, Am I at the limits of renpy?
Replies: 5
Views: 809

Re: Multiple DynamicDisplayables, Am I at the limits of renp

Come on... you can display hundreds of displayable at any one time, engine doesn't give a damn if they are animated or not. You'll be limited by hardware at some point but two animations should hardly present an issue unless they have some insane resolution. show displayable1 show displayable2 is a...
by nhguy03276
Sat May 16, 2015 12:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple DynamicDisplayables, Am I at the limits of renpy?
Replies: 5
Views: 809

Re: Multiple DynamicDisplayables, Am I at the limits of renp

I don't know about your project, but I have a clock dynamic displayable that I created. To check out your questions I just created a project where I would have two clocks showing on my clock screen. That works for me. So maybe there is something else going on with you? It's entirely possible I'm mi...
by nhguy03276
Sat May 16, 2015 12:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple DynamicDisplayables, Am I at the limits of renpy?
Replies: 5
Views: 809

Multiple DynamicDisplayables, Am I at the limits of renpy?

So I've yet again hit another snag, but think I might be at the limits of the renpy render engine for doing what I want. So before abandoning the idea, or wasting too much time on trying to make it work, can you display 2 dynamicdisplayables at the same time? Here's the hopeful plan: I have an anubi...
by nhguy03276
Sat May 16, 2015 8:23 am
Forum: Ren'Py Questions and Announcements
Topic: Properly using imagemaps in game
Replies: 9
Views: 2081

Re: Properly using imagemaps in game

As your primary question has already been answered, I just want to mention if you haven't already committed yourself to imagemaps, you might want to consider imagebuttons. I was in a similar situation as you in wanting a click based exploration of my world using imagemaps. It was mostly working, but...
by nhguy03276
Thu May 14, 2015 8:04 pm
Forum: Ren'Py Questions and Announcements
Topic: ATL Block code Strip help. mainly Framerate
Replies: 6
Views: 726

Re: ATL Block code Strip help. mainly Framerate

Well, I'm honestly crap at any of the actual rendering engine stuff, but I poked around the code in the cookbook and this seems to work. def PortraitStrip(st, at, image, width, frames, speed=1): f = min([frames, math.trunc(st * speed * 10)]) frame = im.Crop("graphics/char/%s" % image, (f * width, 0...
by nhguy03276
Wed May 13, 2015 8:42 pm
Forum: Ren'Py Questions and Announcements
Topic: ATL Block code Strip help. mainly Framerate
Replies: 6
Views: 726

Re: ATL Block code Strip help. mainly Framerate

I believe he's trying to use this Cookbook recipe: http://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=30279 Yes that is where I got the base code from. Any reason you're not using Filmstrip, which has a built-in delay parameter? http://www.renpy.org/wiki/renpy/doc/reference/functions/anim.Filmst...