Page 1 of 1

[Solved] Turn conversation into a variable?

Posted: Wed May 27, 2020 10:46 am
by Rekoija
Aight so, I want to make this code as simple to repeat as I can, it gets a bit annoying having to copy paste a conversation a bunch of times if there's an easier way.

So I've been wondering, is there some sort of way to turn a conversation into something that's really easy to call?

(gonna show you some code i definitely know won't work, but'll demonstrate what i'd like)

$ convo1 = (
if x = True:
xyz "blah blah"
else:
xyz "blergh"
)

and then somehow making the convo play whenever i use the variable?
it sounds like it'll be really complicated or even impossible, but i'm not super experienced with code, so who knows?
i'll post it just in case i'm wrong.

Thanks in advance!
(and if you know it's not possible, i'd also appreciate a reply saying that :D)

Re: Turn conversation into a variable?

Posted: Wed May 27, 2020 10:57 am
by Imperf3kt
If you have something you want to repeat multiple times that'll never really change, you can just put it in its own label, put a return at the end, and use "call label_name" to make your script jump to the label, and back when it's done.