My Fireworks Vendor

Type: Assembly Brain
Level: not in gallery
Pages: 8
Description: This is a firework vendor which contains a dialogue sequence with player’s choices. It is not a buy/sell vendor. She only describes the goods, she does not sell the fireworks, and you cannot remove them from the stall.

Kode

page 1 @Waiting for Player

  1. WHEN [once] DO [boolvar:fireworks enabled][equals][true]
  2. WHEN DO [emote][Greet]
  3. WHEN [interacted]
  4. …WHEN DO [objvar:player][equals][it]
  5. …WHEN DO [turn][toward][objvar:player]
  6. …WHEN DO [deactivate brain][objvar:player]
  7. …WHEN DO [boolvar:fireworks enabled][equals][false]
  8. …WHEN DO [switch page][page:@Greet Player]

page 2 @Greet Player

  1. WHEN DO [letter box]
  2. WHEN DO [look at target][me]
  3. WHEN DO [objvar:player][turn][toward][me]
  4. WHEN DO [turn][toward][objvar:player]
  5. WHEN DO [say][text: Well hello there…]
  6. WHEN [is using keyboard or mouse][or][is using touch]
  7. …WHEN DO [display][text:Whats available][screen bottom left][x large font]
  8. …/…WHEN [display button][plus][screen bottom left] DO [switch page][page:@Whats available]
  9. …WHEN DO [display][text:Who are You][screen bottom center][x large font]
  10. …/…WHEN [display button][plus][screen bottom center] DO [switch page][page:@Who are you]
  11. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  12. …/…WHEN [display button][plus][screen bottom right] DO [switch page][page:@Quit]
  13. WHEN [is using controller]
  14. …WHEN DO [display][text:Whats available][screen bottom left][x large font]
  15. …/…WHEN [display button][icon:X][screen bottom left] [or][button:X][pressed]DO [switch page][page:@Whats available]
  16. …WHEN DO [display][text:Who are You][screen bottom center][x large font]
  17. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page:@Who are you]
  18. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  19. …/…WHEN [display button][icon:B][screen bottom right][or][button:B][pressed] DO [switch page][page:@Quit]

