--- Log opened Sat Jul 14 00:00:33 2018 20180714 00:06:01-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-umc-dev 20180714 00:16:59-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180714 00:17:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180714 05:38:29-!- hk238 [~kvirc@unaffiliated/hk238] has joined #wesnoth-umc-dev 20180714 05:38:31< hk238> hi 20180714 05:43:35< hk238> thinking about making a custom version of afterlife but I'm not sure what features it should have :d 20180714 05:46:11< hk238> the lua files look well done 20180714 05:50:46< hk238> is % a remainder operator in lua? 20180714 06:09:28<+discordbot1> Yes, it is. 20180714 08:41:54-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180714 08:42:00-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180714 10:06:37-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20180714 13:31:10< hk238> hm how can I modify the recruit list of a side? 20180714 13:31:23< hk238> I'm thinking about making a version of the "afterlife" scenario where people would get a random recruit list so that 20180714 13:31:47< hk238> you'd get 4 units from 1 faction, and 3 units from another faction 20180714 13:44:13<+discordbot1> I did resolve the problem by setting its movement to 0, but I just found that there's a thing available in AI called "passive_leader" where you can make the leader avoid fighting in general 20180714 13:52:39< mattsc> passive_leader keeps leaders from doing anything. If you still wanted them to grab nearby villages, for example, you could also disable attacks using the “attacks aspect” (also described on the AiWML page). 20180714 13:54:09< mattsc> Both methods have the disadvantage though that the leaders then won’t even attack a unit that has moved right next to them. If you still want them to do that, removing the moves is the best method (if I remember correctly). 20180714 13:58:34-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 264 seconds] 20180714 14:15:03< hk238> made a new map for afterlife and called it "laterlife" kind of tasteless but at least it's underlining that it's not an original piece of work 20180714 14:15:25< hk238> but then what features to make? I'm kind of itching to do something with lua 20180714 15:19:22< hk238> yeah I want to do the random unit thing 20180714 15:31:48< hk238> but I'm not familiar enough with the lua-wesnoth interface to modify the recruitlist 20180714 15:32:05< hk238> this would be of major importance considering gameplay enjoyability of the scenario 20180714 15:33:16< Ravana_> there has been one such where each unit can be recruited once 20180714 16:55:46< hk238> :d 20180714 17:05:57< hk238> okay I made the wave frequency thing and the slight map modifications 20180714 17:06:05< hk238> now it's 2 turn waves up to turn 13 then 3 turn waves 20180714 17:06:22< hk238> now to look into the wesnoth-lua-era thing 20180714 17:08:24< hk238> okay the logic is quite simple I need to assign first primary eras for both sides they cant the be the same 20180714 17:08:33< hk238> both players get 4 non level 0 units from those factions 20180714 17:08:42< hk238> then assign them a secondary and a thertiary faction 20180714 17:08:53< hk238> they 3 units from secondary and 2 units from thertiary faction 20180714 17:09:31< hk238> or I could just go with usign the current actual faction for primary, although that allows people to choose it but Ithink it's better functionality 20180714 17:09:43< hk238> also allows choosing leader.. although i want to seperate leader choice from that. 20180714 17:09:51< hk238> anyway that logic is still pretty straightforward 20180714 17:10:06< hk238> then I need to choose 4 units and check that they're not level 0 and also not choose the same units twice etc 20180714 17:10:17< hk238> so logicwise that also still pretty simple 20180714 17:10:27< hk238> just the lua-wesnoth commands I dont know 20180714 17:11:21< hk238> I guess it's this wesnoth.get_era function that returns some kind of object which contains the information I want 20180714 17:11:32< hk238> how do I modify the available recruit list for each side? 20180714 17:13:49< Ravana_> https://github.com/ProditorMagnus/Hide_Faction_Choice/blob/master/_main.cfg 20180714 17:14:28< hk238> thanks let's see 20180714 17:15:47< hk238> what does this do? :D 20180714 17:16:03< hk238> "wesnoth.set_variable("Rav_faction[" .. tostring(count) .. "].command.set_variable[1].value", multiplayer_side.recruit)" 20180714 17:16:34< Ravana_> formats name of variable and then sets it to value 20180714 17:20:22< hk238> oh so is it that the person recruits the leader they actually want? 20180714 17:20:38< hk238> then the faction gets changed to what they recruited? or something? Is there a dialog? 20180714 17:21:01< Ravana_> insert_tag with option 20180714 18:23:29-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180714 18:23:35-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180714 19:04:54< hk238> gotta try and get started with that faction randomizer tomorrow 20180714 19:05:57-!- hk238 [~kvirc@unaffiliated/hk238] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 20180714 21:24:20-!- Jordys [~Jordys@160.154.136.206] has joined #wesnoth-umc-dev 20180714 21:48:21-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180714 21:48:27-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180714 22:09:09-!- mode/#wesnoth-umc-dev [+o ShikadiQueen] by ChanServ 20180714 22:09:12-!- mode/#wesnoth-umc-dev [-bo *!*@185.9.19.107 ShikadiQueen] by ShikadiQueen 20180714 22:41:13-!- Jordys [~Jordys@160.154.136.206] has quit [Quit: Surfing on clouds to the exit gate] 20180714 22:45:28<+discordbot1> FAKE_UNIT_MOVE FROM_X TO_X FROM_Y TO_Y SIDE TYPE MODIFIER_WML 20180714 22:45:33<+discordbot1> Does this require the final argument? 20180714 22:45:50<+discordbot1> And if not, how would I use it without? I've tried, but an error shoots saying I need the final arguement. 20180714 22:46:47<+discordbot1> @Varicks use () 20180714 22:47:13<+discordbot1> Haha, so simple. Thanks 20180714 22:48:03<+discordbot1> macro arguments are usually delineated by spaces. Parentheses makes arguments with spaces a single argument. But they can also be used to specify a blank argument 20180714 22:48:45<+discordbot1> so, {FAKE_UNIT_MOVE 10 10 20 20 1 (Elvish Hunter) ()} 20180714 22:49:34<+discordbot1> (though usually you'll see Elvish Hunter in quotes) 20180714 22:51:25<+discordbot1> Yeah, I figured that out will trial and error a bit earlier actually lol 20180714 22:51:42<+discordbot1> Oh, while I have you here, can you help me with one more thing? 20180714 22:51:51<+discordbot1> what is it? 20180714 23:11:59<+discordbot1> Thanks Vultraz! --- Log closed Sun Jul 15 00:00:35 2018