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

Lua Labs • Re: on_event context

$
0
0
Interesting. I'm not sure where you run that from (will it get run again when reloading a save), but I'd expect potion_location to be lost upon re-load since it is not serialized (earlier I said it had to be saved in WML when I really meant serialized, because saving it in WML was the only way I knew of doing that) and/or it will be cleared if the above is run a second time.

I'm not sure if on_event is persistent or not. The item handling I'm familiar with used [event]s (one for die to drop objects, and then one for each item dropped created dynamically). You might have to set those up again on re-load.

I'd expect the item image to remain on the map at least.
I will try to add a pre-load event context to catch changes in map and stored tables. I m not familiar with that event but there is a first time for everything.

Statistics: Posted by hermestrismi — Today, 10:13 am



Viewing all articles
Browse latest Browse all 1990

Trending Articles