π© Input number
π© Input number
The Number Entry block allows you to capture a numerical value entered by the user via an interactive interface.
This block is essential for interactions requiring encrypted input, such as calculations, auctions, or parameter adjustments. It optimizes user experience by automatically displaying a number pad on mobile and strictly validating the input format.
π₯ Entries
- Title (Text - Optional): Prompt text or question displayed above the input field (eg: "What is your age?").
- Default value (Number - Optional): Pre-filled value in the field to guide the user.
- Minimum value (Number - Optional): Lower limit authorized for entry.
- Maximum value (Number - Optional): Upper limit authorized for entry.
π€ Outings
- Numerical Input (Number): Valid numerical value entered by the user, ready to be used in calculations or conditions.
- Validated (Stream): Flow triggered when the user validates their input (via button or Enter key), allowing the scenario to continue.
π‘ Example of use
Scenario: In-store discount calculation
- The player arrives at the checkout of a store with an item priced at β¬80.
- The Number entry block is configured with:
- Title: "Enter the discount percentage (max 30%)"
- Maximum value: 30
- The user enters "15" on their numeric keypad and validates.
- The Numerical Input (15) is transmitted to a calculation block to apply the reduction (80β¬ Γ 0.85 = 68β¬).
- The Validated flow triggers the display of the new price and the continuation of the scenario.
βοΈ Technical Details
- Strong typing: The block automatically rejects any non-numeric input, avoiding processing errors. Mobile keyboards switch to numeric mode for easier typing.
- Real-time validation: Values ββout of range (min/max) are blocked before validation, with visual feedback for the user.
Updated on: 04/03/2026
Thank you!
