Search found 13 matches

by AliceGames
Mon Aug 16, 2021 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Type out predetermined word when player types?
Replies: 4
Views: 788

Re: Type out predetermined word when player types?

You can try this. init python: import string screen fixed_input(input): default current_input = [] default input_ = list(input) default keysyms = tuple("keyup_{}".format(l) for l in string.ascii_letters + string.digits) if input_: key keysyms: action Function(current_input.append, input_....
by AliceGames
Mon Aug 16, 2021 4:13 am
Forum: Ren'Py Questions and Announcements
Topic: Type out predetermined word when player types?
Replies: 4
Views: 788

Type out predetermined word when player types?

The title is weird, but basically I want to make it to where it asks the player to input a word, I.E. in my game I want the player to be forced to type out "A date" when the character asks them why they are there. He is in control of the player, is what im trying to do. I want it to be whe...
by AliceGames
Sat Aug 14, 2021 4:57 am
Forum: Ren'Py Questions and Announcements
Topic: How to completely disable saving, loading, preferences?
Replies: 1
Views: 678

How to completely disable saving, loading, preferences?

Hi, I know this sounds weird, but I literally am just making my visual novel a start and quit thing, no options, nothing. I just want the player to be able to start and quit by just using the x to close the window. Is there any way to disable the other features and their hotkeys?
by AliceGames
Mon Jul 26, 2021 10:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Solved: Return isn't sending player to main menu
Replies: 4
Views: 944

Re: Return isn't sending player to main menu

No, label placement only matters if you "fall through" it without returning or jumping: in this case next label will be run: label death: "I am dead" $ renpy.full_restart() # does not matter where it is, because control will not leave it anyway label start: "start" # r...
by AliceGames
Mon Jul 26, 2021 7:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Solved: Return isn't sending player to main menu
Replies: 4
Views: 944

Re: Return isn't sending player to main menu

return returns to the place at the top of so-called call stack or to main menu if call stack is empty. Each time you call a label, you place line where you call from on top of the call stack. Any return will return to that place. For example: label death: "I am dead" return label start: &...
by AliceGames
Mon Jul 26, 2021 6:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Solved: Return isn't sending player to main menu
Replies: 4
Views: 944

Solved: Return isn't sending player to main menu

Hello! I have a death scene in my game, at the bottom of the script, but when I have a screen jump to the label, it plays the scene but then returns back to where the player was prior to dying. Any reason for this? screen bloodlevels: imagebutton: idle "return button Idle.png" hover "...
by AliceGames
Sat Jul 24, 2021 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

Re: How to make player lose health if they view a screen?

default hp = 100 default hp_max = 100 default hp_min = 0 init python: def _setHealth(value, action=[]): global hp, hp_min, hp_max hp = min(max(value, hp_min), hp_max) # clamp the values if hp == 0: renpy.run(action) def SetHealth(value, action=[]): return Function(_setHealth, value, action) screen ...
by AliceGames
Sat Jul 24, 2021 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

Re: How to make player lose health if they view a screen?

crap, uhhh sorry, there's a little mistake. hp = min(max(hp, hp_min), hp_max) should be... hp = min(max(value, hp_min), hp_max) but ig, rayminator's code is what you're looking for, just want to correct it nonetheless. I can try this! Honestly any kind of method works, I just want health decreased ...
by AliceGames
Sat Jul 24, 2021 8:47 am
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

Re: How to make player lose health if they view a screen?

I think he/she want to automatically drop while the player sit in that screen like every five to ten seconds they on that screen so should use a timer for that like something like this timer 0.1 repeat True action SetVariable('currenthp', currenthp - 5) Hi! So this is perfect, but how do I make it ...
by AliceGames
Sat Jul 24, 2021 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

Re: How to make player lose health if they view a screen?

default hp = 100 default hp_max = 100 default hp_min = 0 init python: def _setHealth(value, action=[]): global hp, hp_min, hp_max hp = min(max(hp, hp_min), hp_max) # clamp the values if hp == 0: renpy.run(action) def SetHealth(value, action=[]): return Function(_setHealth, value, action) screen blo...
by AliceGames
Fri Jul 23, 2021 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

Re: How to make player lose health if they view a screen?

You should take the python out of the screen and instead add it as an action when the screen is opened. One button can run multiple actions by separating them with a comma. Also would be worth adding () to the end of your screen as this is needed for optimisation. Ok! Totally cool if you can't answ...
by AliceGames
Fri Jul 23, 2021 5:42 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make player lose health if they view a screen?
Replies: 11
Views: 1114

How to make player lose health if they view a screen?

Hi! I'm not sure if this is something I can do, but I thought I'd try. In my game, the player loses blood over actions and fights, and the rule is that they cannot know their blood levels unless they check them, by clicking on "Blood Levels". The catch is, they lose blood in the process, h...
by AliceGames
Fri Jul 23, 2021 10:16 am
Forum: Ren'Py Questions and Announcements
Topic: Question about making a fan game and if it’s ok
Replies: 1
Views: 803

Question about making a fan game and if it’s ok

Hi, before I go into development, I wanted to ask if making a free fan game about a owned character is ok. I want to make a Lady Dimitrescu (she’s from resident evil village) dating sim (art would be done by me, and music would be royalty free.) I don’t know anything about copyright rules so I thoug...