Verse Library verse

01 Fragment

Maps conversation events to reroute nodes that direct player responses to door or item actions.

verse-library/reroute-nodes/01-fragment.verse

// This is a visual representation of the graph logic.
// In UEFN, you drag and drop these nodes.

// 1. The Start of the Conversation
Start_Node = ConversationEvent()

// 2. The NPC Speaks
Speech_Node = Speech("Hello! Do you want to play?")

// 3. The Player Chooses
// We use Reroute Nodes to keep these separate
Yes_Reroute = RerouteNode()
No_Reroute = RerouteNode()

// 4. Connect Responses to Reroutes
// The "Yes" response goes to the Yes Reroute
Yes_Response -> Yes_Reroute

// The "No" response goes to the No Reroute
No_Response -> No_Reroute

// 5. The Reroutes Clean Up the Mess
// Now we connect the clean outputs to actions
Yes_Reroute -> Open_Door_Action
No_Reroute -> Give_Coin_Action

Comments

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