Skip to content

Commit

Permalink
Allows label to be a variable, making the jump event dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbynator authored Dec 20, 2024
1 parent 7e38e1d commit b754bad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/dialogic/Modules/Jump/subsystem_jump.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func jump_to_label(label:String) -> void:
dialogic.current_event_idx = 0
jumped_to_label.emit({'timeline':dialogic.current_timeline, 'label':"TOP"})
return
## Allows label to be a variable, making the jump event dynamic
label = str(dialogic.VAR.parse_variables(label))

var idx: int = -1
while true:
Expand Down

0 comments on commit b754bad

Please sign in to comment.