Conversation – Dialogue Tree

Type: Assembly Brain
Level: not in gallery
Pages: 4
Description: Found in the Conversation – Dialogue Tree Assembly. A female villager stands by a table with an egg and axe on it. The player can interact with the objects and/or the woman. She gives you a choice of dialogue (talk about the egg or the axe). More a demo brain than one you could use without alteration.

Kode

page 1 @Interacted Greet Player

  1. WHEN DO [emote][Greet]
  2. WHEN [interacted]
  3. …WHEN DO [objvar:player][equals][it]
  4. …WHEN DO [deactivate brain][objvar:player] // deactivates the player so he cannot move
  5. …WHEN DO [switch page][page:@Greet player]

page 2 @Greet Player

  1. WHEN DO [letter box]
  2. WHEN DO [objvar:player][follow camera][without controls]
  3. WHEN DO [objvar:player][turn][toward][me]
  4. WHEN DO [turn][towrd][objvar:player]
  5. WHEN DO [say][text:Hey Traveler]
  6. …WHEN DO [highlight][iwp:Bird egg]
  7. …WHEN DO [highlight][iwp:Rangers Axe]
  8. WHEN [is using keyboard or mouse][or][is using touch]
  9. …WHEN DO [display][text:The egg][screen bottom left][x large font]
  10. …/…WHEN [display button][Bird Egg][screen bottom left] DO [switch page][page: @Egg]
  11. …WHEN DO [display][text:The axe][screen bottom center][x large font]
  12. …/…WHEN [display button][Rangers axe][screen bottom center] DO [switch page][page:@Axe]
  13. WHEN DO [display][text:Goodbye][screen bottom right][x large font]
  14. …WHEN [display button][away from][screen bottom right]
  15. …/…WHEN DO [activate brain][objvar:player]
  16. …/…WHEN DO [switch page][page:@Interacted – Greet Player]
  17. WHEN [is using controller]
  18. …WHEN DO [display][text:The egg][screen bottom left][x large font]
  19. …/…WHEN [display button][X][screen bottom left][or][button X][pressed] DO [switch page][page: @Egg]
  20. …WHEN DO [display][text:The axe][screen bottom center][x large font]
  21. …/…WHEN [display button][A][screen bottom center] [or][button:A][pressed]DO [switch page][page:@Axe]
  22. WHEN DO [display][text:Goodbye][screen bottom right][x large font]
  23. …WHEN [display button][B][screen bottom right][or][button:B][pressed]
  24. …/…WHEN DO [activate brain][objvar:player]
  25. …/…WHEN DO [switch page][page:@Interacted – Greet Player]

page 3 @Egg

  1. WHEN DO [letter box]
  2. WHEN DO [look at target][iwp:Bird egg]
  3. WHEN DO [emote][Talk]
  4. WHEN DO [say][text:Oh that?Its a surprise]
  5. WHEN DO [highlight][iwp:Bird egg][yellow]
  6. WHEN DO [play fx][iwp:yellow sparkle][on][iwp:bird Egg]
  7. WHEN [is using keyboard or mouse][or][is using touch] DO [display][text:Ok][screen bottom center][x large font]
  8. …WHEN [display button][icon:Checkmark][screen bottom center] DO [switch page][page:@Greet Player]
  9. WHEN [is using controller] DO [display][text:Ok][screen bottom center][x large font]
  10. …WHEN [display button][icon:A][screen bottom center] [or][button:A][pressed] DO [switch page][page:@Greet Player]

page 4 @Axe

  1. WHEN DO [letter box]
  2. WHEN DO [look at target][iwp:Rangers axe]
  3. WHEN DO [emote][Talk]
  4. WHEN DO [say][text:The woodsmans axe?Its yours if you want it]
  5. WHEN DO [highlight][iwp:Rangers axe][yellow]
  6. WHEN DO [play fx][iwp:yellow sparkle][on][iwp:Rangers axe]
  7. WHEN [is using keyboard or mouse][or][is using touch] DO [display][text:Ok][screen bottom center][x large font]
  8. …WHEN [display button][icon:Checkmark][screen bottom center] DO [switch page][page:@Greet Player]
  9. WHEN [is using controller] DO [display][text:Ok][screen bottom center][x large font]
  10. …WHEN [display button][icon:A][screen bottom center] [or][button:A][pressed] DO [switch page][page:@Greet Player]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: