- How do I make a questioner give certain shards only if they have that gadget?
- I forgot the others, will ask in the replies.
you can make a property that stores what gadget you have
add checkers or block code that will check the property and grant the items you want
um, please specify…
sure I will need a second
by the way will players ever hold more than one gadget?
no. they won’t.
The property would change its text when a checker checks what the item is (with multiple checkers). Then, it would change the blocks in the Questioner.
Could you make it visual?
Also, I’m using ALL the gadgets, so would I need a checker or property for each gadget?
okay so first place down a property the property will need to store the gadget the player has so whenever the player gains a gadget the property will need to be updated
(property scope has to be player)
You would need a checker for each gadget that constantly checks (refer to the guide below):
And each would change the property to a specific number/word/phrase that changes the Questioner’s coding.
next link as many checkers as you desire(equal to the amount of gadgets) to whatever is supposed to give you ammo
each checker will compare the property to a gadget name and transmit on a channel if it passes
finally place an item granter for each different type of amo and make it grant the item, on the corresponding channel
A nice touch would be to when you answer a question, the name of the item and the amount you receive would appear as the correct answer.
What is the second question?
Here’s another idea: in the Questioner’s coding, it could have an if-than block that compares the desired property to 1, 2, 3, and so on (as many gadgets there are). Each number would stand for a gadget. Then, you would need a few checkers (1 for each gadget) and make them continuously check (with the guide I provided before). If any of them passes, it would change the property. Just make sure that each and every gadget has a corresponding number that none others have. Any questions/comments/concerns?
okay…
ill try to simplify
make an infinite checker with the gadget of your choice (guide wingwave linked)
if you know how to make it a trigger clock works better but the repeater works just the same
make a true/false property
connect the checker from infinite checking repeater to a trigger (check passes → trigger)
blockcode
set property "property"
value | true
next, connect the questioner to item granter (run wire pulse block)
blockcode:
if Get Property "property" true
do Grant Player Selected item
what this does is grant the player the selected item in the item granter setting
and if you picked the second block you can also manage the amount
if you choose the first block i think itll automatically choose the selected item and amount
Okay thanks!
Another question, how do I end the game after you have a certain amount of an item?
also if you’re wondering why we didnt do the blocks in a trigger it’s because the item granter is rhe only device that has a grant custom amount of item block
sometimes other blocks are better to use than others because they’re device-specific in some situations
also just so i dont feed you all the information, how the blockcode works is that when the player answers question, repeater check if player has item.
if item no, set property false.
if item yes, set property true and grant item.
(bad grammar intended)