[rp]

I would like to announce that I have a new icon, and with this icon I shall defeat the lack of error messages in +roll with nothing more than my freaking willpower and FORWARD MOMENTUM.

Just as soon as I translate all this code I didn't write into something that makes sense to me and does what I think it should. That'll be any day now.

Really.




Sigh.

Can you parse this for me at all? I think maybe it's getting... the numbers... from... mods? Or something?



FUN_PARSE_ROLL_PARAMS [#3]: [switch(%0,*+*,[trim(before(%0,+))] [trim(after(%0,+))],*-*,[trim(before(%0,-))] -[trim(after(%0,-))],%0 0)]



As used here:




CMD-+ROLL [#3]: $+roll *:think [setq(0,u(#38/fun_parse_roll_params,%0))][setq(1,u(#38/fun_translate_level,first(%q0),%#))][setq(2,last(%q0))][setq(3,u(#38/fun_get_rolled_degree,%q1,%q2))][switch(%q1,#-1,pemit(%#,ansi(hr,That is not a valid skill\, attribute or trait level.)),u(#38/FUN_NOTIFY_ROLL_RESULTS,%l,[ansi(hy,)] %N rolls [capstr_all(%0)] and achieves a degree of [u(#38/fun_level_name,%q3)] \([u(#38/fun_print_num,%q3)]\). [switch(%qb,-1,[ansi(hr,***BOTCH***)],1,[ansi(hg,***CRITICAL SUCCESS***)])]))]

I can't figure out what q1 is if I don't know what the hell q0's doing!