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

WML Workshop • Re: Array variables inside the prestart event

$
0
0
I've just noticed, that using array variables e.g. $arrayname.[$arraynumber].name inside a prestart event doesn't work. It seems the variable is considered as empty. The solution for me was, to put it in the start event. I'm still curious: Is this a bug or this intended?
That seems like a restriction which would be too bizarre to be intentional (even for WML).

But I see that some mainline campaigns are using arrays in prestart - for example, The Sceptre of Fire.

I also notice that you have an extra dot in $arrayname.[$arraynumber].name - I'm not sure if that's your issue. I would post your entire prestart event code here so people can check the whole thing for possible problems.

Statistics: Posted by gnombat — Yesterday, 9:48 pm



Viewing all articles
Browse latest Browse all 1859

Trending Articles