page 3 @Who Are You

  1. WHEN [once] DO [#comment][equals][0]
  2. WHEN DO [letter box]
  3. WHEN DO [emote][Talk]
  4. WHEN [page entered]
  5. …WHEN DO [#comment][equals][#comment][plus][1]
  6. WHEN [#comment][equal to][1] DO [say][text: Me I’m the daughter…]
  7. WHEN [#comment][equal to][2] DO [say][text: Im also the eldest..]
  8. WHEN [#comment][equal to][3] DO [say][text:My favourite..]
  9. WHEN [#comment][equal to][4] DO [say][text: I have 3 pets..]
  10. WHEN [#comment][equal to][5] DO [say][text: Their names are…]
  11. WHEN [#comment][equal to][6] DO [say][text: And when Im not..]
  12. WHEN [is using keyboard or mouse][or][is using touch]
  13. …WHEN DO [display][text:More][screen bottom center][x large font]
  14. …/…WHEN [display button][plus][screen bottom center] DO [switch page][page: @Greet player]
  15. …WHEN DO [display][text:Bye[screen bottom right][x large font]
  16. …/…WHEN [display button][not][screen bottom right] DO
  17. …/…/…WHEN DO [activate brain][objvar:player]
  18. …/…/…WHEN DO [switch page][text:@Quit]
  19. WHEN [is using controller]
  20. …WHEN DO [display][text:More][screen bottom center][x large font]
  21. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page: @Greet player]
  22. …WHEN DO [display][text:Bye[screen bottom right][x large font]
  23. …/…WHEN [display button][icon:B][screen bottom right][or][button:B][pressed] DO
  24. …/…/…WHEN DO [activate brain][objvar:player]
  25. …/…/…WHEN DO [switch page][text:@Quit]

page 4 @Whats Available

  1. WHEN [letter box]
  2. WHEN DO [look at target][me]
  3. WHEN DO [objvar:player][turn][toward][me]
  4. WHEN DO [turn towards][objvar:player]
  5. WHEN DO [say][Well hello there..]
  6. …WHEN DO [highlight][iwp:Wooden spin wheel]
  7. …WHEN DO [highlight][iwp:Fireworks candle]
  8. …WHEN DO [highlight][iwp:Fireworks Rocket A]
  9. WHEN [is using keyboard][or][is using touch]
  10. …WHEN DO [display][text:The candle][screen bottom left][x large font]
  11. …/…WHEN [display button][Fireworks candle][screen bottom left] DO [switch page][page@Fireworks candle]
  12. …WHEN DO [display][text:The Rocket][screen bottom center][x large font]
  13. …/…WHEN [display button][Fireworks Rocket A][screen bottom center] DO [switch page][page@Rocket]
  14. …WHEN DO [display][text:The Spinner][screen bottom right][x large font]
  15. …/…WHEN [display button][Wooden spin wheel][screen bottom right] DO [switch page][page@Spinner]
  16. WHEN [is using controller]
  17. …WHEN DO [display][text:The candle][screen bottom left][x large font]
  18. …/…WHEN [display button][icon:X][screen bottom left][or][button:X][pressed] DO [switch page][page@Fireworks candle]
  19. …WHEN DO [display][text:The Rocket][screen bottom center][x large font]
  20. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page@Rocket]
  21. …WHEN DO [display][text:The Spinner][screen bottom right][x large font]
  22. …/…WHEN [display button][icon@A][screen bottom right][or][button:A][pressed] DO [switch page][page@Spinner]

page 5  @Quit

  1. WHEN DO [boolvar:Fireworks enabled][equals][true]
  2. WHEN DO [Emote][Greet]
  3. WHEN DO [activate brain][objvar:player]
  4. WHEN DO [switch page][page:@Waiting for player]

page 6 @Spinner

  1. WHEN [once] DO [boolvar:spinner][equals][true]
  2. WHEN DO [letter box]
  3. WHEN DO [look at target][iwp:Wooden spin wheel]
  4. WHEN DO [emote][Talk]
  5. WHEN DO [say][text:The spinner is…]
  6. WHEN DO [highlight][iwp:Wooden spin wheel]
  7. WHEN [is using keyboard][or][is using touch]
  8. …WHEN DO [display][text:More][screen bottom center][x large font]
  9. …/…WHEN [display button][plus][screen bottom center] DO [switch page][page:@Whats available]
  10. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  11. …/…WHEN [display button][not][screen bottom right] DO
  12. …/…./…WHEN DO [activate brain][objvar:player]
  13. …/…/…WHEN DO [switch page][page:@Quit]
  14. WHEN [is using controller]
  15. …WHEN DO [display][text:More][screen bottom center][x large font]
  16. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page:@Whats available]
  17. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  18. …/…WHEN [display button][icon:B][screen bottom right] [or][button:B][pressed]DO
  19. …/…./…WHEN DO [activate brain][objvar:player]
  20. …/…/…WHEN DO [switch page][page:@Quit]

page 7 @Fireworks candle

  1. WHEN [once] DO [boolvar:roman candle][equals][true]
  2. WHEN DO [letter box]
  3. WHEN DO [look at target][iwp:Fireworks candle]
  4. WHEN DO [emote][Talk]
  5. WHEN DO [say][text:The candle lets…]
  6. WHEN DO [highlight][iwp:Fireworks candle]
  7. WHEN [is using keyboard][or][is using touch]
  8. …WHEN DO [display][text:More][screen bottom center][x large font]
  9. …/…WHEN [display button][plus][screen bottom center] DO [switch page][page:@Whats available]
  10. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  11. …/…WHEN [display button][not][screen bottom right] DO
  12. …/…./…WHEN DO [activate brain][objvar:player]
  13. …/…/…WHEN DO [switch page][page:@Quit]
  14. WHEN [is using controller]
  15. …WHEN DO [display][text:More][screen bottom center][x large font]
  16. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page:@Whats available]
  17. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  18. …/…WHEN [display button][icon:B][screen bottom right] [or][button:B][pressed]DO
  19. …/…./…WHEN DO [activate brain][objvar:player]
  20. …/…/…WHEN DO [switch page][page:@Quit]

page 8 @Rocket

  1. WHEN [once] DO [boolvar:rocket][equals][true]
  2. WHEN DO [letter box]
  3. WHEN DO [look at target][iwp:Fireworks Rocket A]
  4. WHEN DO [emote][Talk]
  5. WHEN DO [say][text:The rockets…]
  6. WHEN DO [highlight][iwp:Fireworks Rocket A]
  7. WHEN [is using keyboard][or][is using touch]
  8. …WHEN DO [display][text:More][screen bottom center][x large font]
  9. …/…WHEN [display button][plus][screen bottom center] DO [switch page][page:@Whats available]
  10. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  11. …/…WHEN [display button][not][screen bottom right] DO
  12. …/…./…WHEN DO [activate brain][objvar:player]
  13. …/…/…WHEN DO [switch page][page:@Quit]
  14. WHEN [is using controller]
  15. …WHEN DO [display][text:More][screen bottom center][x large font]
  16. …/…WHEN [display button][icon:A][screen bottom center][or][button:A][pressed] DO [switch page][page:@Whats available]
  17. …WHEN DO [display][text:Bye][screen bottom right][x large font]
  18. …/…WHEN [display button][icon:B][screen bottom right] [or][button:B][pressed]DO
  19. …/…./…WHEN DO [activate brain][objvar:player]
  20. …/…/…WHEN DO [switch page][page:@Quit]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: