Search found 1129 matches

by noeinan
Wed Dec 09, 2020 6:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 498

Re: Advice on Having Multiple NVL Mode Text Positions

Oof! Thanks for catching that typo. After fixing the typo I no longer get the error message, but it also does not move the text. At your suggestion, I tried this: screen nvl(dialogue, items=None): layer "textwindow" window: style "nvl_window" if grapple_textbox == True: xpos 356 else: xpos 0 And it ...
by noeinan
Wed Dec 09, 2020 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 498

Re: Advice on Having Multiple NVL Mode Text Positions

So, I tried another method, which is setting the text position to a variable and then changing said variable, but even if I define the variable in the line right before the gui. definition, it refuses to accept it... ## The position, width, and alignment of nvl_thought text (the text said by the ## ...
by noeinan
Wed Dec 09, 2020 1:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 498

Re: Advice on Having Multiple NVL Mode Text Positions

Thanks for the idea! I tried this: screen nvl_dialogue(dialogue): layer "textwindow" if grapple_textbox == True: gui.nvl_thought_xpos = 940 else: $ gui.nvl_thought_xpos = 620 for d in dialogue: window: id d.window_id fixed: yfit gui.nvl_height is None if d.who is not None: text d.who: id d.who_id te...
by noeinan
Tue Dec 08, 2020 3:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 498

Re: Advice on Having Multiple NVL Mode Text Positions

I tried copying the entire code for nvl mode in screen.rpy and gui.rpy, then changing it to grapple mode, then making a new "character" that speaks in grapple mode, but I got an undefined error when I tried to add that mode to the character. I suspect characters won't accept new modes I've created, ...
by noeinan
Tue Dec 08, 2020 3:31 am
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 498

Advice on Having Multiple NVL Mode Text Positions (solved)

My game primarily uses nvl mode, but I would like the text position and nvl textbox image to change during certain parts of gameplay. Specifically, the textbox is centered when the player is walking around the map, but when they are in combat the textbox is on the right side, so centered text would ...
by noeinan
Sat Dec 05, 2020 12:51 am
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Re: Layered Image Not Accepting Class Variables...

Okay, so I just deleted all of my elses and "pass"es and suddenly everything works. I guess I need to ignore the need to close these if clauses and just leave them alone.
by noeinan
Sat Dec 05, 2020 12:42 am
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Re: Layered Image Not Accepting Class Variables...

Omg! I didn't notice the error is actually in a different part of the file. It's here: init python: player.grapple_arms = "up" player.grapple_face = "shock" player.grapple_legs = "up" screen grapple_overlay(npc): #layer "overlay2" ## Ensure this appears on top of other screens. zorder 2 add "gui/ove...
by noeinan
Fri Dec 04, 2020 11:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Re: Layered Image Not Accepting Class Variables...

I do have them in all different files, to keep things organized... Maybe I'll have to put them in the same file but I think that may cause an issue since there's multiple layered images and they're going to be quite big. So if I put literally all of them in the same file, ugh, I feel that will be a ...
by noeinan
Fri Dec 04, 2020 10:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Re: Layered Image Not Accepting Class Variables...

I tried that one too but I am still getting the same undefined error. I am not sure what the difference between default and define are, but neither work.
by noeinan
Fri Dec 04, 2020 9:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Re: Layered Image Not Accepting Class Variables...

Thanks for the help! Unfortunately, defining instead of doing it in the start_label did not change anything. Also, making the layered image init 999 did not fix the error either. I'm really confused about why this is happening! I feel like I was putting variables after the start label for a reason, ...
by noeinan
Fri Dec 04, 2020 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Layered Image Not Accepting Class Variables... (solved)
Replies: 9
Views: 346

Layered Image Not Accepting Class Variables... (solved)

I am using layered images to have a customizable character + clothing. However, when I try to use variables inside my player class, I keep getting an error saying player is not defined. But I clearly did define player right after the start_label... #PLAYER VARIABLES $ player = PlayerList() layeredim...
by noeinan
Sat Nov 28, 2020 10:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Label Undefined when Calling from For Loop (solved)
Replies: 5
Views: 312

Re: Label Undefined when Calling from For Loop

No need to apologize at all, I actually super appreciate the corrections. So, I'm having a bit of a hard time understanding and part of it is that there is 18+ stuff in the code and so every time I've posted problems I've had to go through and change everything to make it PG, but due to that it beco...
by noeinan
Sat Nov 28, 2020 9:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Label Undefined when Calling from For Loop (solved)
Replies: 5
Views: 312

Re: Label Undefined when Calling from For Loop

That syntax seems to work for the most part, the only issue I'm running into now is... I'm not getting any error messages, but the label that I'm calling is not doing anything at all. Lines were showing up before implementing the for loop, but after the conversion just nothing happens. I've got this...
by noeinan
Sat Nov 28, 2020 8:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Label Undefined when Calling from For Loop (solved)
Replies: 5
Views: 312

Re: Label Undefined when Calling from For Loop

Oh! Thank you. I think that is working, I can almost finish testing it I have just run into one more error related to the changes.
by noeinan
Sat Nov 28, 2020 7:56 pm
Forum: Ren'Py Questions and Announcements
Topic: RenPy Dialogue and Extend Inside Python Block (solved)
Replies: 4
Views: 336

Re: RenPy Dialogue and Extend Inside Python Block

Aaah, that's good to know. I don't imagine it matters for this specific part of the code, since it's kinda combat so I wouldn't necessarily want them to be able to save in the middle of the fight anyhow. I have not tested the renpy.extend, but found a solution to my issue where I don't think I need ...