RedHatAugust - Q and A Not rated

redhataugust

This plugin gives the option to ask a question and have the user type an answer to check. The string validation can be used to affect switches (off/on) for both correct and incorrect answers.


Tags event switch conditions string validation question answer type typing text

This command plugin is used for when you want to ask a user a question and have a predefined response that you want the user to type in. An example of this would be:

Question: "Multiply these binomials using the FOIL method: (x+1)(x+2). Do not type any spaces in your response." Answer: "(x^2)+3x+2" If correct: "Great Job!!" --> an event may also be triggered here. If incorrect: "Not quite it." --> an event may also be triggered here.

Regarding the events, it is built into both the correct and incorrect responses. You will need to have the switch ID available and the status you want for that switch - be it false (for off) or true (for on). This allows for the responses to affect the game progression, as you see fit. The other events and switches should be set prior to the command you type for this plugin.

To use: This is a command plugin, so choose 'Plugin Command' under tab 3. The command should be as follows:

question word_count_of_question question_typed_without_quotes word_count_of_answer answer_typed_without_quotes word_count_of_correct_response correct_response_typed_without_quotes correct_answer_switchID correct_answer_switchID_status word_count_of_incorrect_response incorrect_response_typed_without_quotes incorrect_answer_switchID incorrect_answer_switchID_status

The description is a bit confusing (or at least to me it is - AND I WROTE THIS!!), so again, I think this is best addressed with an example. Check my YouTube channel for a video on how the plugin works too. I'll break it down there, as well. https://www.youtube.com/channel/UCvrPjGzW-WUn2ihAumBMYSg

So for the above example regarding the math problem, the command type would be as follows:

question 16 Multiply these binomials usin the FOIL method: (x+1)(x+2). Do not type any spaces in your response. 1 (x^2)+3x+2 2 Great Job!! n 3 Not quite it. n

The n's mark that no switch is to be affected by the command. Notice that when I type an n in place of the switchID, I DO NOT place a status. In the next example, I will change a switch's condition (switchID 1) to turn on the switch for my event that reveals a button that will open a locked door.

question 16 Multiply these binomials using the FOIL method: (x+1)(x+2). Do not type any spaces in your response. 1 (x^2)+3x+2 2 Great Job!! 1 true 3 Not quite it. n

If the user gets the answer wrong, nothing will happen and the prompting window will close. If the user gets the answer correct, they will turn switchID 1 on.

The same can be used to turn the switch conditions off. Just change the condition to false.

Type the conditions in all lowercase letters.

Available versions
This version doesn't have plugin dependencies.

User reviews (0)


This plugin doesn't have any review.