URL:
<http://gna.org/bugs/?10398>
Summary: Do variable expansion at IntroWML level ([image]
tag)
Project: Battle for Wesnoth
Submitted by: shadowmaster
Submitted on: Monday 11/26/07 at 14:08
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.3.11+svn
Operating System: All
_______________________________________________________
Details:
Simply said, the current IntroWML [image] tag doesn't do variable expansion
at all. I want to, at the end of each scenario, to store the player leader's
baseframe image path (unit.image) onto a variable, to use it later to display
a marker in the next scenario's introduction "big map". However doing
something like this:
[image]
x,y={X},{Y}
file="$storymap_heroicon"
centered=yes
[/image]
Doesn't do anything other than display a blank image when the value of
"storymap_heroicon" is, for example,
"units/elves-wood/fighter.png~RC(magenta>1)". However, if I manually hard
code it:
[image]
x,y={X},{Y}
file="units/elves-wood/fighter.png~RC(magenta>red)"
centered=yes
[/image]
It does work in such case, which discards the possibility of being the RC
markup expansion the culprit of the blank image displaying.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?10398>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs