Type:Game Mechanic Brain
Level: 2 star
Pages: 4
Description: Designed for the Troll Bridge DLC. The Troll asked for a riddle answer before you can pass. This is the less violent version than the one the Troll Bridge assembly uses. If you get the answer correct he drops a bone cudgel, if not he says better luck next time. Best used in a Character rather than a prop as it uses emotes.
Kode
page 1 @Wait for Interaction
- WHEN [interacted]
- …WHEN DO [objvar:player][equals][it]
- …WHEN DO [objvar:player][brain is active][equals][false]
- …WHEN DO [switch page][page@Riddle]
page 2 @Riddle
- WHEN DO [turn][toward][objvar:player]
- WHEN DO [objvar:player][turn][toward][me]
- WHEN DO [say][text:Youre in a room…]
- WHEN [is using controller][or using touch]
- …WHEN DO [display button][x][screen bottom left][without frame]
- …WHEN [else]
- …/….WHEN DO [display][icon:left shift][screen bottom left]
- WHEN DO [display][text:Fireplace][screen bottom left][x large font]
- WHEN [is using controller][or using touch]
- …WHEN DO [display button][A][screen bottom center[without frame]
- …WHEN [else]
- …/….WHEN DO [display][icon:space][screen bottomcenter]
- WHEN DO [display][text:Match][screen bottom center][x large font]
- WHEN [is using controller][or using touch]
- …WHEN DO [display button][b][screen bottom right][without frame]
- …WHEN [else]
- …/….WHEN DO [display][icon:return[screen bottom right]
- WHEN DO [display][text:Candle][screen bottom right][x large font]
- WHEN [x][pressed][without virtual controller][or][left shift][pressed]
- …WHEN DO [textvar:answer][equals][text:The Fireplace of course]
- …WHEN DO [ switch page][page:@Incorrect answer]
- WHEN [A][pressed][without virtual controller]
- …WHEN DO [textvar:answer][equals][text:The Matchof course]
- …WHEN DO [ switch page][page:@Correct answer]
- WHEN [B][pressed][without virtual controller][or][return][pressed]
- …WHEN DO [textvar:answer][equals][text:The Candle of course]
- …WHEN DO [ switch page][page:@Incorrect answer]
page 3 @Correct Answer
- WHEN [duration timer][2]
- …WHEN DO [objvar:player][say][textvar:answer]
- …WHEN DO [objvar:player][emote][Talk]
- WHEN [countdown timer][2]
- …WHEN [duration timer][2] DO [say][text:…][type on speed][2][x large font]
- WHEN [countdown timer][4]
- …WHEN [duration timer][2] DO [say][text: Excellent…]
- WHEN [countdown timer][6]
- …WHEN [duration timer][2] DO [say][text: Some troll dropped…]
- WHEN [started to][countdown timer][8]
- …WHEN DO [play fx][fx:Poof][at position][position][plus][(][forward][multiplied by][2][)]
- …WHEN DO [create][prop:Bone cudgel][at position][position][plus][(][forward][multiplied by][2][)]
- …WHEN DO [objvar:player][brain is active][equals][true]
page 4 @Incorrect Answer
- WHEN [duration timer][2]
- …WHEN DO [objvar:player][say][textvar:answer]
- …WHEN DO [objvar:player][emote][Talk]
- WHEN [countdown timer][2]
- …WHEN [duration timer][2] DO [say][text:…][type on speed][2][x large font]
- WHEN [countdown timer][4] DO [emote][Agree]
- …WHEN [duration timer][2] DO [say][text: Sorry thats incorrect..]
- WHEN [countdown timer][6]
- …WHEN [duration timer][2] DO [say][text: Better luck next time]
- WHEN [countdown timer][8]
- …WHEN DO [objvar:player][brain is active][equals][true]
- …WHEN DO [switch page][page@Wait for Interaction]
Alterations
Remove character after correct answer
As you cannot interact with the character after the riddle is completed you will probably wanting them to disappear (preferably in a puff of smoke. Try this
page 3 @Correct answer
- WHEN [countdown timer][10]
- …WHEN [started to] DO [play fx][fx:Poof][at position][position]
- …/…WHEN DO [destroy][me]