Yes it works properly now!
Thank you very very much for your help Divona!
Search found 24 matches
- Sat May 13, 2017 1:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: help with transfering string from init to renpy texbox
- Replies: 2
- Views: 423
- Sat May 13, 2017 1:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: help with transfering string from init to renpy texbox
- Replies: 2
- Views: 423
help with transfering string from init to renpy texbox
Hello Fellow Renpy users, I have some difficulty interpolating some text from a init block to the renpy text box. I am made a method to take items from a defeated enemy. code: init python: def takeitem(): global drmessage itemdr=enemy2.item1 if itemdr.amount < itemdr.maxamount: itemdr.amount += 1 dr...
- Thu Mar 02, 2017 2:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: help with screen to displays random messages
- Replies: 8
- Views: 1552
Re: help with screen to displays random messages
Ok let's simplify everything. You want for the sphere to say something based on the mood value. If you set mood=1 in a label, renpy put at 1 each time he reach again that label. So, define it at first OUTSIDE the normal course of events. Then use a list to link the various conditions to the variabl...
- Wed Mar 01, 2017 6:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: help with screen to displays random messages
- Replies: 8
- Views: 1552
Re: help with screen to displays random messages
Thank you very much all of you, The correction of R_sami is working, and Gas method also, need to try Givona's yet. However I tried to make a similar function without random for another feature of the glass ball, where i want it to change color and size according to certain events like what the play...
- Tue Feb 28, 2017 9:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: help with screen to displays random messages
- Replies: 8
- Views: 1552
Re: help with screen to displays random messages
You could use a python function instead. Possibly something like this: init python: import random #need the module def ballgaze(): #the function ball = random.randint(1, 4) if ball == 1: return "Today its going to Rain heavily., but stay focused on your purpose" if ball == 2: return "...
- Tue Feb 28, 2017 7:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: help with screen to displays random messages
- Replies: 8
- Views: 1552
help with screen to displays random messages
Hello Fellow Renpy users, I am working on this game where I have a screen that opens to display certain random messages, its a Krystal ball whom the player can take it out of its pocket peer in it and get a random message. Here is part of the code: label ballgaze: $ ball = renpy.random.randint(1, 4)...
- Wed Oct 05, 2016 5:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem returning from label, game returns to main or error
- Replies: 5
- Views: 1013
Re: Problem returning from label, game returns to main or er
Thank you for your Help Trooper6.
Yes, Hehehe, I knew of the keep buying without money part.
Actually I loaded the code unfinished since I was stuck with that problem. I wanted to sort it out first.
Once again thanks, I really learned a lot from your help.
Yes, Hehehe, I knew of the keep buying without money part.
Actually I loaded the code unfinished since I was stuck with that problem. I wanted to sort it out first.
Once again thanks, I really learned a lot from your help.
- Mon Oct 03, 2016 6:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Problem returning from label, game returns to main or error
- Replies: 5
- Views: 1013
Re: Problem returning from label, game returns to main or er
I have tried your code and use 'ui.callsinnewcontext' with no issue. So I'm wondering if the error that you get is from somewhere else in the code. The "list of indices must be integers not tuple" error sound like something to do with variable. Could you post up traceback of the error, so...
- Mon Oct 03, 2016 6:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem returning from label, game returns to main or error
- Replies: 5
- Views: 1013
Problem returning from label, game returns to main or error
Hello fellow Renpy users, I have a problem with this game I am making where after the player opens the bag to eat the item inside the game returns to main menu, instead of returning to its previous line/place, I was using Jump. By searching through the forum I understood that the call function is on...
- Sun Oct 02, 2016 9:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to display content of a dictionary
- Replies: 6
- Views: 825
Re: How to display content of a dictionary
# Declare characters used by this game. define e = Character('Eileen', color="#c8ffc8") default bag = {} default coins = 25 # The game starts here. label start: "Yeah I must go buy 3 packets of macaroni 2 jars of green olives and 1 cheese block" menu buy: "You have [coins] ...
- Sat Oct 01, 2016 9:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to display content of a dictionary
- Replies: 6
- Views: 825
Re: How to display content of a dictionary
This code will work for you. But you really should just check the Python documentation (or take the python beginners course at codeacademy.com): # Declare characters used by this game. define e = Character('Eileen', color="#c8ffc8") default bag = {} default coins = 25 # The game starts he...
- Sat Oct 01, 2016 8:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to display content of a dictionary
- Replies: 6
- Views: 825
Re: How to display content of a dictionary
yes I put it in the bracket.trooper6 wrote:When posting code, you should put your code inside the [ code][ /code] tags to preserve spacing (take out the extra space in each tag).
Can someone help me with the code now?
- Sat Oct 01, 2016 7:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to display content of a dictionary
- Replies: 6
- Views: 825
How to display content of a dictionary
Hello fellow renpy users. I made this simple inventory, that uses a dictionary , however after adding all the items, I would like to be able to see what I have bought and how much of each item is in the inventory until its consumed. ex: inventory water melon : 1 Cheese : 3 1. How do i display the co...
- Sat Oct 01, 2016 4:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Viewing items and amount Inventory
- Replies: 1
- Views: 363
Viewing items and amount Inventory
Hello fellow Renpy users, I made this simple inventory, that uses a list, however after adding all the items, I would like to be able to see what I have bought and how much of each item is in the inventory until its consumed. ex: inventory water melon : 1 Cheese : 4 1. How can I code this? 2. Suppos...
- Tue Sep 06, 2016 10:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Positioning in game menu buttons
- Replies: 3
- Views: 9813
Re: Positioning in game menu buttons
use screen choice in screens.rpy file: screen choice: window: style "menu_window" xalign 0.5 ##<< to change the placement of menu yalign 0.5 ##<< vbox: style "menu" spacing 2 for caption, action, chosen in items: if action: button: action action style "menu_choice_button&qu...