--- Log opened Thu Jul 19 00:00:01 2018 20180719 00:06:35-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 00:06:41-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 00:12:03<+discordbot1> Is there a way to wipe a recall list without instating a new leader? 20180719 00:13:41<+discordbot1> [kill] side=1 x,y=recall,recall [/kill] 20180719 00:29:59-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 00:30:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 00:30:51<+discordbot1> I'm really confused. I've made a macro that reads a stored unit type's attacks and sets a different value to a variable depending on which weapon_specials these attacks have. This is working as I'm intending it to, but when I'm trying to use this variable in another macro I get this error message ($scavenged_attack_special_one is the variable I'm tryign to use in another macro). If I manually enter the exact same value as this 20180719 00:30:52<+discordbot1> variable has, instead of "sending" this variable's value to the macro, it works.. I can't figure out what's going on 😟 20180719 00:30:52<+discordbot1> https://cdn.discordapp.com/attachments/442775044590927873/469300047117549578/unknown.png 20180719 00:31:34<+discordbot1> post the code in question please 20180719 00:38:29<+discordbot1> Okay, so in this event (capture) I'm running the following macro: {GOOB_SCAVENGED_ATTACK_SPECIALS_CHECK} Which is this: #define GOOB_SCAVENGED_ATTACK_SPECIALS_CHECK {VARIABLE scavenged_attack_special_one ()} {VARIABLE scavenged_attack_special_two ()} [if] [variable] name=scavenge_target_unit_type.attack[$scavenge_target_random_attack].specials[0].dummy.id equals=feeding 20180719 00:38:29<+discordbot1> [/variable] [then] {VARIABLE scavenged_attack_special_one ABILITY_FEEDING} [/then] [elseif] [variable] name=scavenge_target_unit_type.attack[$scavenge_target_random_attack].specials[0].berserk.id equals=berserk [/variable] [then] {VARIABLE scavenged_attack_special_one WEAPON_SPECIAL_BERSERK} [/then] 20180719 00:38:30<+discordbot1> [/elseif] ... This is for checking the weapon_specials and giving the variables in question their values 20180719 00:39:25<+discordbot1> why don't you put it in a pastebin 20180719 00:39:28<+discordbot1> could be easier 20180719 00:39:30<+discordbot1> 😮 20180719 00:39:51<+discordbot1> And then just after that, in the same even, I'm using those variables in another macro, giving an object a unit: {GOOB_SCAVENGED_ATTACK_MELEE $scavenged_attack_special_one $scavenged_attack_special_two} [object] [effect] apply_to=new_attack name=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].name 20180719 00:39:52<+discordbot1> description=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].description type=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].type [specials] {{SPECIAL_ONE}} {{SPECIAL_TWO}} [/specials] range=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].range 20180719 00:39:52<+discordbot1> damage=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].damage number=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].number icon=$scavenge_target_unit_type.attack[$scavenge_target_random_attack].icon [/effect] ... 20180719 00:40:30<+discordbot1> This is where I'm getting the error message, saying the macro/file is missing 20180719 00:40:43<+discordbot1> macro preprocessing happens long before any variable substitution happens. 20180719 00:41:03<+discordbot1> {{SPECIAL_ONE}} becomes {$scavenged_attack_special_one} 20180719 00:41:06<+discordbot1> for example 20180719 00:41:19<+discordbot1> Yes, that's intended 20180719 00:42:03<+discordbot1> If I manually do {GOOB_SCAVENGED_ATTACK_MELEE ABILITY_FEED WEAPON_SPECIAL_BERSERK}, it works fine 20180719 00:42:52<+discordbot1> Even if scavenged_attack_special_one and scavenged_attack_special_two has t he exact same value, it won't work 20180719 00:42:59<+discordbot1> right, that's expected 20180719 00:43:06<+discordbot1> Please explain 😄 20180719 00:43:10<+discordbot1> macro preprocessing is plain text replacement 20180719 00:43:12<+discordbot1> that's it 20180719 00:43:31<+discordbot1> basically all the macros get processed first 20180719 00:43:33<+discordbot1> it doesn't care it's a variable 20180719 00:43:38<+discordbot1> it's just a piece of text 20180719 00:44:01<+discordbot1> But isn't it using the actual value if I assign $ before it? 20180719 00:44:06<+discordbot1> no 20180719 00:44:16<+discordbot1> the preprocessor has no concept of variables 20180719 00:45:07<+discordbot1> preprocessing happens when, for example, you click Local Game from the main menu 20180719 00:45:19<+discordbot1> So {GOOB_SCAVENGED_ATTACK_MELEE $scavenged_attack_special_one $scavenged_attack_special_two} is actually sending.. what? 🤔 20180719 00:45:20<+discordbot1> variables are only evaluated once you actually start a scenario 20180719 00:46:28<+discordbot1> [specials] {{SPECIAL_ONE}} {{SPECIAL_TWO}} [/specials] becomes [specials] {$scavenged_attack_special_one} {$scavenged_attack_special_two} [/specials] 20180719 00:46:50<+discordbot1> Ahh 20180719 00:46:54<+discordbot1> so it tries to find a macro by those names 20180719 00:47:00<+discordbot1> hence your error 20180719 00:49:19<+discordbot1> But, that's kind of what I was trying to do, making it use the argument as a macro -- I could go {GOOB_SCAVENGED_ATTACK_MELEE ABILITY_FEED WEAPON_SPECIAL_BERSERK}, which would make [specials] {{SPECIAL_ONE}} {{SPECIAL_TWO}} [/specials] become [specials] {ABILITY_FEED} {WEAPON_SPECIAL_BERSERK} [/specials] 20180719 00:50:02<+discordbot1> Hmm 20180719 00:50:32<+discordbot1> So there's no way to use variables somehow,a s arguments? 😟 20180719 00:51:34<+discordbot1> there isn't 20180719 00:51:58<+discordbot1> Alright 😄 Well, I guess that sorts that out, then, heh 20180719 00:52:08<+discordbot1> Thanks for your input! 20180719 01:00:24-!- Jordys [~Jordys@154.68.5.152] has quit [Read error: Connection reset by peer] 20180719 02:14:39<+discordbot1> holy MOLY LotI has SOOO many replies on the forums 20180719 02:33:19<+discordbot1> Going back to my question about recall lists [kill] side=1 x,y=recall,recall [/kill] if I wanted to re-use the recall list in a later scenario, would I just store it before killing it? 20180719 03:04:09<+discordbot1> Yeah. 20180719 03:04:42<+discordbot1> [store_unit] [filter] side=1 x,y=recall,recall [/filter] variable=old_recall_list kill=yes [/store_unit] 20180719 03:04:48<+discordbot1> You can store and kill units in the same action. 20180719 03:05:11<+discordbot1> Thanks Shadow 20180719 04:28:10-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 04:28:16-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 06:20:00-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 06:20:06-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 08:47:43-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20180719 11:14:08-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 11:14:14-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 12:37:59-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 12:38:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 13:53:07-!- hk238 [~kvirc@unaffiliated/hk238] has joined #wesnoth-umc-dev 20180719 17:16:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 17:16:11-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 17:31:32-!- gfgtdf [~chatzilla@x4dbbfcad.dyn.telefonica.de] has joined #wesnoth-umc-dev 20180719 17:55:42-!- hk238 [~kvirc@unaffiliated/hk238] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 20180719 18:09:23<+discordbot1> Is there any way of preventing ~BLIT 's X position to be mirrored when target unit faces a different direction? 20180719 18:13:42< Ravana_> overlay might work 20180719 18:15:18<+discordbot1> Oh. I'll have to look that up. Haven't looked into overlays at all so far 20180719 18:30:15-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 18:30:21-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 18:33:04<+discordbot1> Can you recall an entire side with [recall] side=1 [/recall] 20180719 18:45:22< Ravana_> check documentation or try it: lua wesnoth.wml_actions.recall{side=1} 20180719 20:12:45-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 20:12:51-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 20:37:50-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 20:37:56-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 21:14:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 21:14:11-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 21:14:59<+discordbot1> i don't think so, no 20180719 21:34:53-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 21:34:59-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 21:52:50-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 21:52:56-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 22:00:56-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 256 seconds] 20180719 23:28:41-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 23:28:47-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 23:35:57-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 23:36:03-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180719 23:51:35-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180719 23:51:41-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev --- Log closed Fri Jul 20 00:00:04 2018