Follow-up Comment #2, bug #12912 (project wesnoth):
I had a look at the macro
#define RANDOM_PLACEMENT_AREA X Y RADIUS
# set a placement area for subsequent random placement of units
[store_locations]
x,y={X},{Y}
radius={RADIUS}
variable=random_placement_locations
[/store_locations]
{VARIABLE_OP random_string format
"0..$random_placement_locations.length"}
#enddef
IMO random_string should be "shortened" by 1.
e.g.
{VARIABLE_OP random_string format
"0..$($random_placement_locations.length - 1)"}
(I don't know if this syntax is allowed.)
-
Do you think there will be a problem if the same location in
#define PLACE_UNITS_RANDOMLY NUMBER SIDE TYPE ID_STRING NAME_STRING
is used for more than 1 unit?
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12912>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs