godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

Avatar parameter for dialogue seems to be broken #330

Closed balloonpopper closed 1 year ago

balloonpopper commented 2 years ago

Please make sure you talk to the community before creating an issue.

Describe the bug I couldn't get the dialog avatar parameter (https://docs.escoria-framework.org/en/devel/scripting/z_esc_reference.html#dialogs) to work. Starting a conversation like this


# character's "talk" event
:talk
? res://game/characters/worker/worker.tscn 5 1
    - MAP:"I'd like to buy a map." [!player_has_map]
        say player "I'd like to buy a map"
        say worker "Do you know the secret code?"

gives the error E 0:00:04.303 call: ESC (2022-11-28T17:03:52) E esc_object_manager.gd: Object with global id 'worker' in room room6 already registered from node path /root/room6/Hotspots/worker.

If I'm not using the parameter correctly, we need to figure out how to use it and document it appropriately.

To Reproduce Set the above to the script for the worker in the room 6 folder. Play room 6.

Expected behavior I should see an avatar according to the documentation

Versions

Additional context Add any other context about the problem here.

BHSDuncan commented 1 year ago

FYI in the script above, change the 2 to a 1 or else it errors since there's only one option and Escoria throws a different error. I.e.

? res://game/characters/worker/worker.tscn 5 1

balloonpopper commented 1 year ago

Changed it to 1, I had more options in the full code but only pasted part above and missed that. Thanks!