URL:
<http://gna.org/bugs/?23004>
Summary: modifying units stats by lua
Project: Battle for Wesnoth
Submitted by: None
Submitted on: So 30 Nov 2014 23:54:18 UTC
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13
Operating System:
_______________________________________________________
Details:
currecntly lua is only able to set/get the easiest unit stats, that is more or
less the [unit] attributes but not the child tags.
The result is, that when you want to modify for example the units attacks or
abilities, then you have to store/unstore the unit in wml. This is often not
very efffective, for example unstoring a unit from a wmltable results in all
[effect]s from objects/advancements/traits beeing applied first and then the
units stats beeing overwritten by what is given in the wml table.
This is also the main reason why we currently cannot have custom [effect]s
implemented in lua: Currently for more complicated unit modification we need
to unstore the unit which would then result in infinite recursion if it's done
inside a [effect].
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23004>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs