Search found 61 matches

by bozance
Sun May 01, 2011 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: wildcard question
Replies: 2
Views: 462

Re: wildcard question

I solved it. I just have to clear the variable with $location=[] and then append the new location. I realize this isn't how a list is supposed to be used, but I didn't want to have to create a new actual variable for every room. Not that this method saves that much space probably, but... Anyway than...
by bozance
Sun May 01, 2011 12:39 pm
Forum: Ren'Py Questions and Announcements
Topic: wildcard question
Replies: 2
Views: 462

wildcard question

Hello all, I have the following that shows the player where they are when they enter a location: $location.append("hall") To do this, first I have to remove the previous location from displaying. Is there a way to say $location.remove("x") Where x denotes ANY value? For example, ...
by bozance
Wed Apr 27, 2011 11:27 pm
Forum: Ren'Py Questions and Announcements
Topic: making inventory work
Replies: 9
Views: 1401

Re: making inventory work

Cool, it works. Thanks for the help.

I'd like to be able to help others out in return, but I swear I don't know the first thing beyond jump, call, and if statements. Amazing that my game is turning out well regardless. Hope I didn't just jinx it by saying that.
by bozance
Tue Apr 26, 2011 1:32 pm
Forum: Ren'Py Questions and Announcements
Topic: making inventory work
Replies: 9
Views: 1401

Re: making inventory work

Does that mean I can just put

$inv=[]

under the Start label?

Can I then put specify the frame (screen statsinv) after that?
by bozance
Sun Apr 24, 2011 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: making inventory work
Replies: 9
Views: 1401

Re: making inventory work

I don't care about the player actually "having" the inventory items. I'm only looking to display the items in a frame and having the items remain displayed upon loading a saved game.

Maybe it can't be done, but... seems like it should be simple to do.
by bozance
Sun Apr 24, 2011 12:49 pm
Forum: Ren'Py Questions and Announcements
Topic: making inventory work
Replies: 9
Views: 1401

Re: making inventory work

There must be a way to make it work. I see a tutorial in the cookbook but I'm not able to make it work with my "show screen statsinv" frame.

If someone knows an answer I'd be very grateful. Anybody...?
by bozance
Sat Apr 23, 2011 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: making inventory work
Replies: 9
Views: 1401

making inventory work

I'm having trouble making inventory persist between a save and a load. In my init section I have: screen statsinv: hbox: yalign 0.95 xpos 0.022 xfill True text("{size=16}{color=#5f9ea0}inv: {/color}{/size}"+"{size=16}{color=#5f9ea0}, {/color}{/size}".join(inv)) In one topic I hav...
by bozance
Tue Apr 12, 2011 10:04 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

Okay, scratch that. I had some extra test variables in there that were screwing things up.

If I use "if mp.xp is None..." the game saves with some additional xp that shouldn't be there; if I don't, it resets to zero.

Back to the drawing board I guess. I appreciate your help...
by bozance
Tue Apr 12, 2011 9:46 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

Interesting... it makes the game start with the existing (non-zero) xp amount, even when I delete persistent. I'm thinking I can make it all work with regular variables and just substitute in some $mp. variables at the end of the game? Couldn't I just have $xp=100 and then say $mp.xp=xp in the final...
by bozance
Tue Apr 12, 2011 9:28 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

Hmmm... I declare regular variables before Start and they seem to save/load normally? As for something like $mp.xp... do you mean I would declare $mp.xp=0 before "Start" and then after "Start" do something like if mp.xp = 0: $ mp.xp = I don't even know what I would put in there. ...
by bozance
Tue Apr 12, 2011 4:41 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

I'm just putting the variables in like

$mp.xp=0
$mp.xpmax=200

Along with other regular variables, in the same way.
by bozance
Tue Apr 12, 2011 9:52 am
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

To elaborate: I want a character's experience points to accumulate throughout a game, and then carry over to the next game. If I use $mp.xp, the xp value does not save in between the time I save and then load a game. A normal variable like $xp does the trick. So I think if I want the xp to carry ove...
by bozance
Tue Apr 12, 2011 12:11 am
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

Hmm... I admit I don't know about persistent variables. I'm interested in normal variables but also in making those normal variables persistent when the user has completed the game. Upon opening another project, a completely different game/sequel, those normal variables will have multi-persisted. I ...
by bozance
Mon Apr 11, 2011 11:55 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

I guess I should just be using the $mp.save() for persistence of data from one game to another. That does work. For persistence of variable values within one game, I'll stick with regular variables.

Does that make sense?
by bozance
Mon Apr 11, 2011 11:25 pm
Forum: Ren'Py Questions and Announcements
Topic: help! values aren't preserving
Replies: 14
Views: 1151

Re: help! values aren't preserving

Tried it but no dice... I must not know what I'm doing.

$mp.xp+=1
$mp.save()
show screen stats1

I also put the save after "show screen stats" but it still resets to 0 on load.

Bear in mind that I don't really know what I'm doing beyond simple jump and call statements.