URL:
<http://gna.org/bugs/?15013>
Summary: goto_x, goto_y settings affect ai units for only 1
turn
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Tuesday 12/29/2009 at 18:49
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.10
Operating System: Linux
_______________________________________________________
Details:
Consider the following code:
[side]
side=2
controller=ai
no_leader=yes
[/side]
...
[event]
name=start
[unit]
side=2
type=Troll
x,y=7,4
max_moves=1
goto_x=7
goto_y=6
[/unit]
[/event]
In 1.6, the unit would move to (7,6) and then move the way the ai wants to.
In 1.7.10, the unit moves only for 1 turn in the direction of (7,6), but in
the next move when it should land on (7,6) it moves towards the human player
to attack. So the goto_x and goto_y settings are no longer saved.
The behaviour seems to be the same if the goto settings are modified via
[store_unit]...{VARIABLE unit_var.goto_x...
Attached is my current Testcampaign where this code snippet is from.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tuesday 12/29/2009 at 18:49 Name: Testcampaign.tar Size: 40kB By:
anonymissimus
<http://gna.org/bugs/download.php?file_id=7558>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15013>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs