Don't understand what this means... (error 30,23)expected end of statement after expression got identifier instead

class_name ActiceTurnQueue
extends Node


var is_active := true setget set_is_active

var time_scale := 1.0 setget set_time_scale

var _party_members := []
var _opponents := []

onready var battles := get_children()


func _ready() -> void:
	for battler in battlers:
		battler.connect("ready_to_act", self, "_on_Battler_ready_to_act", [battler])
		if battler.is_party_member:
			_party_members.append(battler)
		else:
			_opponents.append(battler)
			

func set_is_active(value: bool) -> void:
error -> is_active = valuefor battler in battlers:
		battler.is_active = is_active

func set_is_scale(value: float) -> void:
	time_scale = valuefor battler in battlers:
		battler.time_scale = time_scale
		
func _on_battle_ready_to_act(battler: battler) -> void:_play_turn(battler)

it would be helpful if you post the code as is formatted in the editor. It seems only to be a syntax error

Fixed code formatting in OP by adding a tab to everything.

Looking at the code, my guess is the issue is with line 32 actually. You need to add a tab/indentation after the : at the end of the function definition:

func _on_battle_ready_to_act(battler: battler) -> void:
	_play_turn(battler)

a tab is how u get it looking like in the editor? @TwistedTwigleg the error is still there after I did what u said i'm following the Godot 2D Secrets (early access) course.

@sepiran said: a tab is how u get it looking like in the editor?

Yeah, if you paste code into your post on the forums and indent all of it with a single tab, then it will be rendered as code. You can also surround the code in three ~ symbols on both sides and that will also work.

@TwistedTwigleg the error is still there after I did what u said i'm following the Godot 2D Secrets (early access) course.

Well, you probably should ask the authors of the Godot 2D Secrets course then, as if there is an issue in the Godot then it will likely need to be fixed for the course as well.

Is the error on line 25 in the code in the opening post? The line that says error -> is_active = valuefor battler in battlers:?

2 years later