I’m in the Story Objects lesson of Loony Lips in the Godot course, and I’m running into an error when using the code from the video. The code in question is this:
func set_current_story():
randomize()
var stories = $Storybook.get_child_count()
var selected_story = randi() % stories
current_story.prompts = $Storybook.get_child((selected_story).prompts
and the issue is with the last line. The error is "Expected ‘,’ or ‘)’ ", but I can’t see where a comma or a parentheses would be needed. I’ve made sure to trim the whitespace and have tried typing, retyping, cut and pasting it, etc, but no dice so far. Any help would be much appreciated. Thanks!