--- Log opened Sun Aug 12 00:00:59 2018 20180812 01:25:57-!- gfgtdf [~chatzilla@x4dbbe692.dyn.telefonica.de] has quit [Ping timeout: 240 seconds] 20180812 01:26:09-!- gfgtdf_ [~chatzilla@x2f6124b.dyn.telefonica.de] has joined #wesnoth-umc-dev 20180812 01:26:57-!- gfgtdf_ [~chatzilla@x2f6124b.dyn.telefonica.de] has quit [Client Quit] 20180812 01:29:26-!- gfgtdf [~chatzilla@x2f6124b.dyn.telefonica.de] has joined #wesnoth-umc-dev 20180812 02:57:58-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180812 02:58:04-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180812 03:08:53-!- gfgtdf [~chatzilla@x2f6124b.dyn.telefonica.de] has quit [Quit: ChatZilla 0.9.93 [Firefox 52.9.0/20180621064021]] 20180812 03:20:45-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180812 03:20:50-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180812 06:50:58-!- iwaim [~iwaim@rasteenie.alib.jp] has quit [Ping timeout: 260 seconds] 20180812 06:55:22-!- iwaim [~iwaim@rasteenie.alib.jp] has joined #wesnoth-umc-dev 20180812 07:08:46-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20180812 08:00:19-!- hk238 [~kvirc@unaffiliated/hk238] has joined #wesnoth-umc-dev 20180812 08:00:20< hk238> hi 20180812 08:00:30< hk238> hi 20180812 08:53:27<+wesdiscordbot> Hello 20180812 10:13:32<+wesdiscordbot> Moin 20180812 13:36:26< hk238> thinking about making a 4player map for afterlife or actually I made one already (but it's pretty ugly) just looking into the lua now :o 20180812 13:36:56< hk238> vn971 what function does the "half-owner" property have in the lua files? I'm just looking into it although probably figure it out in a moment :d 20180812 13:56:56< hk238> done :D 20180812 14:29:40-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-umc-dev 20180812 14:43:10-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: So long and thanks for all the fish.] 20180812 14:51:30-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-umc-dev 20180812 14:54:34< vn971> hk238: I was AFK. Glad you figured it out. 20180812 14:55:34< hk238> not sure if it works yet given no one has shown up to play, and I just made a smaller 4p map so the game doesn't take that long.. a bit similar style to the original afterlifemap but not exactly 20180812 15:09:06-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: mattsc] 20180812 15:17:00< hk238> yay 4 players :D 20180812 17:24:13-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180812 17:24:19-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180812 17:53:25-!- hk238 [~kvirc@unaffiliated/hk238] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 20180812 18:02:59<+wesdiscordbot> how can I use $unit.advances_to to get all all advancements into seperate variables... or better, into an array. (I want to use this information to store the advanced unit types) 20180812 18:13:00<+wesdiscordbot> I want to check all possoble advancements of a unit, witout knowing how much it are… One can't use recursion with WML, or? 20180812 18:13:10<+wesdiscordbot> set_variables maybe? 20180812 18:13:18<+wesdiscordbot> assuming it's delimited 20180812 18:15:25<+wesdiscordbot> Thanks, this is exaclty what I looked for. Now only I don't know how how to make the recursion 20180812 18:17:03<+wesdiscordbot> it might be better to use lua for that, but I suppose you could try making an event that uses [fire_event] to call itself 20180812 18:17:19<+wesdiscordbot> no idea if that would work though 20180812 18:21:04<+wesdiscordbot> That… seem's possible 😃 20180812 19:33:58-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180812 19:34:04-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180812 21:22:21-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 240 seconds] 20180812 21:45:18< vn971> I'd reccommend Lua with all 99.999% certainty. 20180812 21:45:44<+wesdiscordbot> Well 20180812 21:45:54<+wesdiscordbot> The WML looks so … uhhh 20180812 21:46:26< vn971> sevu: in Lua, there's even a properly typed field for advances already, you won't even have to split. 20180812 21:48:57< vn971> unit.advances_to is an array of strings. Iteration is e.g. for _, possible_advance in ipairs(unit.advances_to) do ...your-code-here... end 20180812 21:50:17< vn971> if you're bold about using WML (which I wouldn't recommend, but still), I guess you can also try to declare a specific "tag" in Lua and use it in WML. Depends on what you actually want to do besides iteration though. 20180812 21:50:48< vn971> if it's unit modification or some calculation that has a result that can be written to a variable -- there is a possible, but somewhat complex way out. 20180812 21:56:48<+wesdiscordbot> What I try to do is: 20180812 21:57:22<+wesdiscordbot> I have an shop system – the one of Colosseum – and want to check some things about the $unit 20180812 21:57:59<+wesdiscordbot> like, if it can ever get a a healing ability – and should thus not be able to buy one 20180812 21:59:26<+wesdiscordbot> (I'm still in a game, might have more time later) 20180812 22:20:54-!- sevu [~sevu@p54854237.dip0.t-ipconnect.de] has joined #wesnoth-umc-dev 20180812 22:21:32<+wesdiscordbot> vn971 this is what my sketch looks like. https://bpaste.net/show/c22d212c90ac Could you maybe try to convert it to lua? 20180812 22:29:33-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180812 22:29:39-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180812 22:41:24-!- sevu [~sevu@p54854237.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20180812 23:06:26-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-umc-dev 20180812 23:53:45<+wesdiscordbot> could somebody on Windows or Mac run the following code and let me know what it displays? [event] name=start [music] name="battle.ogg" title="testing123" immediate=yes [/music] [lua] code=<< wesnoth.message(tostring(wesnoth.music_list.current.__cfg.name .. " - " .. wesnoth.music_list.current.__cfg.title)) >> [/lua] [/event] 20180812 23:55:06<+wesdiscordbot> "battle.ogg-" 20180812 23:55:11<+wesdiscordbot> well 20180812 23:55:15<+wesdiscordbot> with spaces before and after the - 20180812 23:55:37<+wesdiscordbot> alright, thanks 20180812 23:55:38<+wesdiscordbot> https://cdn.discordapp.com/attachments/442775044590927873/478350881323221023/unknown.png 20180812 23:55:45<+wesdiscordbot> off to file a bug report then 20180812 23:55:50<+wesdiscordbot> 😮 --- Log closed Mon Aug 13 00:00:00 2018