--- Log opened Wed Mar 04 00:00:55 2015 20150304 00:07:13-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 264 seconds] 20150304 00:50:05-!- Crendgrim [~crend@wesnoth/forum-moderator/crendgrim] has quit [Quit: No Ping reply in 180 seconds.] 20150304 00:50:30-!- Crendgrim [~crend@wesnoth/forum-moderator/crendgrim] has joined #wesnoth-umc-dev 20150304 01:29:21-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20150304 02:44:59-!- un214 [~un214@2602:306:ce78:1159:56a0:50ff:fe57:101d] has joined #wesnoth-umc-dev 20150304 03:07:37-!- un214 [~un214@2602:306:ce78:1159:56a0:50ff:fe57:101d] has quit [Remote host closed the connection] 20150304 03:20:29-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20150304 04:23:33-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20150304 07:59:50-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20150304 08:21:17-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 252 seconds] 20150304 08:30:19-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20150304 08:31:15-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-umc-dev 20150304 08:44:46-!- fabi [~quassel@wesnoth/developer/fendrin] has quit [Ping timeout: 256 seconds] 20150304 08:45:47-!- fabi [~quassel@p20030051AA2BC29418AC031EC38FECCD.dip0.t-ipconnect.de] has joined #wesnoth-umc-dev 20150304 08:45:47-!- fabi [~quassel@p20030051AA2BC29418AC031EC38FECCD.dip0.t-ipconnect.de] has quit [Changing host] 20150304 08:45:47-!- fabi [~quassel@wesnoth/developer/fendrin] has joined #wesnoth-umc-dev 20150304 12:19:32-!- bumbadadabum [~bumbadada@wcw-stud-145-109-8-116.wireless.uva.nl] has joined #wesnoth-umc-dev 20150304 12:20:30< bumbadadabum> can someone help me with a quick wml question? 20150304 12:30:44< Ravana_> why not ask either way? 20150304 12:31:14< bumbadadabum> question trivialness anxiety 20150304 12:32:30< Ravana_> well, ask then, I might be able to help 20150304 12:32:37< bumbadadabum> vultraz kinda already helped me 20150304 12:32:49< bumbadadabum> I forgot/don't know arrays need to be referenced by a key 20150304 12:33:02< bumbadadabum> so foo[$i].value instead of foo[$i] 20150304 12:33:23< Ravana_> ah, there I have made mistakes too 20150304 12:34:40< bumbadadabum> I'm having a different problem now 20150304 12:35:05< bumbadadabum> if I modify a weapon using $weapon 20150304 12:35:09< bumbadadabum> how do I unstore 20150304 12:41:04< Ravana_> through unit I guess 20150304 12:41:13< bumbadadabum> I tried 20150304 12:41:34< bumbadadabum> $unit isn't changed 20150304 12:41:37< bumbadadabum> just $weapon 20150304 12:41:58< bumbadadabum> so it unstores the unit without the weapon mods 20150304 12:42:05< Ravana_> $weapon contains information about one [attack], right? 20150304 12:42:07< bumbadadabum> either that or there's something else I'm fucking up 20150304 12:42:09< bumbadadabum> y 20150304 12:42:39< Ravana_> then you can modify attack that matches name of $weapon and make that change to unit 20150304 12:43:29< bumbadadabum> but then i need to LOOKUP_INDEX and shit and that is iffy 20150304 12:43:35< bumbadadabum> eh well I guess it's the best way 20150304 12:44:20< Ravana_> wouldn't [modify_unit] be able to do this? 20150304 12:44:30< bumbadadabum> oh right 20150304 12:44:46< bumbadadabum> well actually 20150304 12:45:03< Ravana_> object would be easier to add but that is a pain to remove 20150304 12:46:52< bumbadadabum> are there attacks with the same name tho 20150304 12:46:55< bumbadadabum> I think so actually 20150304 12:48:16< bumbadadabum> well shit 20150304 12:51:09< bumbadadabum> actually, in this case I could be a bit hacky 20150304 12:51:16< bumbadadabum> and just apply the damage increase to ALL attacks 20150304 12:51:44< Ravana_> do these attack with same name have at least some information different? 20150304 12:51:55< bumbadadabum> well, I want to make it generic 20150304 12:52:19< Ravana_> you can filter for more than just attack name 20150304 12:52:20< bumbadadabum> so the answer is, yes there is something different 20150304 12:52:32< bumbadadabum> but it's possible to make an attack that is 100% identical 20150304 12:52:36< bumbadadabum> except description 20150304 12:52:56< Ravana_> isn't description comparable as well? 20150304 12:53:11< bumbadadabum> it's more 20150304 12:53:16< bumbadadabum> you don't want to filter for EVERYTHIN 20150304 12:53:17< bumbadadabum> you don't want to filter for EVERYTHING 20150304 12:53:26< bumbadadabum> oops used to skype's editing feature 20150304 12:53:40< bumbadadabum> anyway, I think I'll just apply the damage to every attack 20150304 12:53:50< Ravana_> could I get the starting idea of what is the goal 20150304 12:54:05< bumbadadabum> I'm trying to implement crits 20150304 12:54:21< bumbadadabum> so every strike has a 25% chance of dealing double damage 20150304 12:54:40< Ravana_> so permanent increase in units damage? 20150304 12:54:58< bumbadadabum> no, just for the one strike 20150304 12:55:03< Ravana_> could just use [harm_unit] then 20150304 12:55:17< bumbadadabum> the thing is, I'm trying to have it appear properly 20150304 12:55:31< bumbadadabum> so if an elvish fighter crits someone, it displays "10" as the hitsplat 20150304 12:55:56< bumbadadabum> the only way I found to accomplish that is by increasing the damage 20150304 12:56:40< Ravana_> conditional weapon special might help but not sure 20150304 12:56:59< bumbadadabum> I'll just apply it to all attacks for now 20150304 12:57:09< bumbadadabum> it works, but is just a bit inelegant 20150304 12:57:53-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has joined #wesnoth-umc-dev 20150304 12:58:29< Ravana_> formula= can be written to return random result 20150304 12:59:07< bumbadadabum> formula in what? 20150304 13:00:28< Ravana_> in [damage] 20150304 13:00:47< bumbadadabum> wait... 20150304 13:00:57< bumbadadabum> so I can just make it a [damage] special without events at all? 20150304 13:01:20< Ravana_> if oos doesn't matter then possibly 20150304 13:01:29< bumbadadabum> yeah OOS does matter 20150304 13:01:40< bumbadadabum> again, trying to make this generic 20150304 13:02:02< Ravana_> specials have [filter_self] and that accepts formula= 20150304 13:04:37< Ravana_> even if that randomness doesn't work correctly then it is possible to use unit.variables.something to predetermine if something will crit or not and update it with events 20150304 13:05:17< bumbadadabum> that's what I did now 20150304 13:05:25< Ravana_> http://wiki.wesnoth.org/Formulaai has "Formula language supports also 'dice' operator 'd'." but I haven't personally used it so far 20150304 13:08:39< bumbadadabum> got it to work 20150304 13:08:49< bumbadadabum> (using events and shit) 20150304 13:09:27< bumbadadabum> Ravana_: http://pastebin.com/RQyD3FB7 20150304 13:09:34< bumbadadabum> can this be done more elegantly? 20150304 13:09:40< bumbadadabum> I'm extremely rusty with WML 20150304 13:10:50< Ravana_> do you know +tag syntax? 20150304 13:11:15< bumbadadabum> yes 20150304 13:11:42< Ravana_> CRITICAL_STRIKE_EVENT could be included in special definition then 20150304 13:11:50< bumbadadabum> No, it can't 20150304 13:11:56< bumbadadabum> the ability is learned through an AMLA 20150304 13:12:04< bumbadadabum> (in my campaign, at least) 20150304 13:12:33< bumbadadabum> and using a [/specials] in [set_specials] is kinda not done 20150304 13:13:19< Ravana_> {REPEAT $weapon.number ... I think that is what {FOREACH} is for 20150304 13:13:39< bumbadadabum> $weapon.number is an integer 20150304 13:13:41< bumbadadabum> not an array 20150304 13:13:55< bumbadadabum> anyway I need to get going I'll be back later 20150304 13:13:57-!- bumbadadabum [~bumbadada@wcw-stud-145-109-8-116.wireless.uva.nl] has quit [Quit: Ik ga weg] 20150304 13:19:38-!- bumbadadabum [~bumbadada@wcw-stud-145-109-8-116.wireless.uva.nl] has joined #wesnoth-umc-dev 20150304 13:20:06< bumbadadabum> Ravana_: still have a few minutes 20150304 13:28:38< Ravana_> yes 20150304 13:34:02-!- bumbadadabum [~bumbadada@wcw-stud-145-109-8-116.wireless.uva.nl] has quit [Ping timeout: 246 seconds] 20150304 13:59:22-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has quit [Ping timeout: 255 seconds] 20150304 14:45:43-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has joined #wesnoth-umc-dev 20150304 15:00:23-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has quit [Ping timeout: 240 seconds] 20150304 15:12:40-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20150304 15:18:04-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20150304 15:21:28< vultraz> bumbadadabum: still not working? 20150304 15:23:03-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20150304 15:48:21< bumbadadabum> vultraz: it is 20150304 16:17:35-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20150304 18:53:04-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20150304 19:05:30-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has joined #wesnoth-umc-dev 20150304 19:22:40-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20150304 22:01:39-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has quit [Ping timeout: 256 seconds] 20150304 22:13:23-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has joined #wesnoth-umc-dev 20150304 22:46:57-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20150304 23:06:50-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 244 seconds] 20150304 23:11:52-!- SpoOkyMagician [~chatzilla@cpe-74-132-242-221.swo.res.rr.com] has joined #wesnoth-umc-dev 20150304 23:26:29-!- pydsigner [~pydsigner@unaffiliated/pydsigner] has quit [Ping timeout: 245 seconds] --- Log closed Thu Mar 05 00:00:13 2015