nathanhoad / godot_dialogue_manager

A powerful nonlinear dialogue system for Godot
MIT License
2.04k stars 161 forks source link

Jump not working on character lines #599

Closed m-radzikowski closed 1 month ago

m-radzikowski commented 2 months ago

Describe the bug

The => target directive does not work on lines with character names. Despite that, it's highlighted in IDE.

Affected version

To Reproduce

~ start

Nathan: Hello => jump_point_2

~ jump_point_1

Nathan: We are at jump point 1.

=> END

~ jump_point_2

Nathan: We are at jump point 2.

=> END

Expected behavior

After "Hello" should show "Hello" and then "We are at jump point 2." Instead, shows "Hello => jump_point_2" and then "We are at jump point 1.".

This does not happen on "responses". For example, this works as expected:

Nathan: Hello
- Hello! => jump_point_2

The solution is to move the jump to the next line:

Nathan: Hello
=> jump_point_2

but the fact that the IDE highlights the jump on the end of character line is confusing and makes it error-prone.

Screenshots

image