Search found 556 matches

by Showsni
Sat Feb 22, 2014 9:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Using Imagemap To Create Mini-Game [SOLVED]
Replies: 14
Views: 2527

Re: Using Imagemap To Create Mini-Game

I think you probably want to use elif here at some point. Instead of saying

Code: Select all

if (blahblahblah):
    do this 
else:
    if (something):
        do that
    else:
        do the other
Try

Code: Select all

if (blahblahblah):
    do this
elif (something):
    do that
else:
    do the other
Does that fix it?
by Showsni
Sat Feb 22, 2014 9:29 pm
Forum: Ren'Py Questions and Announcements
Topic: I lose my items in the Inventory after loading the game
Replies: 5
Views: 1212

Re: I lose my items in the Inventory after loading the game

If the inventory is in an init block, it will lose everything when you reload. If it's after the start label, though, it will save properly. Just make sure anything (variable, list, etc.) you want saved isn't in an init block, and is instead somewhere in the script after the start label.
by Showsni
Fri Feb 21, 2014 1:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Walkthrough on inventory system
Replies: 3
Views: 1106

Re: Walkthrough on inventory system

I'd define the screens at the top; you can do it in screens.rpy, but it's actually fine to do it in any other script file as well. Defining the inventory list needs to be done immediately after the start label, and adding and removing things from an inventory come wherever you want to do it in a gam...
by Showsni
Wed Feb 19, 2014 5:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Expected menuitem Error
Replies: 2
Views: 477

Re: Expected menuitem Error

You'd get this error if you have a menu somewhere without any items in it. Say, if you had

Code: Select all

menu:
    pass
it would show up. You'll need to check the menus in your script and ensure they all have actual choices in them.
by Showsni
Wed Feb 19, 2014 5:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Walkthrough on inventory system
Replies: 3
Views: 1106

Re: Walkthrough on inventory system

It's easy enough to make an inventory; just store the items in it as a list. $ inventory = [] You can add items to it $ inventory.append("hat") and remove items from it $ inventory.remove("hat") Of course, the player can't see any of that going on; so you need some kind of repres...
by Showsni
Sun Feb 09, 2014 6:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Making Multiple Choices in a Menu
Replies: 3
Views: 485

Re: Making Multiple Choices in a Menu

Just stick more choices on the end.

Code: Select all

menu:
    "Choice 1":
        "1!"
    "Choice 2":
        "2!"
    "Chocie 3":
        "You spelled choice wrong."
by Showsni
Wed Jan 22, 2014 8:13 am
Forum: Ren'Py Questions and Announcements
Topic: pop-up text boxes in Renpy
Replies: 9
Views: 4713

Re: pop-up text boxes in Renpy

Hello! I wondered if anyone has found a solution or workaround to this problem. I'm making a game based on an older story (early 1900s) and would like to have definitions for less common words pop up if players roll over the words in question. Nowadays Ren'Py has Tooltip capability, here: http://ww...
by Showsni
Tue Jan 14, 2014 9:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Inventory Class with Quantities? [Solved]
Replies: 11
Views: 3364

Re: Inventory Class with Quantities?

For Alex's code, I think you need to define count as def count(self, item) rather than just def count(item). If you wanted to add an amount to the Item class, you'd do something like init python: class Item(object): def __init__(self, name, cost, description, displayable, amount): self.name = name s...
by Showsni
Tue Jan 14, 2014 6:07 pm
Forum: Ren'Py Questions and Announcements
Topic: UnitEngine and Overlay displayables
Replies: 5
Views: 1208

Re: UnitEngine and Overlay displayables

How about $ renpy.scene(layer='overlay')? I think that would clear the entire overlay layer. The other thing to do is add a variable, like $ showingoverlays = True then to change each overlay so that it has an if showingoverlays: at the start. That way you can just toggle the variable showing overla...
by Showsni
Tue Jan 14, 2014 5:45 pm
Forum: Ren'Py Questions and Announcements
Topic: I need help for this game [Solved]
Replies: 5
Views: 1229

Re: I need help for this game

Okay, I've used that code as the basis to get this working in Ren'Py: First, we need some stuff in an init block. init: python: PEG = '☻' BLANK = '☼' HOLE = '☺' clickrow = 0 clickcol = 0 class Board: #""" This class is responsible to create board and checking board status""&...
by Showsni
Tue Jan 07, 2014 6:25 pm
Forum: Creator Discussion
Topic: RPG/VN hybrid? How are they normally done?
Replies: 13
Views: 2845

Re: RPG/VN hybrid? How are they normally done?

RPGs tend to involve character growth and development through stats, using said stats to affect the outcome of fights between the characters and others, and usually some kind of inventory or items or equipment that can vary stats or be used in battle. (Of course, that's not a definition that would s...
by Showsni
Tue Jan 07, 2014 6:07 pm
Forum: Creator Discussion
Topic: [Urgent] Minigame Integration Help!
Replies: 4
Views: 956

Re: [Urgent] Minigame Integration Help!

(Assuming you're using Ren'Py) Do you have the minigame coded? Ren'Py will run any scripts in the game file, so this could be as simple as copying and pasting minigame.rpy and all its assets into the file (or whatever it's called), then using a jump to get to it and a jump to get back again. (I.e. t...
by Showsni
Sun Jan 05, 2014 9:13 pm
Forum: Ren'Py Questions and Announcements
Topic: I need help for this game [Solved]
Replies: 5
Views: 1229

Re: I need help for this game

It seems like it works for games of Solitaire. It's the actual game of Solitaire (the marble jumping one), not a card game of Patience. ;) Yes, you should be able to programme something like that into Ren'Py, though I don't know how easy it would be. You could either do it in Pygame (which I'm sure...
by Showsni
Sun Jan 05, 2014 9:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Unknown Text Tag in script.rpy
Replies: 4
Views: 4375

Re: Unknown Text Tag in script.rpy

Thank you very much for the quick reply :) but in the code plum "\"Well, maybe some people {i}like{i/} a little excitement pep?" ^ the italic does not have a comma or a full stop The comma and the full stop were part of akemicchi's post! All you need to do is transpose the i and the ...
by Showsni
Fri Jan 03, 2014 1:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [question] use an interpolated transform on 'hover'
Replies: 7
Views: 1511

Re: [question] use an interpolated transform on 'hover'

An image manipulator isn't a transform, so I'm not sure if there even is a way to define a transform using one... You can feed a variable to im.MatrixColor('img.jpg',im.matrix.brightness(.1)), like im.MatrixColor('img.jpg',im.matrix.brightness(mybrightness)), and then run actions upon hovering and u...