Randomizing Choice
In this Python class for Ren'Py, the class is designed to randomize given text, ensuring that users receive different dialogue each time they go through a conversation. This prevents repetitive dialogue in your visual novel (VN) and adds a simple yet professional touch to your project.
RandomChoice Class Methods
STalk(who, what)
This method does not perform any special functions, it simply sends a basic dialogue.
LTalk(who, list)
Similar to `STalk()`, but operates on a list of sentences.
RSTalk(who, list)
This is like `STalk()`, but it randomizes the sentences.
RLTalk(who, list)
Similar to `LTalk()`, but with randomization across multiple sentence options.
RCMTalk(self, who, list, question=[''])
Chooses a random sentence from a menu of options.
RCMLTalk(list, who='', question=[''])
This method is used to randomize sentences from more complex menu lists, where each choice corresponds to a result.
Files
Get Random Choice
Random Choice
the class is designed to randomize given text.
Status | Released |
Category | Tool |
Author | Mouad ALLAOUI |
Genre | Role Playing, Visual Novel |
Tags | addons, Asset Pack, Classes, minigames, randomize, Ren'Py, sourcecode, User Interface (UI) |
Languages | Arabic, English, French |
Leave a comment
Log in with itch.io to leave a comment.