Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1990

Lua Labs • Re: [solved] attacker_weapon_index

$
0
0
A for loop to get the index is probably best in any case, as it means you can loop over unit.attacks (using ipairs()) instead of wml.child_range(unit.__cfg, "attack").

Statistics: Posted by Celtic_Minstrel — Yesterday, 12:37 pm



Viewing all articles
Browse latest Browse all 1990

Trending Articles