Follow-up Comment #3, bug #22609 (project wesnoth):

I tested the lua debug console and it didn't work: I typed
#wesnoth.get_sides({}) and expected it to print the result of the expression
(the number of sides) but instead i got a syntax error.

Also i did't figure out yet how to select and copy text from the output
window.

But the main limitation (and i obviously forgot to say that in the first post)
of the :lua command is that lua doesn't know of the currently selected hex.
When i use commands like :unit it automaticly uses the currently selected
unit. If i want to implement an equivalent command in lua i'd have to force
the user to always pass the position explicitly, which is rather annoying. The
new lua console is a lua2 dialog, which (unlike the chat/command line) makes
me unable to select units/hexes while typing. To me that looks like a step
away from solving that problem.

Another thing that i found out while testing the lua console seems to be a
limitation of our textboxes in general: if i press ctrl+arrowleft/right it
should skip words, but it doesnt.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22609>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to