Type: Assembly Brain
Level: not in gallery
Pages: various
Description: Found in the Assemblies gallery. In this quest a female villager asks you to retrieve an apple from a tree. When you return with the apple in your inventory she gives you a coin.
Kode
Apple Brain
- WHEN [interacted] DO [it][pick up][me]
- …WHEN [iwp:Quest Giver][current page][not equal to][2] DO [iwp: Quest Giver][switch page][@Quest Active] // this is just in case you collect the apple before talking to the Quest Giver
- …/…WHEN DO [iwp:Exclamation Point][visible][equals][false]
- …/…WHEN DO [iwp:Quest Giver][objvar:player character][equals][it]
Quest Giver
page 1 @Interacted – Give Quest
page 1 @Interacted – Give Quest
- WHEN [not detect][player]
- …WHEN DO [emote][Greet]
- …WHEN DO [iwp:Exclamation Point A][visible][equals][true]
- WHEN [detect][player]
- …WHEN DO [turn][toward][it]
- …WHEN DO [iwp:Exclamation Point A][visible][equals][false]
- …WHEN DO [say][Hello adventurer…]
- …WHEN DO [objvar:player character][equals][it]
- …WHEN [interacted] DO [switch page][page: @Quest Active]
page 2 @Quest Active
- WHEN [page entered] DO [turn][toward][it]
- WHEN [not][objvar:player character][inventory][contains][iwp:Apple]
- …WHEN DO [display][screen top right][text:Quest Find an apple…]
- …WHEN DO [display][screen top right][Apple A][opacity][0.2]
- …WHEN DO [play fx:][fx:Sparkle small][on][iwp:Apple]
- …WHEN [detect][objvar:Player character]
- …/…WHEN [duration timer][4]
- …/…/…WHEN DO [say][text:Look for an apple…]
- …/…/…WHEN DO [turn][toward][it]
- WHEN [objvar:player character][inventory][contains][iwp:Apple]
- …WHEN DO [display][screen top right][text:Quest: Give the…]
- …WHEN DO [display][screen top right][Apple A]
- …WHEN DO [iwp:Exclamation Mark A][visible][equals][true]
- …WHEN [detect][objvar:player character]
- …/…WHEN DO [turn][toward][it]
- …/…WHEN DO [say][Did you find…]
- …/…WHEN [interacted]
- …/…/…WHEN DO [iwp: exclamation Mark A][visible][equals][false]
- …/…/…WHEN DO [objvar:player character][throw][iwp:Apple][at][me]
- …/…/…WHEN DO [switch page][page:@Quest complete]
page 3 @Quest Complete
- WHEN [page entered] DO [pick up][iwp:Apple]
- WHEN [detect][objvar:player Character] DO [turn][toward][it]
- WHEN [duration timer][4]
- …WHEN DO [say][text: Thanks…]
- …WHEN [started to]countdown timer][2] DO [throw][Coin][at][objvar:player character]