====== ANSWER QUESTION ====== Introduction: In the Mini World Game has answer questions type map, it has two type: choose the best answer and fill answer in the input box (the best answer). Today, I will tutorial about type 2 - fill answer in the inbox. {{:developer_center:developer_editor:medals.png?nolink&800|}} =====I. UI Decorate===== Step 1: Create a new UI {{:developer_center:developer_editor:basic_ui_3.png?nolink&800|}} Step 2: Create a text for the questions, an example: (Question 1. 12+12 = ?) {{:developer_center:developer_editor:answerquestion_1.png?nolink&800|}} Step 3: Create an input box for the player to fill answers into it. {{:developer_center:answerquestion_2.png?nolink&800|}} Step 4: Input your contents here {{:developer_center:developer_editor:answerquestion_3.png?nolink&800|}} ====== II. Trigger ====== Step 1: Create two variables **a and b** (It must be Private Variables **If you wanna create a multiplayer map**), in this tutorial, I will instructions about Private Variables. If you wanna create global variables, it's nope but all players must reply only a question so it's fun {{:developer_center:a.png?nolink|}} {{:developer_center:developer_editor:a2.png?nolink|}} Repeat for variable b Step 2: Create a new block {{:developer_center:developer_editor:answerquestions_4.png?nolink|}} Step 3: Random between a and b {{:developer_center:developer_editor:answerquestions_6.png?nolink|}} choose action: random integers from 1 to 10 (you can change it but it must in set of integers) {{:developer_center:developer_editor:answerquestions_7.png?nolink|}} **Repeat for variable b** Step 4: Add event: "When player enter string on the interface" {{:developer_center:developer_editor:answerquestions_8.png?nolink|}} Step 5: Create a new homemade {{:developer_center:developer_editor:answerquestions_9.png?nolink|}} Step 6: Add if... then... otherwise condition {{:developer_center:developer_editor:answerquestions_10.png?nolink|}} Explain: If players input a true answer, the value adds 1, if players input incorrect answer, the box chat will chat: "Please input again" Step 7: Create a new variable " a + b" to determine value player input and sum of a and b {{:developer_center:developer_editor:answerquestions_11.png?nolink|}} Step 8: Set value "a + b" = variable a + variable b {{:developer_center:developer_editor:answerquestions_12.png?nolink|}} Step 9: Determine variable sum of a and b = Player's string {{:developer_center:developer_editor:answerquestions_13.png?nolink|}} {{:developer_center:developer_editor:enterstring_5.jpg?nolink|}} {{:developer_center:developer_editor:answerquestions_14.png?nolink|}} {{:developer_center:developer_editor:answerquestions_15.png?nolink|}} {{:developer_center:developer_editor:answerquestions_16.png?nolink|}} {{:developer_center:developer_editor:answerquestions_17.png|}} Step 10: Text text a + b {{:developer_center:developer_editor:answerquestions_18.png?nolink|}} Step 11: Display announcement: {{:developer_center:developer_editor:answerquestions_19.png?nolink|}} All trigger: {{:developer_center:developer_editor:answerquestions_20.png?nolink|}} ---- If you have any questions about Developer Tools, feel free to join our official discord server [[https://discord.gg/NVRZHBChBt|Mini World Global DEV discord]]