Character variables within dialogue/text?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
rusicaria
Regular
Posts: 84
Joined: Sat Mar 28, 2020 12:26 am
Projects: VivaCity (VN)
Tumblr: rusicariaGAMES
itch: rusicariaGAMES
Contact:

Character variables within dialogue/text?

#1 Post by rusicaria »

(Sorry if this doesn't make sense, I'm really new to coding language)
I was wondering if it's possible to define a certain variable yourself and place it within a block of text/dialogue. Maybe not using the define command I'm not sure, kind of how like whenever using renpy.input, and how you can insert a certain word wherever. I was wondering if that's possible but for a variable that you customize yourself and not the player?

Again I'm sorry if that didn't make any sense :cry:

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Character variables within dialogue/text?

#2 Post by Milkymalk »

Code: Select all

default something = "a ball"

label start:
    "This is [something]."
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

User avatar
rusicaria
Regular
Posts: 84
Joined: Sat Mar 28, 2020 12:26 am
Projects: VivaCity (VN)
Tumblr: rusicariaGAMES
itch: rusicariaGAMES
Contact:

Re: Character variables within dialogue/text?

#3 Post by rusicaria »

Milkymalk wrote: Mon May 04, 2020 3:04 pm

Code: Select all

default something = "a ball"

label start:
    "This is [something]."
hey thank you for your reply! I'm new to using Ren'py so I really appreciate the help :D

Post Reply

Who is online

Users browsing this forum: Starberries