Verse Library verse

01 Comparison

Compares expected and selected item strings to validate correct puzzle progression state.

extracted-snippets/documentation/en-us/uefn/string-in-verse/01-comparison.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/string-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/string-in-verse.md
# Section:    Comparison
# WARNING: Epic's page marks this snippet as click-to-expand. Only the preview portion was captured by the crawler — the full body is NOT in the markdown.
# This is the item the puzzle requires to unlock the next step:
ExpectedItemInternalName : string = "RedPotion"
# This is the item that the player has selected:
SelectedItemInternalName : string = "BluePotion"
	
# Check to see if the player has the right item selected.
if (SelectedItemInternalName = ExpectedItemInternalName):
    # They do! Report that the puzzle can proceed to the next step.
    return true

Comments

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