--- Log opened Thu Jul 12 00:00:36 2018 20180712 05:57:37-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 05:57:43-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 08:09:07-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20180712 08:18:51-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 08:18:58-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 09:20:30-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 09:20:36-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 10:33:57-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 10:34:03-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 14:07:41-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 14:07:47-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 15:59:15-!- hk238 [~kvirc@unaffiliated/hk238] has joined #wesnoth-umc-dev 20180712 16:00:38< hk238> hi 20180712 16:01:12<+discordbot1> hello 20180712 17:46:32-!- hk238 [~kvirc@unaffiliated/hk238] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 20180712 18:19:09-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 18:19:16-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 20:06:57-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 20:07:03-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 20:21:39-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180712 20:21:45-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180712 20:52:34-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 260 seconds] 20180712 21:11:02<+discordbot1> [event] name=die id=goob_spawn_creation first_time_only=no [filter_second] [not] ability=goob_consume [/not] [/filter_second] [filter] [not] [filter_location] terrain=*^V* [/filter_location] [/not] [and] status=goob_slimed [/and] 20180712 21:11:03<+discordbot1> [and] [filter_adjacent] ### how do I store these adjacent units? is_enemy=yes count=1-6 ability=goob_pheromones_a,goob_pheromones_b,goob_pheromones_c,goob_pheromones_x [/filter_adjacent] [/and] [/filter] ... I'm having an absent mind today.. so I just can't seem to figure out how to set up a [store_unit] that 20180712 21:11:03<+discordbot1> stores above adjacent units. I'm pretty sure I've done it before, sometime, but I'm drawing a blank. Pointers, anyone? ❤ 20180712 21:16:13< Ravana_> you need to use [store_unit] to store units, filter_second is about event there 20180712 21:16:53<+discordbot1> Yeah above code does not include the storing part. That's the next step, that I'm scratching my head about. 20180712 21:23:21<+discordbot1> [store_unit] [filter] [filter_adjacent] x,y=$x1,$y1 is_enemy=yes count=1-6 ability=goob_pheromones_a,goob_pheromones_b,goob_pheromones_c,goob_pheromones_x [/filter_adjacent] [/filter] [/store_unit] Hmm, could it be as simple as that? 🤔 20180712 21:23:53<+discordbot1> Oh, perhaps the is_enemy shouldn't be there 20180712 21:24:53<+discordbot1> ..and with an array to save it to, of course 😅 20180712 21:24:57< Ravana_> count= is unneeded since only one unit can be on that location 20180712 21:26:29<+discordbot1> Well, that's probably because I'm way off right now 😦 I'm trying to store all units that are adjacent to the primary unit (at x,y=$x1,$y1), that also have those abilities 20180712 21:27:54< Ravana_> I think the reasoning I said was wrong, but count is unneeded anyways, since it defaults to 1-99 20180712 21:28:55<+discordbot1> I thought 1-6 was default, but I like putting it there anyway. Just haven't tidied up a lot of the code yet. Thanks for the pointer, though 😃 20180712 21:29:53<+discordbot1> But still, do you know how I could write this unit storage? To store all units that adjacent to the primary unit and have above abilities 20180712 21:30:30<+discordbot1> *that are adjacent to the primary unit and have above abilities 20180712 21:32:48< Ravana_> with filter it is indeed 1-6, confused with have_unit which is 1-99999 20180712 21:35:10< Ravana_> so, what you get with current filter? 20180712 21:36:56<+discordbot1> Haven't tried it yet, because I'm not too convinced about it 😄 But I'm putting in place now 20180712 21:37:10<+discordbot1> Will get back to ya 🙂 20180712 21:45:20<+discordbot1> It doesn't seem to save anything. Running the event and :inspect:ing to see the results. Coming up empty 🤔 20180712 21:51:43<+discordbot1> Ah, removing the x,y made it work 20180712 21:54:17<+discordbot1> As it actually storing stuff 😄 20180712 21:56:37<+discordbot1> [store_unit] [filter] [filter_adjacent] is_enemy=yes ability=goob_pheromones_a,goob_pheromones_b,goob_pheromones_c,goob_pheromones_x [/filter_adjacent] [/filter] variable=adjacent_pheromonal_units [/store_unit] Like this at the moment, but it doesn't store the correct units 🤔 20180712 21:57:55< Ravana_> primary unit check needs to be somewhere 20180712 21:58:42< Ravana_> adjacent_pheromonal_units name suggests stored unit should have ability not adjacent unit 20180712 22:00:11<+discordbot1> Yeah, I'm lost 😅 I want to store adjacent units that have either of those pheromonal abilities into that array. 20180712 22:00:51< Ravana_> stored units are described by [filter] 20180712 22:02:20< Ravana_> you can't store adjacent units - you need to store units, (that have adjacent units) 20180712 22:02:32<+discordbot1> 🤔 20180712 22:06:46<+discordbot1> I'm afraid that doesn't make me understand how to go about doing this :/ But I should be able to get to those units and store them somehow, right, if not by trying to actually store adjacents? 🤔 20180712 22:08:04< Ravana_> filter_adjacent limits what units can be returned by filter 20180712 22:08:24< Ravana_> but units matched by filter_adjacent are not returned to you 20180712 22:09:20<+discordbot1> Ah, yeah, that's true 20180712 22:09:23<+discordbot1> I have to rethink 20180712 22:12:32<+discordbot1> Figured it out! 20180712 22:12:57<+discordbot1> Thanks to your reminder of what I was actually doing, lol 😄 20180712 22:13:11<+discordbot1> [store_unit] [filter] ability=goob_pheromones_a,goob_pheromones_b,goob_pheromones_c,goob_pheromones_x [filter_adjacent] id=$unit.id [/filter_adjacent] [/filter] variable=adjacent_pheromonal_units [/store_unit] This did the trick 👍 20180712 22:15:01<+discordbot1> Thanks for your help, Ravana ❤ --- Log closed Fri Jul 13 00:00:33 2018