idea for [unit] tag
Moderator: Forum Moderators
idea for [unit] tag
I was looking for some wml that would create a random unit from the list or something similar.. And I didn't look thoroughly but I think the best way to do it is with lua, or am I wrong? Why not make it possible in [unit] tag?
For example if:
type=Peasant,Ruffian,Gorilla,Godzilla,Dragon,Spearman
then it would create a random 1 of these?
Just a though to make life easier.. somewhat..
Thanks..
For example if:
type=Peasant,Ruffian,Gorilla,Godzilla,Dragon,Spearman
then it would create a random 1 of these?
Just a though to make life easier.. somewhat..
Thanks..
Re: idea for [unit] tag
Well surely that one additional {RANDOM "Peasant,Ruffian,Gorilla,Godzilla,Dragon,Spearman"} line that you currently need for it isn't a big complication?
Re: idea for [unit] tag
thanks, you probably right, I didn't look into macros, so didn't know it could be done the way you showed.
it would still be easier in [unit] because then you could modify it straight away without storing unstoring.. it's just an idea to make life easier, nothing more..
it would still be easier in [unit] because then you could modify it straight away without storing unstoring.. it's just an idea to make life easier, nothing more..
Re: idea for [unit] tag
What? There's no storing or unstoring.enclave wrote:it would still be easier in [unit] because then you could modify it straight away without storing unstoring
Code: Select all
{RANDOM "Peasant,Ruffian,Gorilla,Godzilla,Dragon,Spearman"}
[unit]
type=$random
...
[/unit]
Re: idea for [unit] tag
Yeah you right, i'm stupid.. sorry, didn't know/think of this at the point of writing.. Or I don't even know what I was thinking back there.. But it's good example.. thanks!