Verse Libraryverse

06 Step 3 Handling Player Choices

Evaluates the primary conversation event choice to trigger specific narrative outcomes, opening a designated door and logging the selection.

extracted-snippets/community/learning/tutorials/5VW8/fortnite-narrative-experiences-in-uefn/06-step-3-handling-player-choices.verse

# Source URL: https://dev.epicgames.com/community/learning/tutorials/5VW8/fortnite-narrative-experiences-in-uefn
# Local doc:  epic-docs/community/learning/tutorials/5VW8/fortnite-narrative-experiences-in-uefn.md
# Section:    Step 3: Handling Player Choices
# event 1 is triggered when player chooses science
if (eventNumber = 1):
Print("Science chosen")
OpenDoorOne(InAgent)

Comments

    Sign in to vote, comment, or suggest an edit.Sign in